!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/themes/kingsize/js/   drwxr-xr-x
Free 180.53 GB of 490.84 GB (36.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     custom.js (17.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
jQuery(document).ready(function($) {    

	//DROPDOWN SCRIPT
	$('#navbar ul').css({display: "none"}); 
	$('#navbar li').hover(function(){
		$(this).find('ul:first').css({visibility: "visible", display: "none"}).fadeIn('fast');
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
	});		
		// IE navbar last child fix		
		$('#navbar li ul li:last-child').css('border-bottom', 'none');		
    	//GALLERY IMAGES HOVER SCRIPT        
        //add span that will be shown on hover on gallery item
        $(".gallery li a.image, .columns a.image, .lightbox_blog").append('<span class="image_hover"></span>'); //add span to images
        $(".gallery  li a.video, .columns a.video").append('<span class="video_hover"></span>'); //add span to videos

        $('.gallery  li a span, .columns a span').css('opacity', '0').css('display', 'block') //span opacity = 0 
        
        // show / hide span on hover
        $(".gallery li a, .columns a, .lightbox_blog").hover(
            function () {
                 $(this).find('.image_hover, .video_hover').stop().fadeTo('slow', .7); }, 
        	function () {
                 $('.image_hover, .video_hover').stop().fadeOut('slow', 0);
        });	
    //IF BODY HAS CLASS VIDEO_BACKGROUND, MAKE HTML HEIGHT 100% AND ABILITY TO HIDE AND SHOW NAVIGATION ON HOME PAGE


	//Remove the lightbox from Blog
	$(".lightbox_not").hover( function(){
	   $('.image_hover').stop().fadeTo('fast', 0); 
	   $('.image_hover').css('display', 'none');
	});
		

	$('#hide_menu a').css('display', 'block');	
		                  	         
    //SHOWING MENU TOOLTIP ------ delete if you don't want it!                    
    $('#hide_menu a').hover( function(){
         $('.menu_tooltip').stop().fadeTo('fast', 1); 
		 $('.menu_tooltip').css('display', 'block');
     },
     function () {
     	$('.menu_tooltip').stop().fadeTo('fast', 0); 
		$('.menu_tooltip').css('display', 'none');
	});
             
		// Hide menu on the homepage	//	if($('body').hasClass('slider'))//	{ $('#hide_menu a.menu_visible').removeClass('menu_visible').addClass('menu_hidden').attr('title', 'Show the navigation');//	//	$('#menu_wrap').animate({top: "-=480px"}, 0);////	}
	 
	 	var navHeight = $('#navContainer').height();
	 	var hideHeight = navHeight - 120; 
	 
	 	if ($('body').hasClass('body_hiding_menu'))
	 		{
	 		
	 		//add class hidden
	 			$('#hide_menu a.menu_visible')
	 				.removeClass('menu_visible')
	 				.addClass('menu_hidden');
	 			
				//.attr('title', 'Show the navigation')

	 			// hide the tooltip     
	 			$('.menu_tooltip').css('opacity', '0');
	 			  
	 			//move navigation up, after replace the text                  
	 			$('#navContainer').animate({top: '-='+ hideHeight + 'px'}, "normal", function() {      	
	 				$('.menu_tooltip .tooltip_hide').hide();	   
	 				$('.menu_tooltip .tooltip_show').show();	
	 						
	 			 });	 		
	 		}
	 
				
	   //HIDING MENU     

		
		//click on hide menu button (arrow points up)                            
		$('#hide_menu a.menu_visible').live('click',function(){	
											  
		   $('#supersized-loader').remove();		//Hide loading animation
		   $('#supersized-loader').remove();		//Hide loading animation	        	

				//add class hidden
				$('#hide_menu a.menu_visible')
					.removeClass('menu_visible')
					.addClass('menu_hidden');
			   
			   //.attr('title', 'Show the navigation')

				// hide the tooltip     
				$('.menu_tooltip').css('opacity', '0');
				  
				//move navigation up, after replace the text                  
				$('#navContainer').animate({top: '-='+ hideHeight + 'px'}, "normal", function() {      	
					$('.menu_tooltip .tooltip_hide').hide();	   
					$('.menu_tooltip .tooltip_show').show();	
							
				 });
				 
//				 $('#main_wrap').fadeOut();
				 
//				 $(window).trigger('resize');
								
				return false;
				
				
				
			});
				  
					
		//SHOWING MENU	
			//click on show menu button (arrow points down)                      	
			 $('#hide_menu a.menu_hidden').live('click', function(){	

			  $('#supersized-loader').remove();		//Hide loading animation
			  $('#supersized-loader').remove();		//Hide loading animation	 
				
				 //add class visible	
				 $('#hide_menu a.menu_hidden')
					 .removeClass('menu_hidden')
					 .addClass('menu_visible');
			
				// hide the tooltip      
				    $('.menu_tooltip').css('opacity', '0');    
					$('#navContainer').animate({ top: '+='+ hideHeight + 'px'}, 'normal');  
					$('.menu_tooltip .tooltip_show').hide();
					$('.menu_tooltip .tooltip_hide').show();
					
					
				if($('body').hasClass('body_show_content'))
				{
				
					 $('#main_wrap').fadeIn();	
				
				}	
					
			
					
				 return false;    
			 });

/////////////// End of showHide menu //////////////	  


	//FORM (CONTACT & COMMENTS) SCRIPTS

		//set variables
		var nameVal = $("#form_name").val();
		var emailVal = $("#form_email").val();
		var websiteVal = $("#form_website").val();
		var messageVal = $("#form_message").val();
				
		//if name field is empty, show label in it
		if(nameVal == '') {
		$("#form_name").parent().find('label').css('display', 'block');	
		}
		
		//if email field is empty, show label in it
		if(emailVal == '') {
		$("#form_email").parent().find('label').css('display', 'block');	
		}
		
		//if website field is empty, show label in it
		if(websiteVal == '') {
		$("#form_website").parent().find('label').css('display', 'block');	
		}
					
		
		//if message field is empty, show label in it
		if(messageVal == '') {
		$("#form_message").parent().find('label').css('display', 'block');	
		}

		$('#contact_form input, #contact_form textarea').parent().find('label').hide();		
		//hide labels on focus		
		$('#contact_form input, #contact_form textarea, #comment_form input, #comment_form textarea').focus(function(){
			//$(this).parent().find('label').fadeOut('fast');		
			if($(this).val() == $(this).parent().find('label').text()){
				$(this).val('');
			}
			//if($(this).is('input')){}
		});		

		$('#subscribe-label, #subscribe-blog-label').css('display', 'block');
		
		//show labels when field is not focused - only if there are no text
		$('#contact_form input, #contact_form textarea, #comment_form input, #comment_form textarea').blur(function(){
			var currentInput = 	$(this);	
			if (currentInput.val() == ""){
   			 //$(this).parent().find('label').fadeIn('fast');
			 currentInput.val($(this).parent().find('label').text());
 			 }
		});		
		
		
	// CONTACT FORM HANDLING SCRIPT - WHEN USER CLICKS "SUBMIT"
	$("#contact_form #form_submit").click(function(){		
				   				 		
		// hide all error messages
		$(".error").hide();
		
		// remove "error" class from text fields
		$("#contact_form input, #contact_form textarea, #comment_form input, #comment_form textarea").focus(function() {
 			$(this).removeClass('error_input');
			$(this).css('border-color','#333');
			});
		
		// remove error messages when user starts typing		
		$("#contact_form input, #contact_form textarea, #comment_form input, #comment_form textarea").keypress(function() {
 			$(this).parent().find('span').fadeOut();	
		});
		
		$("#form_message").keypress(function() {	
			$(this).stop().animate({ 
  			  width: "380px"
 			 }, 100); 
		});
		
		// set variables
		var hasError = false;
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
		
		
		// validate "name" field
		var nameVal = $("#form_name").val();
		if(nameVal == '' || nameVal == $("#form_name").parent().find('label').text()) {
			$("#form_name")
			.after('<span class="error">'+contact_form_name+'</span>')
			.addClass('error_input');
			$('#form_name').css('border-color','#ff0000');
			hasError = true;
		}

	
		// validate "e-mail" field - andd error message and animate border to red color on error
		var emailVal = $("#form_email").val();
		if(emailVal == '') {
			$("#form_email")
			.after('<span class="error">'+contact_form_email+'</span>')
			.addClass('error_input');
			$('#form_email').css('border-color','#ff0000');
			hasError = true; 
				
		} else if(!emailReg.test(emailVal)) {	
			$("#form_email")
			.after('<span class="error">'+contact_form_valid_email+'</span>')
			.addClass('error_input');
			$('#form_email').css('border-color','#ff0000');
			hasError = true;
		}
		
				
		// validate "message" field
		var messageVal = $("#form_message").val();
		if(messageVal == ''|| messageVal == $("#form_message").parent().find('label').text()) {
			
			$("#form_message").stop().animate({ 
  			  	width: "250px"
 			 }, 100 )
			.after('<span class="error comment_error">'+contact_form_message+'</span>')
			.addClass('error_input');
			$('#form_message').css('border-color','#ff0000');
			hasError = true;
		}
		
       // if the are errors - return false
       if(hasError == true) { return false; }
            
		// if no errors are found - submit the form with AJAX
		if(hasError == false) {
			
		var dataString = $('#contact_form').serialize();

			//hide the submit button and show the loader image	
			$("#form_submit").fadeOut('fast', function () {
			$('#contact_form').append('<span id="loader"></span>'); 
			});
			       
			
		// make an Ajax request
        $.ajax({
            type: "POST",
            url: template_directory+"/php/contact-send.php",
            data: dataString,
            success: function(){ 
           
          // on success fade out the form and show the success message
          $('#loader').remove();
          $('#contact_form').children().fadeOut('fast');
          $('.contact_info').fadeOut('fast');
           $('.success').fadeIn();    	
            }
        }); // end ajax

		 return false;  
		} 	
		
	});		
	
	//CONTACT PAGE MAP - CHANGE OPACITY ON HOVER
		$('img.map').css('opacity', '.5');
		
		$('img.map').hover(function(){
			$(this).fadeTo('fast', 1);	
		},
		function(){
			$(this).fadeTo('fast', .5);	
		});
	
	
	// FOOTER TOOLTIPS
	$('.tooltip_link').tipsy({gravity: 's', fade: 'true' });	
	
	
	
	//SHORTCODES & ELEMENTS
	
//tabs
$(".tab_content").hide();
$("ul.tabs").each(function() {
    $(this).find('li:first').addClass("active");
    $(this).next('.tab_container').find('.tab_content:first').show();
});

$("ul.tabs li a").click(function() {
    var cTab = $(this).closest('li');
    cTab.siblings('li').removeClass("active");
    cTab.addClass("active");
    cTab.closest('ul.tabs').nextAll('.tab_container:first').find('.tab_content').hide();

    var activeTab = $(this).attr("href"); //Find the href attribute value to identify the active tab + content
    $(activeTab).fadeIn(); //Fade in the active ID content
    return false;
});


// accordion
	 
$('.accordion div.accordion_content').hide();

$('.accordion div.active_acc').next().show();

$('.accordion div.accordion_head a').click(function(){
	//console.log($(this).parent().next().height());
	if ($(this).parent().hasClass('active_acc')){		
		$(this).parent().removeClass('active_acc').next().slideUp('1000');
	}else {
		$(this).closest('.accordion').find('.active_acc').removeClass('active_acc');
	 	$(this).closest('.accordion').find('.accordion_content').slideUp(); 
		$(this).parent().addClass('active_acc');		
		$(this).parent().next().slideDown('1000');
	}
    return false;
});
  
  
  	//toggls
  	

  	$(".hide").hide();
  	 
  	$(".toggle").click(function(){
  	 
  	$(this).closest(".toggle_box").find(".hide").toggle("fast");
  	
	$(this).toggleClass('active');
  	
  	return false;
  	}); 
	

	//changing class name of comment child class 8/1/2014 Added KS
	$("ul.children").attr('class', 'children no-bullet blog_comments');
	
}); //document.ready function ends here

$(window).load(function (){	
	if($('body').hasClass('body_about')){
		$('body').append('<div class="grid"></div>');		
	}	
});



//hide tooltip
function hideTips(event) {  
    var saveAlt = $(this).attr('alt');
    var saveTitle = $(this).attr('title');
    if (event.type == 'mouseenter') {
        $(this).attr('title','');
        $(this).attr('alt','');
    } else {
        if (event.type == 'mouseleave'){
            $(this).attr('alt',saveAlt);
            $(this).attr('title',saveTitle);
        }
   }
}

$(document).ready(function(){

	$(".gallery a").live("hover", hideTips);
	$(".portfolio a").live("hover", hideTips);
	$(".single_post a").live("hover", hideTips);	
	/* Responsive V5 $(".post a").live("hover", hideTips);*/	
	
	/*
		Code for generating mobile navigation from desktop one ----
	*/	


	$( ".sub-menu > li" ).removeClass('mainNav'); //Fixed for empty child nav in mobile version removing class from child nav "li"	Done By Kumar 8/5/2014
	$( ".sub-menu > li" ).removeClass('no_desc'); //Fixed for empty child nav in mobile version removing class from child nav "li"	Done By Kumar 8/5/2014

	$( "body" ).removeClass('blog'); //Fixed for spacing issue in mobile version header area	Done By Kumar 8/5/2014

	$( "#mainNavigation > ul" ).clone().appendTo( "#cssmenu" );
	
	$('#cssmenu li.mainNav').each(function(i){
		// to set the menu active ----
		//if($(this).children('a').hasClass('current')){
		$(this).find('a.current').parents('li').addClass('active');
		$(this).find('li').each(function(j){
			$(this).find('a').css('margin-left',($(this).parents('li').length)*10);
		});
		//}
		$(this).removeClass('mainNav');
		$(this).children('li a').each(function(i){
			$(this).html('<span>'+$(this).children('h5').text()+'</span>');
		});
		
		
	});
	//console.log('UL::-- '+mobileUL.html());
	//	$('div#cssmenu > ul').append(mobileUL.html());
	/*
		Mobile nav events handling code ----
	*/	
	$('#cssmenu > ul > li ul').each(function(index, e){
	  var count = $(e).find('>li').length;
	  var content = '<span class="cnt">' + count + '</span>';
	  $(e).closest('li').children('a').append(content);
	});
	$('#cssmenu ul ul li:odd').addClass('odd');
	$('#cssmenu ul ul li:even').addClass('even');
	// to set the selected nav always active ----
	var activeEle = $('#cssmenu li.active');
	
	$('#cssmenu ul li > a').click(function() {
	  //$('#cssmenu li').removeClass('active');	  
	  $(this).closest('li').siblings().removeClass('active');	  
	  $(this).closest('li').siblings().children('li').removeClass('active');
	  activeEle.addClass('active');	  
	  $(this).parent('li').addClass('active');	
	  var checkElement = $(this).next();
	  if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
		$(this).parent('li').removeClass('active');
		activeEle.addClass('active');
		checkElement.slideUp('normal');
	  }
	  if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {		
		checkElement.closest('li').siblings().children('ul:visible').slideUp('normal');		
		checkElement.slideDown('normal');
	  }
	  if($(this).closest('li').find('ul').children().length == 0) {
		return true;
	  } else {
		return false;	
	  }		
	});
	
	/*
		To show / hide the desktop navigation on arrow button click ----		
	*/
	var isUp = false;
	var navHeight = $('#navContainer').height();
	var hideHeight = navHeight - 50; 

	$('#arrowLink a').click(function(e){
		e.preventDefault();
		navHeight = $('#navContainer').height();
		hideHeight = navHeight - 50; 
		
		$('.tooltip').remove();
		if(!isUp){			
			$(this).find('img').attr('src',template_directory+'/images/menu_hide_arrow_bottom.png');
			$(this).find('img').attr('title','Show the navigation');
			$( "#navContainer" ).animate({			
				top: '-='+ hideHeight + 'px'
			}, 500, "swing", function() {
				isUp = true;
			});	
		}else{
			$(this).find('img').attr('src',template_directory+'/images/menu_hide_arrow_top.png');
			$(this).find('img').attr('title','Hide the navigation');
			$( "#navContainer" ).animate({			
				top: "0"
			}, 500, "swing", function() {
				isUp = false;
			});				


			if($('body').hasClass('body_show_content'))
			{
				 $('#mainContainer').fadeIn();	
			}	
		}
	});

	/* AUTO HIDE MENU @ KS */
	if ($('body').hasClass('body_hiding_menu'))
	{	
		$('#arrowLink a').click();
	}
	
	
	// Tooltip only Text
    $('.masterTooltip').hover(function(){
          // Hover over code
          var title = $(this).attr('title');
          $(this).data('tipText', title).removeAttr('title');
          $('<p class="tooltip"></p>')
          .text(title)
          .appendTo('body')
          .fadeIn('slow');
    }, function() {
          // Hover out code
		  var title = $(this).attr('title');
		  if (typeof title !== 'undefined' && title !== false) {
			 $(this).attr('title', title);	
  		  }else{
			  $(this).attr('title', $(this).data('tipText'));
		  }
          $('.tooltip').remove();
    }).mousemove(function(e) {
          var mousex = e.pageX + 20; //Get X coordinates
          var mousey = e.pageY + 0; //Get Y coordinates
          $('.tooltip').css({ top: mousey, left: mousex })
    });		
});




//############# Thumbnail Mouseover Error / HTML FIX ############# //
jQuery(function($) {
		$('.gallery_colorbox a, .gallery_fancybox a, .gallery_prettyphoto a, .assorted a').hover(function() {
			
			var title = $(this).prop('title'); //getting title attribute  

			var myrRegexp = /<p>(.*?)<\/p>/i,  //regular exp to get between tags text
			match = myrRegexp.exec(title); //executing the march from title
			
			var regex = /(<([^>]+)>)/ig; //regular exp
			var result = title.replace(regex, ""); //removing the html tags
			
			if(match)
			{
			result = result.replace(match[1], ""); //removing the text of p tag (description text)
			}

			$(this).data('orig-title', title).prop('title', result);
		}, function() {  
			$(this).prop('title', $(this).data('orig-title'));
		});

		$(".gallery_colorbox a, .gallery_fancybox a, .gallery_prettyphoto a, .assorted a").click(function() {
			$(this).prop('title', $(this).data('orig-title'));
		});
});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0068 ]--