PageSourceSearch

https://www.chessclubmusic.com/wp-content/themes/musico/js/core/custom.js?ver=3.2.7

js chessclubmusic.com collected 2026-10-08 00:25:12 UTC 14,690 bytes, 466 lines download raw bytes

1jQuery(document).ready(function(){ 
2	"use strict";
3
4	jQuery(document).setNav();
5	
6	var moduloThumbnail = false;
7	if(jQuery('#tg_lightbox_thumbnails').val() == 'thumbnail')
8	{
9		moduloThumbnail = true;
10	}
11	
12	var lightboxTimer = jQuery('#tg_lightbox_timer').val();
13	
14	// create instance of ModuloBox
15	var mobx = '';
16	
17	mobx = new ModuloBox({
18	    // options
19	    mediaSelector : '.tg_gallery_lightbox, .woocommerce-product-gallery__image a',
20	    scrollToZoom  : true,
21	    controls : ['zoom', 'play', 'fullScreen', 'share', 'close'],
22	    shareButtons  : ['facebook', 'googleplus', 'twitter', 'pinterest', 'linkedin'],
23	    slideShowInterval : parseInt(lightboxTimer),
24	    countTimer: true,
25	    thumbnails: moduloThumbnail,
26	    videoAutoPlay: true,
27	    thumbnailSizes : {
28		    1920 : {          // browser width in 'px'
29		        width  : 110, // thumbnail width in 'px' - 0 in width will hide thumbnails
30		        height : 80,  // thumbnail height in 'px' - 0 in height will hide thumbnails
31		        gutter : 10   // gutter width in 'px' between thumbnails
32		    },
33		    1280 : {
34		        width  : 90,
35		        height : 65,
36		        gutter : 10
37		    },
38		    680 : {
39		        width  : 70,
40		        height : 50,
41		        gutter : 8
42		    },
43		    480 : {
44		        width  : 60,
45		        height : 44,
46		        gutter : 5
47		    }
48		}
49	});
50	
51	// initialize the instance	
52	mobx.init();
53	
54	jQuery(window).resize(function(){
55		//Resize main menu
56		jQuery(document).setNav();
57		
58		if(jQuery(this).width() < 768)
59		{
60			//Remove sticky sidebar for mobile & tablet devices
61		    jQuery("#page_content_wrapper .sidebar_wrapper").trigger("sticky_kit:detach");
62		}
63		else
64		{
65			//Calculate wrapper padding top value
66			jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px');
67			
68			//Reset menu padding top and bottom
69			jQuery('#menu_wrapper div .nav > li > a').attr('style', '');
70			jQuery('#menu_wrapper div .nav > li > a').attr('style', '');
71		}
72		
73		//Calculate revolution slider height
74		if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0)
75		{
76			var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();
77			var topBarHeight = jQuery('.top_bar').height();
78			
79			if(jQuery('.above_top_bar').length > 0)
80			{
81				topBarHeight+= jQuery('.above_top_bar').height();
82			}
83			
84			if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0)
85			{
86				var topBarHeight = 55;
87			}
88	
89			jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
90			jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
91		}
92	});
93    
94    jQuery('#menu_expand_wrapper a').on( 'click', function(){
95    	jQuery('#menu_wrapper').fadeIn();
96	    jQuery('#custom_logo').animate({'left': '15px', 'opacity': 1}, 400);
97	    jQuery('#menu_close').animate({'left': '-10px', 'opacity': 1}, 400);
98	    jQuery(this).animate({'left': '-60px', 'opacity': 0}, 400);
99	    jQuery('#menu_border_wrapper select').animate({'left': '0', 'opacity': 1}, 400).fadeIn();
100    });
101	
102	jQuery('#menu_close').on( 'click', function(){
103		jQuery('#custom_logo').animate({'left': '-200px', 'opacity': 0}, 400);
104	    jQuery(this).stop().animate({'left': '-200px', 'opacity': 0}, 400);
105	    jQuery('#menu_expand_wrapper a').animate({'left': '20px', 'opacity': 1}, 400);
106	    jQuery('#menu_border_wrapper select').animate({'left': '-200px', 'opacity': 0}, 400).fadeOut();
107	    jQuery('#menu_wrapper').fadeOut();
108	});
109    
110    //Add to top button when scrolling
111    jQuery(window).scroll(function() {
112	 	var calScreenWidth = jQuery(window).width();
113		
114		if(jQuery(this).scrollTop() > 200) {
115		    jQuery('#toTop').stop().css({opacity: 1, "visibility": "visible"}).animate({"visibility": "visible"}, {duration:1000,easing:"easeOutExpo"});
116		    jQuery('.icon-scroll').hide();
117		} else if(jQuery(this).scrollTop() == 0) {
118		    jQuery('#toTop').stop().css({opacity: 0, "visibility": "hidden"}).animate({"visibility": "hidden"}, {duration:1500,easing:"easeOutExpo"});
119		    jQuery('.icon-scroll').show();
120		}
121	});
122 
123	jQuery('#toTop, .hr_totop').on( 'click', function() {
124		jQuery('body,html,#page_content_wrapper.split').animate({scrollTop:0},800);
125	});
126	
127	var isDisableDragging = jQuery('#pp_enable_dragging').val();
128	
129	if(isDisableDragging!='')
130	{
131		jQuery("img").mousedown(function(){
132		    return false;
133		});
134	}
135	
136	if(jQuery('#pp_topbar').val()==0)
137	{
138		var topBarHeight = jQuery('.header_style_wrapper').height();
139	}
140	else
141	{
142		var topBarHeight = parseInt(jQuery('.header_style_wrapper').height()-jQuery('.header_style_wrapper .above_top_bar').height());
143	}
144	
145	var logoHeight = jQuery('#custom_logo img').height();
146	var logoTransHeight = jQuery('#custom_logo_transparent img').height();
147	var logoMargin = parseInt(jQuery('#custom_logo').css('marginTop'));
148	var logoTransMargin = parseInt(jQuery('#custom_logo_transparent').css('marginTop'));
149	var menuPaddingTop = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingTop'));
150	var menuPaddingBottom = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingBottom'));
151	var SearchPaddingTop = parseInt(jQuery('.top_bar #searchform button').css('paddingTop'));
152	var menuLayout = jQuery('#pp_menu_layout').val();
153	
154	if(menuLayout != 'leftmenu' || jQuery(window).width()<=768)
155	{
156		jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px');
157	}
158	
159	if(menuLayout != 'leftmenu' || jQuery(window).width()<=960)
160	{
161		jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
162		jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('paddingBottom', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
163		
164		jQuery(window).scroll(function(){
165			if(jQuery('#pp_fixed_menu').val()==1 && jQuery('html').data('style') != 'fullscreen'  && jQuery('html').data('style') != 'fullscreen_white')
166			{
167				if(jQuery(this).scrollTop() >= 200){
168					jQuery('.extend_top_contact_info').hide();
169					
170					jQuery('.header_style_wrapper').addClass('scroll');
171					jQuery('.top_bar').addClass('scroll');
172					
173					if(jQuery('.top_bar').hasClass('hasbg'))
174					{
175					    jQuery('.top_bar').removeClass('hasbg');
176					    jQuery('.top_bar').data('hasbg', 1);
177					    
178					    jQuery('#custom_logo').removeClass('hidden');
179					    jQuery('#custom_logo_transparent').addClass('hidden');
180					}
181			    }
182			    else if(jQuery(this).scrollTop() < 200)
183			    {
184			    	jQuery('.extend_top_contact_info').show();
185				    
186				    jQuery('#custom_logo img').removeClass('zoom');
187				    jQuery('#custom_logo img').css('maxHeight', '');
188					jQuery('#custom_logo_transparent img').removeClass('zoom');
189				    
190				    jQuery('#custom_logo').css('marginTop', parseInt(logoMargin)+'px');
191					jQuery('#custom_logo_transparent').css('marginTop', parseInt(logoTransMargin)+'px');
192					
193					jQuery('#menu_wrapper div .nav > li > a').css('paddingTop', menuPaddingTop+'px');
194					jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom', menuPaddingBottom+'px');
195					
196					if(jQuery('.top_bar').data('hasbg')==1)
197					{
198					    jQuery('.top_bar').addClass('hasbg');
199					    jQuery('#custom_logo').addClass('hidden');
200					    jQuery('#custom_logo_transparent').removeClass('hidden');
201					}
202					
203					jQuery('.header_style_wrapper').removeClass('scroll');
204					jQuery('.top_bar').removeClass('scroll');
205			    }
206		   }
207		   else
208		   {
209			   if(jQuery(this).scrollTop() >= 200)
210			   {
211			   		jQuery('.header_style_wrapper').addClass('nofixed');
212			   }
213			   else
214			   {
215			   		jQuery('.header_style_wrapper').removeClass('nofixed');
216			   }
217		   }
218		});
219		
220		if(jQuery('#tg_smart_fixed_menu').val()==1 && jQuery('html').data('style') != 'fullscreen'  && jQuery('html').data('style') != 'fullscreen_white')
221		{
222			//Smart sticky menu
223			if(!is_touch_device())
224			{
225			    var lastScrollTop = 0;
226			    jQuery(window).scroll(function(event){
227			       var st = jQuery(this).scrollTop();
228			       if (st > lastScrollTop && st > 0){
229			           jQuery('.top_bar').removeClass('scroll_up');
230			           jQuery('.header_style_wrapper').removeClass('scroll_up');
231			           jQuery('.header_style_wrapper').addClass('scroll_down');
232			       } else {
233			          jQuery('.top_bar').addClass('scroll_up');
234			          jQuery('.header_style_wrapper').addClass('scroll_up');
235			          jQuery('.header_style_wrapper').removeClass('scroll_down');
236			       }
237			       lastScrollTop = st;
238			       
239			       jQuery('.header_style_wrapper').attr('data-st', st);
240			       jQuery('.header_style_wrapper').attr('data-lastscrolltop', lastScrollTop);
241			    });
242			}
243			else
244			{
245			    var lastY;
246			    jQuery(document).bind('touchmove', function (e){
247			         var currentY = e.originalEvent.touches[0].clientY;
248
249			         if(currentY > 200){
250			         	jQuery('.top_bar').addClass('scroll_up');
251			            jQuery('.header_style_wrapper').addClass('scroll_up');
252			            jQuery('.header_style_wrapper').removeClass('scroll_down');
253			            
254			         } else {
255			            jQuery('.top_bar').removeClass('scroll_up');
256			            jQuery('.header_style_wrapper').removeClass('scroll_up');
257			            jQuery('.header_style_wrapper').addClass('scroll_down');
258			         }
259			         
260			         jQuery('.header_style_wrapper').attr('data-pos', currentY);
261			    });
262			}
263		}
264	} //If not left menu layout
265	
266	jQuery(document).mouseenter(function()
267	{	
268	    jQuery('body').addClass('hover');	
269	});	
270	
271	jQuery(document).mouseleave(function()
272	{	
273	    jQuery('body').removeClass('hover');	
274	});	
275	
276	jQuery('#post_more_close').on( 'click', function(){
277		jQuery('#post_more_wrapper').animate({ right: '-380px' }, 300);
278		
279		return false;
280	});
281	
282	jQuery('#mobile_nav_icon').on( 'click', function() {
283		jQuery('body').toggleClass('js_nav');
284		
285		if(jQuery(window).width() > 1024)
286		{
287			jQuery('body').toggleClass('modalview');
288		}
289		
290		jQuery('#close_mobile_menu').addClass('open');
291		
292		if(is_touch_device())
293		{
294			jQuery('body.js_nav').css('overflow', 'auto');
295		}
296	});
297	
298	jQuery('#close_mobile_menu').on( 'click', function() {
299		jQuery('body').removeClass('js_nav');
300		
301		if(jQuery('body').hasClass('modalview'))
302		{
303			setTimeout(function () { jQuery('body').removeClass('modalview'); }, 400);
304		}
305		
306		jQuery(this).removeClass('open');
307	});
308	
309	jQuery('.mobile_menu_close a, #mobile_menu_close').on( 'click', function() {
310		jQuery('body').removeClass('js_nav');
311		
312		if(jQuery('body').hasClass('modalview'))
313		{
314			setTimeout(function () { jQuery('body').removeClass('modalview'); }, 400);
315		}
316		
317		jQuery('#close_mobile_menu').removeClass('open');
318	});
319		
320	jQuery('.post_share').on( 'click', function() {
321		var targetShareID = jQuery(this).attr('data-share');
322		var targetParentID = jQuery(this).attr('data-parent');
323		
324		jQuery(this).toggleClass('visible');
325		jQuery('#'+targetShareID).toggleClass('slideUp');
326		jQuery('#'+targetParentID).toggleClass('sharing');
327		
328		return false;
329	});
330	
331	
332	if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0)
333	{
334		var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();
335		var topBarHeight = jQuery('.top_bar').height();
336		
337		if(jQuery('.above_top_bar').length > 0)
338		{
339			topBarHeight+= jQuery('.above_top_bar').height();
340		}
341		
342		if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0)
343		{
344			var topBarHeight = 55;
345		}
346
347		jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
348		jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
349	}
350    
351    jQuery('#demo_apply').on( 'click', function(){
352    	jQuery('#ajax_loading').addClass('visible');
353    	jQuery('body').addClass('loading');
354    	jQuery("form#form_option").submit();
355    });
356    
357    jQuery('#option_wrapper').mouseenter(function()
358	{	
359	    jQuery('body').addClass('overflow_hidden');	
360	});	
361	
362	jQuery('#option_wrapper').mouseleave(function()
363	{	
364	    jQuery('body').removeClass('overflow_hidden');	
365	});	
366	
367	var calScreenHeight = jQuery(window).height()-108;
368	var miniRightPos = 800;
369	
370	jQuery('#overlay_background').on( 'click', function(){
371		if(!jQuery('body').hasClass('js_nav'))
372		{
373			jQuery('#overlay_background').removeClass('visible');
374			jQuery('#overlay_background').removeClass('share_open');
375			jQuery('#fullscreen_share_wrapper').css('visibility', 'hidden');
376		}
377	});
378    
379    var menuLayout = jQuery('#pp_menu_layout').val();
380	
381	if(jQuery('.one.fullwidth.slideronly').length > 0)
382	{
383		jQuery('body').addClass('overflow_hidden');
384	}
385	
386	// Find all YouTube & Vimeo videos
387	jQuery('iframe[src*="youtube.com"]').each(function() {
388		jQuery(this).wrap('<div class="video-container"></div>');
389	});
390	
391	jQuery('iframe[src*="vimeo.com"]').each(function() {
392		jQuery(this).wrap('<div class="video-container"></div>');
393	});
394	
395	jQuery('.blog-tilt').tilt({
396		perspective: 5000
397	});
398	
399	jQuery(".input_wrapper input").focusout(function(){
400		if(jQuery(this).val() != "")
401		{
402			$(this).addClass("has-content");
403		} else {
404			jQuery(this).removeClass("has-content");
405		}
406	});
407	
408	jQuery(window).scroll(function() {
409	    var oVal;
410	    oVal = jQuery(window).scrollTop() / 300;
411	    if(oVal>1)
412	    {
413		    oVal = 1;
414	    }
415	    oVal = parseFloat(1-oVal);
416	    
417	    jQuery('#page_caption.hasbg .page_title_wrapper .page_title_inner').css('opacity', oVal);
418	    
419	    var posVal = -(jQuery(window).scrollTop() * 0.005);
420	    jQuery('#page_caption.hasbg .page_title_wrapper .page_title_inner').css({'transform':'translate(0px,'+posVal+'px)'});
421	});
422	
423	if(!is_touch_device())
424	{
425		jQuery('.stellar').each(function() {
426			jQuery(this).attr('data-stellar-ratio', '1.2');
427		});
428		
429		jQuery(window).stellar({
430			positionProperty: 'transform',
431			responsive: true,
432			parallaxBackgrounds: false,
433			horizontalScrolling: false,
434			hideDistantElements: false,
435		});
436	}
437	
438	var isFooterReveal = jQuery('#tg_footer_reveal').val();
439	
440	if(isFooterReveal!='')
441	{
442		var bumpIt = function() {
443			if(jQuery(window).width() > 768)
444			{
445				jQuery('#wrapper').css('margin-bottom', parseInt(jQuery('#footer_wrapper').height()));
446			}
447	    },
448	    didResize = false;
449	    
450	    setInterval(function() {
451			bumpIt();
452		}, 250);
453		
454		jQuery(window).resize(function() {
455		  didResize = true;
456		});
457		setInterval(function() {
458		  if(didResize) {
459		    didResize = false;
460		    bumpIt();
461		  }
462		}, 250);
463	}
464});
465
466jQuery(window).on('resize load',adjustIframes);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.