PageSourceSearch

https://www.jokaiat.com/wp-content/themes/photome/js/custom.js

js jokaiat.com collected 2026-10-08 01:17:13 UTC 26,577 bytes, 897 lines download raw bytes

1if(jQuery('#pp_page_title_img_blur').val()!='') {
2	(function() {
3	  jQuery(window).scroll(function() {
4	    var oVal;
5	    oVal = jQuery(window).scrollTop() / 400;
6	    if(oVal>1)
7	    {
8		    oVal = 1;
9	    }
10	    
11	    return jQuery("#bg_blurred").css("opacity", oVal);
12	  });
13	
14	}).call(this);
15}
16
17if(jQuery('#pp_page_title_img_blur').val()!='') {
18	(function() {
19	  jQuery(window).scroll(function() {
20	    var oVal;
21	    oVal = jQuery(window).scrollTop() / 140;
22	    if(oVal>1)
23	    {
24		    oVal = 1;
25	    }
26	    oVal = parseFloat(1-oVal);
27	    
28	    return jQuery("#page_caption.hasbg .page_title_wrapper .page_title_inner").css("opacity", oVal);
29	  });
30	
31	}).call(this);
32}
33
34jQuery(document).ready(function(){ 
35	"use strict";
36
37	jQuery(document).setNav();
38	
39	jQuery(window).resize(function(){
40		jQuery(document).setNav();
41	});
42
43	jQuery('.fancy_video, .lightbox_vimeo, .lightbox_youtube').magnificPopup({
44	  	src: jQuery(this).attr('href'),
45	  	type: 'inline',
46	  	removalDelay: 300,
47	  	mainClass: 'mfp-fade'
48	});
49	
50	jQuery('a.fancy-gallery, .pp_gallery a, .woocommerce-product-gallery__image a').magnificPopup({
51	  	type: 'image',
52	  	removalDelay: 300,
53	  	mainClass: 'mfp-fade',
54	  	gallery:{
55	    	enabled:true
56		}
57	});
58	
59	jQuery('.img_frame').magnificPopup({
60	  	type: 'image',
61	  	removalDelay: 300,
62	  	mainClass: 'mfp-fade'
63	});
64    
65    jQuery('#menu_expand_wrapper a').on( 'click', function(){
66    	jQuery('#menu_wrapper').fadeIn();
67	    jQuery('#custom_logo').animate({'left': '15px', 'opacity': 1}, 400);
68	    jQuery('#menu_close').animate({'left': '-10px', 'opacity': 1}, 400);
69	    jQuery(this).animate({'left': '-60px', 'opacity': 0}, 400);
70	    jQuery('#menu_border_wrapper select').animate({'left': '0', 'opacity': 1}, 400).fadeIn();
71    });
72	
73	jQuery('#menu_close').on( 'click', function(){
74		jQuery('#custom_logo').animate({'left': '-200px', 'opacity': 0}, 400);
75	    jQuery(this).stop().animate({'left': '-200px', 'opacity': 0}, 400);
76	    jQuery('#menu_expand_wrapper a').animate({'left': '20px', 'opacity': 1}, 400);
77	    jQuery('#menu_border_wrapper select').animate({'left': '-200px', 'opacity': 0}, 400).fadeOut();
78	    jQuery('#menu_wrapper').fadeOut();
79	});
80	
81	// Isotope
82	// modified Isotope methods for gutters in masonry
83	jQuery.Isotope.prototype._getMasonryGutterColumns = function() {
84	    var gutter = this.options.masonry && this.options.masonry.gutterWidth || 0;
85	    var containerWidth = this.element.width();
86  
87	this.masonry.columnWidth = this.options.masonry && this.options.masonry.columnWidth ||
88              // or use the size of the first item
89              this.$filteredAtoms.outerWidth(true) ||
90              // if there's no items, use size of container
91              containerWidth;
92
93	this.masonry.columnWidth += gutter;
94
95	this.masonry.cols = Math.floor( ( containerWidth + gutter ) / this.masonry.columnWidth );
96	this.masonry.cols = Math.max( this.masonry.cols, 1 );
97	};
98
99	jQuery.Isotope.prototype._masonryReset = function() {
100	    // layout-specific props
101	    this.masonry = {};
102	    // FIXME shouldn't have to call this again
103	    this._getMasonryGutterColumns();
104	    var i = this.masonry.cols;
105	    this.masonry.colYs = [];
106	    while (i--) {
107	    	this.masonry.colYs.push( 0 );
108	    }
109	};
110
111	jQuery.Isotope.prototype._masonryResizeChanged = function() {
112	    var prevSegments = this.masonry.cols;
113	    // update cols/rows
114	    this._getMasonryGutterColumns();
115	    // return if updated cols/rows is not equal to previous
116	    return ( this.masonry.cols !== prevSegments );
117	};
118  
119	// cache jQuery window
120	var $window = jQuery(window);
121	
122	// filter items when filter link is clicked
123	var dropdowns = jQuery(".portfolio_filter_dropdown");
124
125	dropdowns.find(".portfolio_filter_dropdown_title").on( 'click', function(){
126		dropdowns.find(".portfolio_filter_dropdown_select ul.portfolio_select").hide();
127		jQuery(this).next().children().toggle();
128	});
129	
130	dropdowns.find(".portfolio_filter_dropdown_select ul.portfolio_select li a").on( 'click', function(){
131		var leSpan = jQuery(this).parents(".portfolio_filter_dropdown").find(".portfolio_filter_dropdown_title a span");
132	  
133		jQuery(this).parents(".portfolio_filter_dropdown").find('.portfolio_filter_dropdown_select a').each(function(){
134	    jQuery(this).removeClass('selected');
135	  });
136	  
137		leSpan.html(jQuery(this).html());
138	  
139		if(jQuery(this).hasClass('default'))
140		{
141	    	leSpan.removeClass('selected')
142		}
143		else
144		{
145			leSpan.addClass('selected');
146			jQuery(this).addClass('selected');
147		}
148	  
149		jQuery(this).parents("ul").hide();
150	});
151	
152	// Close all dropdown onclick on another element
153	jQuery(document).bind('click', function(e){
154		if (! jQuery(e.target).parents().hasClass("portfolio_filter_dropdown")) jQuery(".portfolio_filter_dropdown .portfolio_filter_dropdown_select ul.portfolio_select").hide();
155	});
156	
157	
158	function reLayout() {
159		var jQuerycontainer = jQuery('#photo_wall_wrapper, .photo_wall_wrapper');
160		var windowWidth = parseInt(jQuerycontainer.width());
161		var jQueryportfolioColumn = 4;
162		var columnValue;
163		var masonryOpts;
164		
165		if(windowWidth < 480)
166		{
167			jQueryportfolioColumn = 1;
168		}
169		else if(windowWidth >= 480 && windowWidth < 960)
170		{
171			jQueryportfolioColumn = 2;
172		}
173		else if(windowWidth >= 960 && windowWidth < 1400)
174		{
175			jQueryportfolioColumn = 4;
176		}
177		else if(windowWidth >= 1400 && windowWidth < 2100)
178		{
179			jQueryportfolioColumn = 5;
180		}
181		else if(windowWidth >= 2100)
182		{
183			jQueryportfolioColumn = 6;
184		}
185		
186		if(windowWidth > 480)
187		{
188			columnValue = windowWidth / jQueryportfolioColumn;
189		}
190		else if(windowWidth <= 480)
191		{
192			columnValue = 480;
193		}
194		
195	    masonryOpts = {
196		  columnWidth: columnValue
197		};
198		
199		$container.addClass('visible');
200
201	    $container.isotope({
202	      resizable: false,
203	      itemSelector : '.wall_entry',
204	      masonry: masonryOpts
205	    }).isotope();
206
207	}
208	
209	var $container = jQuery('#photo_wall_wrapper, .photo_wall_wrapper');
210	
211	// start up isotope with default settings
212	$container.imagesLoaded( function(){
213	    reLayout();
214	    $window.smartresize(reLayout);
215	    
216	    $container.children('.wall_entry').children('.gallery_type').each(function(){
217		    jQuery(this).addClass('fade-in');
218	    });
219	    
220	    $container.children('.wall_entry').mouseenter(function(){
221		    //$container.children('.wall_entry').addClass('fade');
222		    //jQuery(this).removeClass('fade');
223		    jQuery(this).addClass('hover');
224		});
225		
226		$container.children('.wall_entry').mouseleave(function(){
227		    //$container.children('.wall_entry').removeClass('fade');
228		    $container.children('.wall_entry').removeClass('hover');
229		});
230	});
231	
232	jQuery(window).resize(function() {
233		if(jQuery(this).width() < 768)
234		{
235			jQuery('#menu_expand_wrapper a').trigger('click');
236		}
237	});
238	
239	var isDisableRightClick = jQuery('#pp_enable_right_click').val();
240	
241	if(isDisableRightClick!='')
242	{
243		jQuery(this).bind("contextmenu", function(e) {
244	    	e.preventDefault();
245	    });
246	}
247	
248	function rePortfolioLayout() {
249	
250		var jQuerycontainer = jQuery('#portfolio_filter_wrapper');
251		var windowWidth = jQuerycontainer.width();
252		
253		if(jQuery('#pp_menu_layout').val() == 'leftmenu' && jQuery(window).width() > 768)
254		{
255			windowWidth = parseInt(windowWidth + 265);
256		}
257		
258		var jQueryportfolioColumn = jQuerycontainer.data('columns');
259		var columnValue;
260		var masonryOpts;
261		
262		if(jQuery('#pp_menu_layout').val() == 'leftmenu')
263		{
264			var windowWidth = jQuerycontainer.width();
265		}
266
267		if(windowWidth > 959)
268		{
269			columnValue = parseInt(windowWidth / jQueryportfolioColumn);
270		}
271		else if(windowWidth < 959 && windowWidth > 480)
272		{
273			columnValue = parseInt(windowWidth / jQueryportfolioColumn);
274		}
275		else if(windowWidth <= 480)
276		{
277			columnValue = 480;
278		}
279		
280	    masonryOpts = {
281		  columnWidth: columnValue
282		};
283
284	    jQuerycontainer.isotope({
285	      resizable: false,
286	      itemSelector : '.element',
287	      masonry: masonryOpts
288	    } ).isotope();
289
290	}
291	
292	// cache jQuery window
293	var $window = jQuery(window);
294  
295	// cache container
296	var jQuerycontainer = jQuery('#portfolio_filter_wrapper');
297	
298	// start up isotope with default settings
299	jQuerycontainer.imagesLoaded( function(){
300	    rePortfolioLayout();
301	    $window.smartresize( rePortfolioLayout );
302	    
303	    jQuerycontainer.children('.element').children('.gallery_type').each(function(){
304		    jQuery(this).addClass('fadeIn');
305	    });
306	    
307	    jQuerycontainer.children('.element').children('.portfolio_type').each(function(){
308		    jQuery(this).addClass('fadeIn');
309	    });
310	    
311	    jQuerycontainer.children('.element').mouseenter(function(){
312	    	//jQuerycontainer.children('.element').addClass('fade');
313		    //jQuery(this).removeClass('fade');
314		    jQuery(this).addClass('hover');
315	    });
316	    
317	    jQuerycontainer.children('.element').mouseleave(function(){
318		    //jQuerycontainer.children('.element').removeClass('fade');
319		    jQuerycontainer.children('.element').removeClass('hover');
320	    });
321	    
322	    jQuery(this).addClass('visible');
323	});
324	
325	// filter items when filter link is clicked
326	if(jQuery('#tg_portfolio_filterable_link').val()!=1)
327	{
328		jQuery('#portfolio_wall_filters li a').click(function(){
329		  	var selector = jQuery(this).attr('data-filter');
330		  	jQuerycontainer.isotope({ filter: selector });
331		  	jQuery('#portfolio_wall_filters li a').removeClass('active');
332		  	jQuery(this).addClass('active');
333		  	return false;
334		});
335	}
336	
337	function reBlogLayout() {
338		var windowWidth = jQuery(window).width();
339		var jQueryblogcontainer = jQuery('#blog_grid_wrapper, .blog_grid_wrapper');
340		var containerWidth = jQuery('#blog_grid_wrapper, .blog_grid_wrapper').width();
341		
342		var $blogGridColumn = 3;
343		var columnValue = 0;
344		var masonryOpts;
345		if(containerWidth >= 960)
346		{
347			columnValue = containerWidth / $blogGridColumn;
348		}
349		else if(containerWidth < 960 && containerWidth >= 660)
350		{
351			columnValue = containerWidth / 2;
352		}
353		else
354		{
355			columnValue = containerWidth/1;
356		}
357
358		//alert($blogGridColumn);
359	    masonryOpts = {
360		  columnWidth: columnValue
361		};
362
363	    jQueryblogcontainer.isotope({
364	      resizable: false, // disable resizing by default, we'll trigger it manually
365	      itemSelector : '.status-publish',
366	      masonry: masonryOpts
367	    } ).isotope();
368	}
369	
370	var jQueryblogcontainer = jQuery('#blog_grid_wrapper, .blog_grid_wrapper');
371	
372	jQueryblogcontainer.imagesLoaded( function(){
373	    reBlogLayout();
374	    $window.smartresize( reBlogLayout );
375	});
376    
377    //Add to top button when scrolling
378    jQuery(window).scroll(function() {
379	 	var calScreenWidth = jQuery(window).width();
380		
381		if(jQuery(this).scrollTop() > 200) {
382		    jQuery('#toTop').stop().css({opacity: 0.5, "visibility": "visible"}).animate({"visibility": "visible"}, {duration:1000,easing:"easeOutExpo"});
383		} else if(jQuery(this).scrollTop() == 0) {
384		    jQuery('#toTop').stop().css({opacity: 0, "visibility": "hidden"}).animate({"visibility": "hidden"}, {duration:1500,easing:"easeOutExpo"});
385		}
386	});
387 
388	jQuery('#toTop, .hr_totop').on( 'click', function() {
389		jQuery('body,html').animate({scrollTop:0},800);
390	});
391	
392	var isDisableDragging = jQuery('#pp_enable_dragging').val();
393	
394	if(isDisableDragging!='')
395	{
396		jQuery("img").mousedown(function(){
397		    return false;
398		});
399	}
400	
401	if(jQuery('#pp_topbar').val()==0)
402	{
403		var topBarHeight = jQuery('.header_style_wrapper').height();
404	}
405	else
406	{
407		var topBarHeight = parseInt(jQuery('.header_style_wrapper').height()-jQuery('.header_style_wrapper .above_top_bar').height());
408	}
409	
410	var logoHeight = jQuery('#custom_logo img').height();
411	var logoTransHeight = jQuery('#custom_logo_transparent img').height();
412	var logoMargin = parseInt(jQuery('#custom_logo').css('marginTop'));
413	var logoTransMargin = parseInt(jQuery('#custom_logo_transparent').css('marginTop'));
414	var menuPaddingTop = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingTop'));
415	var menuPaddingBottom = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingBottom'));
416	var SearchPaddingTop = parseInt(jQuery('.top_bar #searchform button').css('paddingTop'));
417	var menuLayout = jQuery('#pp_menu_layout').val();
418	
419	if(menuLayout != 'leftmenu' || jQuery(window).width()<=768)
420	{
421		jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px');
422	}
423	
424	jQuery(window).resize(function(){
425	    if(jQuery(this).width()>768)
426	    {
427	    	if(menuLayout != 'leftmenu')
428	    	{
429	    		if(jQuery('#pp_topbar').val()==0)
430				{
431		    		var resizedTopBarHeight = jQuery('.top_bar').height();
432		    	}
433		    	else
434		    	{
435			    	var resizedTopBarHeight = parseInt(jQuery('.top_bar').height()+jQuery('.header_style_wrapper .above_top_bar').height());
436		    	}
437		    	
438		    	jQuery('#wrapper').css('paddingTop', resizedTopBarHeight+'px');
439		    	jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top', resizedTopBarHeight+'px');
440		    	jQuery('.logo_wrapper').css('marginTop', '');
441		    	jQuery('.top_bar #searchform button').css('paddingTop', '');
442		    }
443		    else
444		    {
445			    jQuery('#wrapper').css('paddingTop', 0);
446		    }
447	    }
448	    else
449	    {
450	    	jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px');
451	    }
452	    
453	    jQuery('#page_caption.split').css('height', jQuery(window).height()+'px');
454	});
455	
456	if(menuLayout != 'leftmenu' || jQuery(window).width()<=960)
457	{
458		jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
459		jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('paddingBottom', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
460		jQuery('#page_caption.split').css('top', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');
461		jQuery('#imageFlow').css('top', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height()+50)+'px');
462		
463		jQuery(window).scroll(function(){
464			if(jQuery('#pp_fixed_menu').val()==1)
465			{
466				if(jQuery(this).scrollTop() >= 200){
467					jQuery('.header_style_wrapper .above_top_bar').hide();
468					jQuery('.extend_top_contact_info').hide();
469					
470					jQuery('.top_bar').addClass('scroll');
471					
472					if(jQuery('.top_bar').hasClass('hasbg'))
473					{
474					    jQuery('.top_bar').removeClass('hasbg');
475					    jQuery('.top_bar').data('hasbg', 1);
476					    
477					    jQuery('#custom_logo').removeClass('hidden');
478					    jQuery('#custom_logo_transparent').addClass('hidden');
479					}
480					
481					if(jQuery(window).width()>960)
482					{
483						jQuery('#mobile_nav_icon').hide();
484					}
485			    }
486			    else if(jQuery(this).scrollTop() < 200)
487			    {
488			    	jQuery('.header_style_wrapper .above_top_bar').show();
489			    	jQuery('.extend_top_contact_info').show();
490				    
491				    jQuery('#custom_logo img').removeClass('zoom');
492				    jQuery('#custom_logo img').css('maxHeight', '');
493					jQuery('#custom_logo_transparent img').removeClass('zoom');
494				    
495				    jQuery('#custom_logo').css('marginTop', parseInt(logoMargin)+'px');
496					jQuery('#custom_logo_transparent').css('marginTop', parseInt(logoTransMargin)+'px');
497					
498					jQuery('#menu_wrapper div .nav > li > a').css('paddingTop', menuPaddingTop+'px');
499					jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom', menuPaddingBottom+'px');;
500					
501					if(jQuery('.top_bar').data('hasbg')==1)
502					{
503					    jQuery('.top_bar').addClass('hasbg');
504					    jQuery('#custom_logo').addClass('hidden');
505					    jQuery('#custom_logo_transparent').removeClass('hidden');
506					}
507					
508					jQuery('.top_bar').removeClass('scroll');
509					jQuery('#mobile_nav_icon').show();
510			    }
511		   }
512		   else
513		   {
514			   if(jQuery(this).scrollTop() >= 200)
515			   {
516			   		jQuery('.header_style_wrapper').addClass('nofixed');
517			   }
518			   else
519			   {
520			   		jQuery('.header_style_wrapper').removeClass('nofixed');
521			   }
522		   }
523		});
524	} //If not left menu layout
525	
526	jQuery('.post_img img').imagesLoaded(function(){
527		jQuery(this).parent('.post_img').addClass('fadeIn');
528	});
529	
530	jQuery(document).mouseenter(function()
531	{	
532	    jQuery('body').addClass('hover');	
533	});	
534	
535	jQuery(document).mouseleave(function()
536	{	
537	    jQuery('body').removeClass('hover');	
538	});	
539	
540	var siteBaseURL = jQuery('#pp_homepage_url').val();
541	if(jQuery('#pp_ajax_search').val() != '')
542    {
543		jQuery('#s').on('input', function() {
544			jQuery.ajax({
545				url:siteBaseURL+"/wp-admin/admin-ajax.php",
546				type:'POST',
547				data:'action=pp_ajax_search&s='+jQuery('#s').val(),
548				success:function(results) {
549					jQuery("#autocomplete").html(results);
550					
551					if(results != '')
552					{
553						jQuery("#autocomplete").addClass('visible');
554						jQuery("#autocomplete").show();
555						jQuery("body.js_nav .mobile_menu_wrapper").css('overflow', 'visible');
556					}
557					else
558					{
559						jQuery("#autocomplete").hide();
560						jQuery("body.js_nav .mobile_menu_wrapper").css('overflow', 'scroll');
561					}
562				}
563			})
564		});
565		
566		jQuery("#s").keypress(function(event) {
567		    if (event.which == 13) {
568		        event.preventDefault();
569		        jQuery("form#searchform").submit();
570		    }
571		});
572		
573		jQuery('#s').focus(function(){
574			if (jQuery('#autocomplete').html() != ''){
575				jQuery("#autocomplete").addClass('visible');
576				jQuery("#autocomplete").fadeIn();
577			}
578		});
579		
580		jQuery('#s').blur(function(){
581	      jQuery("#autocomplete").fadeOut();
582		});
583	}
584	
585	jQuery('.animated').imagesLoaded(function() {
586		var windowWidth = jQuery(window).width();
587	
588		if(windowWidth >= 960)
589		{
590			jQuery(this).waypoint(function(direction) {
591				var animationClass = jQuery(this).data('animation');
592			
593				jQuery(this).addClass(animationClass, direction === 'down');
594				
595			} , { offset: '100%' });
596		}
597	});
598	
599	jQuery('#post_more_close').on( 'click', function(){
600		jQuery('#post_more_wrapper').animate({ right: '-380px' }, 300);
601		
602		return false;
603	});
604	
605	jQuery('#mobile_nav_icon').on( 'click', function() {
606		jQuery('body,html').animate({scrollTop:0},100);
607		jQuery('body').toggleClass('js_nav');
608		
609		if(is_touch_device())
610		{
611			jQuery('body.js_nav').css('overflow', 'auto');
612		}
613	});
614	
615	jQuery('#close_mobile_menu').on( 'click', function() {
616		jQuery('body').removeClass('js_nav');
617	});
618	
619	jQuery('.mobile_menu_close a').on( 'click', function() {
620		jQuery('body').removeClass('js_nav');
621	});
622	
623	jQuery('.close_alert').on( 'click', function() {
624		var target = jQuery(this).data('target');
625		jQuery('#'+target).fadeOut();
626	});
627	
628	jQuery('.progress_bar').waypoint(function(direction) {
629		jQuery(this).addClass('fadeIn');
630		var progressContent = jQuery(this).children('.progress_bar_holder').children('.progress_bar_content');
631        var progressWidth = progressContent.data('score');
632     
633        progressContent.css({'width': progressWidth+'%'});
634	} , { offset: '100%' });			
635	
636	jQuery('.tooltip').tooltipster();
637	jQuery('.demotip').tooltipster({
638		position: 'left'
639	});
640	
641	jQuery('.portfolio_prev_next_link').each(function(){
642		jQuery(this).tooltipster({
643			content: jQuery('<img src="'+jQuery(this).attr('data-img')+'" /><br/><div style="text-align:center;margin:7px 0 5px 0;"><strong>'+jQuery(this).attr('data-title')+'</strong></div>')
644		});
645	});
646	
647	jQuery('.post_prev_next_link').each(function(){
648		jQuery(this).tooltipster({
649			content: jQuery('<img src="'+jQuery(this).attr('data-img')+'" />')
650		});
651	});
652		
653	jQuery('.post_share').on( 'click', function() {
654		var targetShareID = jQuery(this).attr('data-share');
655		var targetParentID = jQuery(this).attr('data-parent');
656		
657		jQuery(this).toggleClass('visible');
658		jQuery('#'+targetShareID).toggleClass('slideUp');
659		jQuery('#'+targetParentID).toggleClass('sharing');
660		
661		return false;
662	});
663	
664	
665	if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0)
666	{
667		var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();
668		var topBarHeight = jQuery('.top_bar').height();
669		
670		if(jQuery('.above_top_bar').length > 0)
671		{
672			topBarHeight+= jQuery('.above_top_bar').height();
673		}
674		
675		if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0)
676		{
677			var topBarHeight = 55;
678		}
679
680		jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
681		jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
682	}
683	
684	jQuery(window).resize(function(){
685	   if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0)
686		{
687			var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();
688			var topBarHeight = jQuery('.top_bar').height();
689			
690			if(jQuery('.above_top_bar').length > 0)
691			{
692				topBarHeight+= jQuery('.above_top_bar').height();
693			}
694			
695			if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0)
696			{
697				var topBarHeight = 55;
698			}
699	
700			jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
701			jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px');
702		}
703	});
704	
705	jQuery('.skin_box').on( 'click', function(){
706		jQuery('.skin_box').removeClass('selected');
707		jQuery(this).addClass('selected');
708    	jQuery('#skin').val(jQuery(this).attr('data-color'));
709    });
710    
711    jQuery('#demo_apply').on( 'click', function(){
712    	jQuery('#ajax_loading').addClass('visible');
713    	jQuery('body').addClass('loading');
714    	jQuery("form#form_option").submit();
715    });
716    
717    jQuery('#option_wrapper').mouseenter(function()
718	{	
719	    jQuery('body').addClass('overflow_hidden');	
720	});	
721	
722	jQuery('#option_wrapper').mouseleave(function()
723	{	
724	    jQuery('body').removeClass('overflow_hidden');	
725	});	
726	
727	jQuery('.animate').waypoint(function(direction) {
728		var windowWidth = jQuery(window).width();
729	
730		jQuery(this).addClass('visible', direction === 'down');
731	    
732	} , { offset: '80%' });
733	
734	var calScreenHeight = jQuery(window).height()-108;
735	var miniRightPos = 800;
736      
737    var cols = 3
738	var masonry = jQuery('.gallery_mansory_wrapper');
739	
740	// initialize masonry
741	masonry.imagesLoaded(function(){
742	    
743	    masonry.masonry({
744	    	itemSelector: '.mansory_thumbnail',
745	    	isResizable: true,
746	    	isAnimated: true,
747	    	isFitWidth: true,
748	    	columnWidth:Math.floor((masonry.width()/ cols))
749	      });
750	      
751	     masonry.children('.mansory_thumbnail').children('.gallery_type').each(function(){
752		    jQuery(this).addClass('fade-in');
753	    });
754	});
755	
756	jQuery(window).resize(function(){
757		var masonry = jQuery('.gallery_mansory_wrapper');
758		
759	    masonry.imagesLoaded(function(){
760	    
761		    masonry.masonry({
762		    	itemSelector: '.mansory_thumbnail',
763		    	isResizable: true,
764		    	isAnimated: true,
765		    	isFitWidth: true,
766		    	columnWidth:Math.floor((masonry.width()/ cols))
767		      });
768		      
769		     masonry.children('.mansory_thumbnail').children('.gallery_type').each(function(){
770			    jQuery(this).addClass('fade-in');
771		    });
772		});
773	});
774	
775	if(jQuery.browser.msie && parseFloat(jQuery.browser.version)<10)
776	{
777		jQuery('.animate').css('opacity', 1);
778		jQuery('.animate').css('visibility', 'visible');
779		
780		jQuery('.animated').each(function() {
781			jQuery(this).css('opacity', 1);
782			jQuery(this).css('visibility', 'visible');
783		});
784	}
785	
786	function launchFullscreen(element) {
787	  if(element.requestFullscreen) {
788	    element.requestFullscreen();
789	  } else if(element.mozRequestFullScreen) {
790	    element.mozRequestFullScreen();
791	  } else if(element.webkitRequestFullscreen) {
792	    element.webkitRequestFullscreen();
793	  } else if(element.msRequestFullscreen) {
794	    element.msRequestFullscreen();
795	  }
796	}
797	
798	function exitFullscreen() {
799	  if(document.exitFullscreen) {
800	    document.exitFullscreen();
801	  } else if(document.mozCancelFullScreen) {
802	    document.mozCancelFullScreen();
803	  } else if(document.webkitExitFullscreen) {
804	    document.webkitExitFullscreen();
805	  }
806	}
807	
808	jQuery('#page_maximize').click(function(){
809		launchFullscreen(document.documentElement);
810		jQuery(this).hide();
811		jQuery('#page_minimize').show();
812	});
813	
814	jQuery('#page_minimize').click(function(){
815		exitFullscreen();
816		jQuery('#page_maximize').show();
817		jQuery(this).hide();
818	});
819	
820	jQuery('#page_share').click(function(){
821		jQuery('#overlay_background').addClass('visible');
822		jQuery('#overlay_background').addClass('share_open');
823		jQuery('#fullscreen_share_wrapper').css('visibility', 'visible');
824	});
825	
826	jQuery('#overlay_background').click(function(){
827		if(!jQuery('body').hasClass('js_nav'))
828		{
829			jQuery('#overlay_background').removeClass('visible');
830			jQuery('#overlay_background').removeClass('share_open');
831			jQuery('#fullscreen_share_wrapper').css('visibility', 'hidden');
832		}
833	});
834    
835    var ua = window.navigator.userAgent;
836    var msie = ua.indexOf("MSIE ");
837    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./) || is_touch_device())
838    {
839	    jQuery('.parallax').each(function(){
840	    	var dataImgURL = jQuery(this).data('image');
841	    	if(jQuery.type(dataImgURL) != "undefined")
842	    	{
843	    		jQuery(this).css('background-image', 'url('+dataImgURL+')');
844	    		jQuery(this).css('background-size', 'cover');
845	    		jQuery(this).css('background-position', 'center center');
846	    	}
847	    });
848    }
849    else
850    {
851	 	jQuery('.parallax').parallax();
852		
853		jQuery(window).resize(function(){
854	    	jQuery('.parallax').each(function(){
855		    	var parallaxHeight = jQuery(this).data('content-height');
856		    	parallaxHeight = parseInt((parallaxHeight/100)*jQuery(window).height());
857		    	
858		    	jQuery(this).css('height', parallaxHeight+'px');
859		    });
860	
861			jQuery(window).trigger('hwparallax.reconfigure');
862	    });
863    }
864    
865    var menuLayout = jQuery('#pp_menu_layout').val();
866
867    if(jQuery(window).width()<960 && menuLayout == 'leftmenu')
868	{
869		document.getElementById("leftmenu.css-css").disabled = true;
870		jQuery('.mobile_menu_wrapper .logo_container').hide();
871	}
872	
873	jQuery(window).resize(function(){
874		if(jQuery(window).width()>=960 && menuLayout == 'leftmenu')
875		{
876			document.getElementById("leftmenu.css-css").disabled = false;
877			jQuery('.mobile_menu_wrapper .logo_container').show();
878		}
879		else if(jQuery(window).width()<960 && menuLayout == 'leftmenu')
880		{
881			document.getElementById("leftmenu.css-css").disabled = true;
882			jQuery('.mobile_menu_wrapper .logo_container').hide();
883		}
884	});
885	
886	jQuery('.rev_slider_wrapper.fullscreen-container').each(function(){
887		jQuery(this).append('<div class="icon-scroll"></div>');
888	});
889	
890	if(jQuery('.one.fullwidth.slideronly').length > 0)
891	{
892		jQuery('body').addClass('overflow_hidden');
893	}
894
895});
896
897jQuery(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.