403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.119.108.165
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/www/wp-content/themes/TESSERACT/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/www/wp-content/themes/TESSERACT/js/helpers.js
(function($) {

	$(document).ready(function() {
		/*
		 * Comment placeholders
		 * (Localized via wp_localize_script in functions file)
		 */
		$( '#author' ).attr( 'placeholder','Your Name' );
		$( '#email' ).attr( 'placeholder','E-mail' );
		$( '#url' ).attr( 'placeholder','Website' );
		$( '#comment' ).attr( 'placeholder','Your Comment' );

		var sourceVal = ( $('#site-banner-right > *:not(script):not(.woocart-header)').length > 0 ) ? '#site-navigation, #site-banner-right > *:not(script):not(.woocart-header)' : '#site-navigation';

		$('#mobile-menu-trigger').sidr({
			source: sourceVal,
			name: 'sidr-main'
		});

		$(window).load(function() {
			// WATERMARK
			var watermark = 'Search …';

			//init, set watermark text and class
			$('.search-field, .sidr-class-search-field').val(watermark).addClass('watermark');

			//if blur and no value inside, set watermark text and class again.
			$('.search-field, .sidr-class-search-field').blur(function(){
				if ($(this).val().length == 0){
					$(this).val(watermark).addClass('watermark');
				}
			});

			//if focus and text is watermrk, set it to empty and remove the watermark class
			$('.search-field, .sidr-class-search-field').focus(function(){
				if ($(this).val() == watermark){
					$(this).val('').removeClass('watermark');
				}
			});
			// EOF WATERMARK

			// ]if ( self == top )[ = if content is sitting in an iframe
			if ( $('#site-navigation').hasClass('showit') && ( self !== top ) ) {

				$.sidr('open', 'sidr-main');

			}

			equalheight('#sidebar-footer aside');

			if ( $(window).width() <= 768 ) {
				$('.tesseract-featured .entry-title').fitText(1, { maxFontSize: '75px' });
				$('.featured-widget h1').fitText(1, { maxFontSize: '100px' });
				$('.headline-resize').fitText(1, { maxFontSize: '100px' });
			}

			if ( $(window).height() > $('#page').height() ) {

				var wheight = $(window).height(),
				hheight = parseInt( $('#masthead').not('.pos-absolute').height() ),
				fheight = parseInt( $('#colophon').height() );

				hpad = tesseract_vars.hpad ? tesseract_vars.hpad : 10;
				fpad = tesseract_vars.fpad ? tesseract_vars.fpad : 10;

				if ( $('body').hasClass('transparent-header') ) {
					var offset = parseInt( wheight - ( fheight + 2*fpad ) );
				} else {
					var offset = parseInt( wheight - ( (hheight + 2*hpad) + (fheight + 2*fpad) ) );
				}

				// ]if ( self !== top )[ = if content is sitting in an iframe
				if ( ( $('body').hasClass('logged-in') ) && ( self == top ) ) {
					var offsetFinal = ( $(window).width() > 782 ) ? ( offset-32 ) : ( offset-46 );
				} else {
					var offsetFinal = offset;
				}

				if ( $('#content').height() < offsetFinal ) {
					$('#content').animate({
						'height': offsetFinal
					}, 500 )
				}

			}

		});

		$(window).resize(function(){

		 	equalheight('#sidebar-footer aside');

			if ( $(window).width() <= 768 ) {
				$('.tesseract-featured .entry-title').fitText(1, { maxFontSize: '75px' });
				$('.featured-widget h1').fitText(1, { maxFontSize: '100px' });
				$('.headline-resize').fitText(1, { maxFontSize: '100px' });
			}

		});

	});
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit