PageSourceSearch

https://butzi-speaker.com/wp-content/themes/dotlife/js/core/custom.js?ver=2.2

js butzi-speaker.com collected 2026-10-06 18:36:44 UTC 14,542 bytes, 465 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			if(jQuery('#tg_header_content').val() == 'menu')
67			{
68				jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px');
69			}
70			else
71			{
72				jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px');
73			}
74			
75			//Reset menu padding top and bottom
76			jQuery('#menu_wrapper div .nav > li > a').attr('style', '');
77			jQuery('#menu_wrapper div .nav > li > a').attr('style', '');
78		}
79		
80		//Calculate revolution slider height
81		if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0)
82		{
83			var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();
84			var topBarHeight = jQuery('.top_bar').height();
85			
86			if(jQuery('.above_top_bar').length > 0)
87			{
88				topBarHeight+= jQuery('.above_top_bar').height();
89			}
90			
91			if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0)
92			{
93				var topBarHeight = 55;
94			}
95	
96			jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
97			jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
98		}
99	});
100    
101    jQuery('#menu_expand_wrapper a').on( 'click', function(){
102    	jQuery('#menu_wrapper').fadeIn();
103	    jQuery('#custom_logo').animate({'left': '15px', 'opacity': 1}, 400);
104	    jQuery('#menu_close').animate({'left': '-10px', 'opacity': 1}, 400);
105	    jQuery(this).animate({'left': '-60px', 'opacity': 0}, 400);
106	    jQuery('#menu_border_wrapper select').animate({'left': '0', 'opacity': 1}, 400).fadeIn();
107    });
108	
109	jQuery('#menu_close').on( 'click', function(){
110		jQuery('#custom_logo').animate({'left': '-200px', 'opacity': 0}, 400);
111	    jQuery(this).stop().animate({'left': '-200px', 'opacity': 0}, 400);
112	    jQuery('#menu_expand_wrapper a').animate({'left': '20px', 'opacity': 1}, 400);
113	    jQuery('#menu_border_wrapper select').animate({'left': '-200px', 'opacity': 0}, 400).fadeOut();
114	    jQuery('#menu_wrapper').fadeOut();
115	});
116    
117    //Add to top button when scrolling
118    jQuery(window).scroll(function() {
119	 	var calScreenWidth = jQuery(window).width();
120		
121		if(jQuery(this).scrollTop() > 200) {
122		    jQuery('#toTop').stop().css({opacity: 1, "visibility": "visible"}).animate({"visibility": "visible"}, {duration:1000});
123		    jQuery('.icon-scroll').hide();
124		} else if(jQuery(this).scrollTop() == 0) {
125		    jQuery('#toTop').stop().css({opacity: 0, "visibility": "hidden"}).animate({"visibility": "hidden"}, {duration:1500});
126		    jQuery('.icon-scroll').show();
127		}
128	});
129 
130	jQuery('#toTop, .hr_totop').on( 'click', function() {
131		jQuery('body,html,#page_content_wrapper.split').animate({scrollTop:0},800);
132	});
133	
134	jQuery('#single_course_enroll').on( 'click', function() {
135		var scrollToPos = parseInt(jQuery('#course_action').offset().top);
136
137		jQuery('body,html').animate({
138			scrollTop: scrollToPos
139		}, 1200);
140	});
141	
142	var isDisableDragging = jQuery('#pp_enable_dragging').val();
143	
144	if(isDisableDragging!='')
145	{
146		jQuery("img").mousedown(function(){
147		    return false;
148		});
149	}
150	
151	if(jQuery('#pp_topbar').val()==0)
152	{
153		var topBarHeight = jQuery('.header_style_wrapper').height();
154	}
155	else
156	{
157		var topBarHeight = parseInt(jQuery('.header_style_wrapper').height()-jQuery('.header_style_wrapper .above_top_bar').height());
158	}
159	
160	var logoHeight = jQuery('#custom_logo img').height();
161	var logoTransHeight = jQuery('#custom_logo_transparent img').height();
162	var logoMargin = parseInt(jQuery('#custom_logo').css('marginTop'));
163	var logoTransMargin = parseInt(jQuery('#custom_logo_transparent').css('marginTop'));
164	var menuPaddingTop = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingTop'));
165	var menuPaddingBottom = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingBottom'));
166	var SearchPaddingTop = parseInt(jQuery('.top_bar #searchform button').css('paddingTop'));
167	var menuLayout = jQuery('#pp_menu_layout').val();
168	
169	if(menuLayout != 'leftmenu' || jQuery(window).width()<=768)
170	{
171		//Calculate wrapper padding top value
172		if(jQuery('#tg_header_content').val() == 'menu')
173		{
174			jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px');
175		}
176		else
177		{
178			jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px');
179			setTimeout(function () { jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px'); }, 200);
180			setTimeout(function () { jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px'); }, 1000);
181		}
182	}
183	
184	if(menuLayout != 'leftmenu' || jQuery(window).width()<=960)
185	{
186		jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
187		jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('paddingBottom', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
188		
189		jQuery(window).scroll(function(){
190			if(jQuery('#pp_fixed_menu').val()==1 && jQuery('html').data('style') != 'fullscreen'  && jQuery('html').data('style') != 'fullscreen_white')
191			{
192				if(jQuery(this).scrollTop() >= 100){
193					jQuery('.extend_top_contact_info').hide();
194					
195					jQuery('.header_style_wrapper').addClass('scroll');
196					jQuery('.top_bar').addClass('scroll');
197					
198					if(jQuery('.top_bar').hasClass('hasbg'))
199					{
200					    jQuery('.top_bar').removeClass('hasbg');
201					    jQuery('.top_bar').data('hasbg', 1);
202					    
203					    jQuery('#custom_logo').removeClass('hidden');
204					    jQuery('#custom_logo_transparent').addClass('hidden');
205					}
206			    }
207			    else if(jQuery(this).scrollTop() < 100)
208			    {
209			    	jQuery('.extend_top_contact_info').show();
210				    
211				    jQuery('#custom_logo img').removeClass('zoom');
212				    jQuery('#custom_logo img').css('maxHeight', '');
213					jQuery('#custom_logo_transparent img').removeClass('zoom');
214				    
215				    jQuery('#custom_logo').css('marginTop', parseInt(logoMargin)+'px');
216					jQuery('#custom_logo_transparent').css('marginTop', parseInt(logoTransMargin)+'px');
217					
218					jQuery('#menu_wrapper div .nav > li > a').css('paddingTop', menuPaddingTop+'px');
219					jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom', menuPaddingBottom+'px');
220					
221					if(jQuery('.top_bar').data('hasbg')==1)
222					{
223					    jQuery('.top_bar').addClass('hasbg');
224					    jQuery('#custom_logo').addClass('hidden');
225					    jQuery('#custom_logo_transparent').removeClass('hidden');
226					}
227					
228					jQuery('.header_style_wrapper').removeClass('scroll');
229					jQuery('.top_bar').removeClass('scroll');
230			    }
231		   }
232		   else
233		   {
234			   if(jQuery(this).scrollTop() >= 100)
235			   {
236			   		jQuery('.header_style_wrapper').addClass('nofixed');
237			   }
238			   else
239			   {
240			   		jQuery('.header_style_wrapper').removeClass('nofixed');
241			   }
242		   }
243		});
244	} //If not left menu layout
245	
246	
247	//script for Elementor header
248	jQuery(window).scroll(function(){
249		if(jQuery('#pp_fixed_menu').val()==1)
250		{
251			if(jQuery(this).scrollTop() >= 100){
252				jQuery('#elementor_header').removeClass('visible');
253				jQuery('#elementor_sticky_header').addClass('visible');
254		    }
255		    else if(jQuery(this).scrollTop() < 100)
256		    {
257				jQuery('#elementor_header').addClass('visible');
258				jQuery('#elementor_sticky_header').removeClass('visible');
259			}
260	   }
261	});
262	
263	jQuery(document).mouseenter(function()
264	{	
265	    jQuery('body').addClass('hover');	
266	});	
267	
268	jQuery(document).mouseleave(function()
269	{	
270	    jQuery('body').removeClass('hover');	
271	});	
272	
273	jQuery('#post_more_close').on( 'click', function(){
274		jQuery('#post_more_wrapper').animate({ right: '-380px' }, 300);
275		
276		return false;
277	});
278	
279	jQuery('#mobile_nav_icon, #elementor_mobile_nav, .elementor_mobile_nav').on( 'click', function() {
280		jQuery('body').toggleClass('js_nav');
281		jQuery('body').toggleClass('modalview');
282		jQuery('#close_mobile_menu').addClass('open');
283		
284		if(is_touch_device())
285		{
286			jQuery('body.js_nav').css('overflow', 'auto');
287		}
288	});
289	
290	jQuery('#close_mobile_menu').on( 'click', function() {
291		jQuery('body').removeClass('js_nav');
292		setTimeout(function () { jQuery('body').toggleClass('modalview'); }, 400);
293		jQuery(this).removeClass('open');
294	});
295	
296	jQuery('.mobile_menu_close a, #mobile_menu_close').on( 'click', function() {
297		jQuery('body').removeClass('js_nav');
298		setTimeout(function () { jQuery('body').toggleClass('modalview'); }, 400);
299		jQuery('#close_mobile_menu').removeClass('open');
300	});
301		
302	jQuery('.post_share').on( 'click', function() {
303		var targetShareID = jQuery(this).attr('data-share');
304		var targetParentID = jQuery(this).attr('data-parent');
305		
306		jQuery(this).toggleClass('visible');
307		jQuery('#'+targetShareID).toggleClass('slideUp');
308		jQuery('#'+targetParentID).toggleClass('sharing');
309		
310		return false;
311	});
312	
313	
314	if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0)
315	{
316		var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();
317		var topBarHeight = jQuery('.top_bar').height();
318		
319		if(jQuery('.above_top_bar').length > 0)
320		{
321			topBarHeight+= jQuery('.above_top_bar').height();
322		}
323		
324		if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0)
325		{
326			var topBarHeight = 55;
327		}
328
329		jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
330		jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
331	}
332    
333    jQuery('#demo_apply').on( 'click', function(){
334    	jQuery('#ajax_loading').addClass('visible');
335    	jQuery('body').addClass('loading');
336    	jQuery("form#form_option").submit();
337    });
338    
339    jQuery('#option_wrapper').mouseenter(function()
340	{	
341	    jQuery('body').addClass('overflow_hidden');	
342	});	
343	
344	jQuery('#option_wrapper').mouseleave(function()
345	{	
346	    jQuery('body').removeClass('overflow_hidden');	
347	});	
348	
349	var calScreenHeight = jQuery(window).height()-108;
350	var miniRightPos = 800;
351	
352	/*if(jQuery.browser.msie && parseFloat(jQuery.browser.version)<10)
353	{
354		jQuery('.animate').css('opacity', 1);
355		jQuery('.animate').css('visibility', 'visible');
356		
357		jQuery('.animated').each(function() {
358			jQuery(this).css('opacity', 1);
359			jQuery(this).css('visibility', 'visible');
360		});
361	}*/
362	
363	jQuery('#overlay_background').on( 'click', function(){
364		if(!jQuery('body').hasClass('js_nav'))
365		{
366			jQuery('#overlay_background').removeClass('visible');
367			jQuery('#overlay_background').removeClass('share_open');
368			jQuery('#fullscreen_share_wrapper').css('visibility', 'hidden');
369		}
370	});
371    
372    var menuLayout = jQuery('#pp_menu_layout').val();
373	
374	if(jQuery('.one.fullwidth.slideronly').length > 0)
375	{
376		jQuery('body').addClass('overflow_hidden');
377	}
378	
379	// Find all YouTube & Vimeo videos
380	jQuery('iframe[src*="youtube.com"]').each(function() {
381		jQuery(this).wrap('<div class="video-container"></div>');
382	});
383	
384	jQuery('iframe[src*="vimeo.com"]').each(function() {
385		jQuery(this).wrap('<div class="video-container"></div>');
386	});
387	
388	jQuery('.blog-tilt').tilt({
389		perspective: 5000
390	});
391	
392	jQuery(".input_wrapper input").focusout(function(){
393		if(jQuery(this).val() != "")
394		{
395			jQuery(this).addClass("has-content");
396		} else {
397			jQuery(this).removeClass("has-content");
398		}
399	});
400	
401	jQuery(window).scroll(function() {
402	    var oVal;
403	    oVal = jQuery(window).scrollTop() / 300;
404	    if(oVal>1)
405	    {
406		    oVal = 1;
407	    }
408	    oVal = parseFloat(1-oVal);
409	    
410	    jQuery('#page_caption.hasbg .page_title_wrapper .page_title_inner').css('opacity', oVal);
411	    
412	    var posVal = -(jQuery(window).scrollTop() * 0.005);
413	    jQuery('#page_caption.hasbg .page_title_wrapper .page_title_inner').css({'transform':'translate(0px,'+posVal+'px)'});
414	});
415	
416	if(!is_touch_device())
417	{
418		jQuery('.stellar').each(function() {
419			jQuery(this).attr('data-stellar-ratio', '1.2');
420		});
421		
422		jQuery(window).stellar({
423			positionProperty: 'transform',
424			responsive: true,
425			parallaxBackgrounds: false,
426			horizontalScrolling: false,
427			hideDistantElements: false,
428		});
429	}
430	
431	var isFooterReveal = jQuery('#tg_footer_reveal').val();
432	
433	if(isFooterReveal!='')
434	{
435		var bumpIt = function() {
436			if(jQuery(window).width() > 1024)
437			{
438				jQuery('#wrapper').css('margin-bottom', parseInt(jQuery('#footer_wrapper').height()));
439			}
440			else
441			{
442				jQuery('#wrapper').css('margin-bottom', 0);
443			}
444	    },
445	    didResize = false;
446	    
447	    setInterval(function() {
448			bumpIt();
449		}, 250);
450		
451		jQuery(window).resize(function() {
452		  didResize = true;
453		});
454		setInterval(function() {
455		  if(didResize) {
456		    didResize = false;
457		    bumpIt();
458		  }
459		}, 250);
460	}
461	
462	setTimeout(function () { jQuery('#elementor_header').addClass('visible'); }, 200);
463});
464
465jQuery(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.