!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/inet-tech.org.ua/   drwxr-xr-x
Free 106.22 GB of 200.55 GB (52.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     script.js (7.83 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
$(document).ready(function () {
//найти текущую позицию активного элемента 
//$(".title, .title2").animate({'font-size' : "+=10px"}, 1000).animate({'font-size' : "-=10px"}, 1000);
var dleft = $('.topmenu li.active').offset().left - $('.topmenu').offset().left;
var dwidth = $('.topmenu li.active').width() + "px";
//присвоить эту позицию элеметку с подсветкой
$('.floatr').css({
"left": dleft+"px",
"width": dwidth
});
$('.topmenu li').hover(function(){
var left = $(this).offset().left - ($(this).parents('.topmenu').offset().left + 15);
var width = $(this).width() + "px";
var sictranslate = "translate("+left+"px, 0px)";
$(this).parent('ul').next('div.floatr').css({
"width": width,
"-webkit-transform": sictranslate,
"-moz-transform": sictranslate
});
},
function(){
var left = $(this).siblings('li.active').offset().left - ($(this).parents('.topmenu').offset().left + 15);
var width = $(this).siblings('li.active').width() + "px";
var sictranslate = "translate("+left+"px, 0px)";
$(this).parent('ul').next('div.floatr').css({
"width": width,
"-webkit-transform": sictranslate,
"-moz-transform": sictranslate
});
}).click(function(){
$(this).siblings('li').removeClass('active');
$(this).addClass('active');
//return false;
});
});
	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	function eraseCookie(name) {
		createCookie(name,"",-1);
	}	
	
$(document).ready(function(e) {
	var run = 0;
    $('ul.tabs').delegate('li:not(.current)', 'click', function() {
		var obj = 
		$(this).addClass('current').siblings().removeClass('current')
			.parents('div.section').find('div.box').hide().eq($(this).index());
					
		$.post('results/'+ $(this).attr('val') + '.html', '', function(data)
		{
			obj.html(data);
			StylizeLinks();			
			calculate();
			run = 1;
		}, 'html');


		$(this).addClass('current').siblings().removeClass('current')
			.parents('div.section').find('div.box').hide().eq($(this).index()).fadeIn(150);
		var ulIndex = $('ul.tabs').index($(this).parents('ul.tabs'));
		eraseCookie('tabCookie'+ulIndex);
		createCookie('tabCookie'+ulIndex, $(this).index(), 365);			
	});
	var obj = 
	$('ul.tabs').siblings().parents('div.section').find('div.box').eq(0);

	$.post('results/'+ $('ul.tabs li:first').attr('val') + '.html', '', function(data)
	{
		obj.html(data);
		StylizeLinks();		
		if (run == 0)	
		{
			calculate();
			run = 1;
		}
	}, 'html');

	$('ul.tabs').each(function(i) {
			var cookie = readCookie('tabCookie'+i);
			if (cookie) 
			  $(this).find('li').eq(cookie).trigger('click');
		});
	 
    
});

function StylizeLinks()
{
    $(".files a[href$=pdf]").parent().addClass("pdf");
    $(".files a[href$=zip]").parent().addClass("zip");
    $(".files a[href$=rar]").parent().addClass("zip");
    $(".files a[href$=doc]").parent().addClass("doc");
    $(".files a:not([href*=http://inet-tech.org.ua])").not("[href^=#]")      
      .attr({ target: "_blank" }).parent().addClass("external")
	  ; 	
	$("table.schedule td").each(function(index, obj)
	{
		if ($(this).text().length > 1) 
		  $(this).addClass('content');
	});
}
$(document).ready(function(e) {    
	StylizeLinks();	
});

function calculate()
{
	var f = 0;
	$(".calculate tbody tr").each(function(index, element) {
		while(f) ;
        f = 1;
		var row = $(element);
		var sum = 0;
		var val = 0;
		row.find("td:gt(2):lt(6)").each(function(index, element) {
			val = parseInt($(element).text());
			if (val > 0)
            	sum += val;
        });
		row.find(".semestr:eq(0)").html(sum);
		var	percent = Math.round(sum / 2.5);
		var ects = 0;
		var five = 0;
		var clas = "m2";
		ects = "F"; five = 2; 
		if (percent >= 26) {ects = "FX"; five = 2; clas="m2";}
		if (percent >= 50) {ects = "E"; five = 3;clas="m3";}
		if (percent >= 61) {ects = "D"; five = 3;clas="m3";}
		if (percent >= 70) {ects = "C"; five = 4;clas="m4";}
		if (percent >= 81) {ects = "B"; five = 4;clas="m4";}
		if (percent >= 90) {ects = "A"; five = 5;clas="m5";}
		row.find(".semestr:eq(1)").html(percent);

		row.find(".semestr:eq(2)").html(ects);
		row.find(".semestr:eq(3)").html(five);
		row.find(".semestr:eq(3)").css({'width' : '10px'});
		row.find(".semestr:eq(3)").addClass(clas);		
		f = 0;
    });
	$(".calculate2 tbody tr").each(function(index, element) {
		while(f) ;
		f = 1;
        var row = $(element);
		var sum = 0;
		var val = 0;
		row.find("td:gt(2):lt(6)").each(function(index, element) {
			val = parseInt($(element).text());
			if (val > 0)
            	sum += val;
        });
		row.find(".semestr:eq(0)").html(sum);
		var	percent = Math.round(sum / 3.4);
		var ects = 0;
		var five = 0;
		var clas = "m2";
		ects = "F"; five = 2; 
		if (percent >= 26) {ects = "FX"; five = 2; clas="m2";}
		if (percent >= 50) {ects = "E"; five = 3;clas="m3";}
		if (percent >= 61) {ects = "D"; five = 3;clas="m3";}
		if (percent >= 70) {ects = "C"; five = 4;clas="m4";}
		if (percent >= 81) {ects = "B"; five = 4;clas="m4";}
		if (percent >= 90) {ects = "A"; five = 5;clas="m5";}
		row.find(".semestr:eq(1)").html(percent);
		
		row.find(".semestr:eq(2)").html(ects);
		row.find(".semestr:eq(3)").html(five);
		row.find(".semestr:eq(3)").css({'width' : '10px'});
		row.find(".semestr:eq(3)").addClass(clas);		
		f = 0;
    });
	$(".calculate4 tbody tr").each(function(index, element) {
		while(f) ;
		f = 1;
        var row = $(element);
		var sum = 0;
		var val = 0;
		row.find("td:gt(2):lt(6)").each(function(index, element) {
			val = parseInt($(element).text());
			if (val > 0)
            	sum += val;
        });
		row.find(".semestr:eq(0)").html(sum);
		var	percent = Math.round(sum / 2.6);
		var ects = 0;
		var five = 0;
		var clas = "m2";
		ects = "F"; five = 2; 
		if (percent >= 26) {ects = "FX"; five = 2; clas="m2";}
		if (percent >= 50) {ects = "E"; five = 3;clas="m3";}
		if (percent >= 61) {ects = "D"; five = 3;clas="m3";}
		if (percent >= 70) {ects = "C"; five = 4;clas="m4";}
		if (percent >= 81) {ects = "B"; five = 4;clas="m4";}
		if (percent >= 90) {ects = "A"; five = 5;clas="m5";}
		row.find(".semestr:eq(1)").html(percent);
		
		row.find(".semestr:eq(2)").html(ects);
		row.find(".semestr:eq(3)").html(five);
		row.find(".semestr:eq(3)").css({'width' : '10px'});
		row.find(".semestr:eq(3)").addClass(clas);		
		f = 0;
    });
	var points = [];
	$(".calculate3 thead tr:eq(1) td:gt(1):lt(12)").each(function(i, e)
	{
		points.push(parseInt($(e).text()));
		
	});
	$(".calculate3 tbody tr").each(function(index, element) {
		while(f) ;
		f = 1;
        var row = $(element);
		var sum = 0;
		var val = 0;
		row.find("td:gt(1):lt(12)").each(function(index, element) {
			val = parseInt($(element).text()) * points[index] / 100;
			if (val > 0)
            	sum += val;
        });
		row.find(".semestr:eq(0)").html(sum.toFixed(2));
		var	percent = Math.round(sum / 0.82);
		var ects = 0;
		var five = 0;
		var clas = "m2";
		ects = "F"; five = 2; 
		if (percent >= 26) {ects = "FX"; five = 2; clas="m2";}
		if (percent >= 50) {ects = "E"; five = 3;clas="m3";}
		if (percent >= 61) {ects = "D"; five = 3;clas="m3";}
		if (percent >= 70) {ects = "C"; five = 4;clas="m4";}
		if (percent >= 81) {ects = "B"; five = 4;clas="m4";}
		if (percent >= 90) {ects = "A"; five = 5;clas="m5";}
		row.find(".semestr:eq(1)").html(percent);

		row.find(".semestr:eq(2)").html(ects);
		row.find(".semestr:eq(3)").html(five);
		row.find(".semestr:eq(3)").css({'width' : '10px'});
		row.find(".semestr:eq(3)").addClass(clas);		
		f = 0;
    });
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0312 ]--