PageSourceSearch

https://blackwoods.com/wp-content/themes/grandrestaurant/js/custom.js

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