PageSourceSearch

https://arabamericanmuseum.org/wp-content/themes/vestige/assets/js/init.js?ver=1.0

js arabamericanmuseum.org collected 2026-09-24 18:15:18 UTC 23,657 bytes, 716 lines download raw bytes

1jQuery(function($){
2	"use strict";
3
4var VESTIGE = window.VESTIGE || {};
5VESTIGE.megaMenu = function() {
6        jQuery('.megamenu-sub-title').closest('ul.sub-menu').wrapInner('<div class="row" />').wrapInner('<div class ="megamenu-container container" />').wrapInner('<li />');
7        jQuery('.megamenu-container').closest('li.menu-item-has-children').addClass('megamenu');
8        var $class = '';
9		jQuery(".megamenu-container").each(function(index, elem) {
10    var numImages = $(this).find('.row').children().length;
11	switch (numImages)
12        {
13            case 1:
14                $class = 12;
15                break;
16            case 2:
17                $class = 6;
18                break;
19            case 3:
20                $class = 4;
21                break;
22            case 4:
23                $class = 3;
24                break;
25            default:
26                $class = 2;
27        }
28		$(this).find('.row').find('.col-md-3').each(function() {
29            jQuery(this).removeClass('col-md-3').addClass('col-md-' + $class);
30        })
31});
32}
33/* ==================================================
34	Contact Form Validations
35================================================== */
36	VESTIGE.ContactForm = function(){
37		$('.contact-form').each(function(){
38			var formInstance = $(this);
39			formInstance.submit(function(){
40		
41			var action = $(this).attr('action');
42		
43			$("#message").slideUp(750,function() {
44			$('#message').hide();
45		
46			$('#submit')
47				.after('<img src="' + $('#image_path').val() + '/assets/images/assets/ajax-loader.gif" class="loader" />')
48				.attr('disabled','disabled');
49		
50			$.post(action, {
51				fname: $('#fname').val(),
52				lname: $('#lname').val(),
53				email: $('#email').val(),
54				phone: $('#phone').val(),
55				comments: $('#comments').val()
56			},
57				function(data){
58					document.getElementById('message').innerHTML = data;
59					$('#message').slideDown('slow');
60					$('.contact-form img.loader').fadeOut('slow',function(){$(this).remove()});
61					$('#submit').removeAttr('disabled');
62					if(data.match('success') != null) $('.contact-form').slideUp('slow');
63		
64				}
65			);
66			});
67			return false;
68		});
69		});
70	}
71/* ==================================================
72	Scroll to Top
73================================================== */
74	VESTIGE.scrollToTop = function(){
75		var didScroll = false;
76	
77		var $arrow = $('#back-to-top');
78	
79		$arrow.on("click", function(e) {
80			$('body,html').animate({ scrollTop: "0" }, 750, 'easeOutExpo' );
81			e.preventDefault();
82		})
83	
84		$(window).scroll(function() {
85			didScroll = true;
86		});
87	
88		setInterval(function() {
89			if( didScroll ) {
90				didScroll = false;
91	
92				if( $(window).scrollTop() > 200 ) {
93					$arrow.fadeIn();
94				} else {
95					$arrow.fadeOut();
96				}
97			}
98		}, 250);
99	}
100/* ==================================================
101   Accordion
102================================================== */
103	VESTIGE.accordion = function(){
104		var accordion_trigger = $('.accordion-heading.accordionize');
105		
106		accordion_trigger.delegate('.accordion-toggle','click', function(event){
107			if($(this).hasClass('active')){
108				$(this).removeClass('active');
109				$(this).addClass('inactive');
110			}
111			else{
112				accordion_trigger.find('.active').addClass('inactive');          
113				accordion_trigger.find('.active').removeClass('active');   
114				$(this).removeClass('inactive');
115				$(this).addClass('active');
116			}
117			event.preventDefault();
118		});
119	}
120/* ==================================================
121   Toggle
122================================================== */
123	VESTIGE.toggle = function(){
124		var accordion_trigger_toggle = $('.accordion-heading.togglize');
125		
126		accordion_trigger_toggle.delegate('.accordion-toggle','click', function(event){
127			if($(this).hasClass('active')){
128				$(this).removeClass('active');
129				$(this).addClass('inactive');
130			}
131			else{
132				$(this).removeClass('inactive');
133				$(this).addClass('active');
134			}
135			event.preventDefault();
136		});
137	}
138/* ==================================================
139   Tooltip
140================================================== */
141	VESTIGE.toolTip = function(){ 
142		$('a[data-toggle=tooltip]').tooltip(); 
143		$('a[data-toggle=tooltip]').tooltip();
144		$('a[data-toggle=popover]').popover({html:true}).on("click", function(e) { 
145       		e.preventDefault(); 
146       		$(this).focus(); 
147		});
148	}
149/* ==================================================
150   Hero Flex Slider
151================================================== */
152	VESTIGE.heroflex = function() {
153		$('.heroflex').each(function(){
154				var carouselInstance = $(this); 
155				var carouselAutoplay = carouselInstance.attr("data-autoplay") == 'yes' ? true : false
156				var carouselPagination = carouselInstance.attr("data-pagination") == 'yes' ? true : false
157				var carouselArrows = carouselInstance.attr("data-arrows") == 'yes' ? true : false
158				var carouselDirection = carouselInstance.attr("data-direction") ? carouselInstance.attr("data-direction") : "horizontal"
159				var carouselStyle = carouselInstance.attr("data-style") ? carouselInstance.attr("data-style") : "fade"
160				var carouselSpeed = carouselInstance.attr("data-speed") ? carouselInstance.attr("data-speed") : "5000"
161				var carouselPause = carouselInstance.attr("data-pause") == 'yes' ? true : false
162				
163				carouselInstance.flexslider({
164					animation: carouselStyle,
165					easing: "swing",               
166					direction: carouselDirection,       
167					slideshow: carouselAutoplay,              
168					slideshowSpeed: carouselSpeed,         
169					animationSpeed: 600,         
170					initDelay: 0,              
171					randomize: false,            
172					pauseOnHover: carouselPause,       
173					controlNav: carouselPagination,           
174					directionNav: carouselArrows,            
175					prevText: "",         
176					nextText: ""
177				});
178		});
179	}
180/* ==================================================
181   Flex Slider
182================================================== */
183	VESTIGE.galleryflex = function() {
184		$('.galleryflex').each(function(){
185				var carouselInstance = $(this); 
186				var carouselAutoplay = carouselInstance.attr("data-autoplay") == 'yes' ? true : false
187				var carouselPagination = carouselInstance.attr("data-pagination") == 'yes' ? true : false
188				var carouselArrows = carouselInstance.attr("data-arrows") == 'yes' ? true : false
189				var carouselDirection = carouselInstance.attr("data-direction") ? carouselInstance.attr("data-direction") : "horizontal"
190				var carouselStyle = carouselInstance.attr("data-style") ? carouselInstance.attr("data-style") : "fade"
191				var carouselSpeed = carouselInstance.attr("data-speed") ? carouselInstance.attr("data-speed") : "5000"
192				var carouselPause = carouselInstance.attr("data-pause") == 'yes' ? true : false
193				
194				carouselInstance.flexslider({
195					animation: carouselStyle,
196					easing: "swing",               
197					direction: carouselDirection,       
198					slideshow: carouselAutoplay,              
199					slideshowSpeed: carouselSpeed,         
200					animationSpeed: 600,         
201					initDelay: 0,              
202					randomize: false,            
203					pauseOnHover: carouselPause,       
204					controlNav: carouselPagination,           
205					directionNav: carouselArrows,            
206					prevText: "",          
207					nextText: ""
208				});
209		});
210	}
211/* ==================================================
212   Owl Carousel
213================================================== */
214	VESTIGE.OwlCarousel = function() {
215		$('.owl-carousel').each(function(){
216				var carouselInstance = $(this); 
217				var carouselColumns = carouselInstance.attr("data-columns") ? carouselInstance.attr("data-columns") : "1";
218				var carouselColumnsD = carouselInstance.attr("data-items-small-desktop") ? carouselInstance.attr("data-items-small-desktop") : "1";
219				var carouselColumnsT = carouselInstance.attr("data-items-tablet") ? carouselInstance.attr("data-items-tablet") : "1";
220				var carouselColumnsM = carouselInstance.attr("data-items-mobile") ? carouselInstance.attr("data-items-mobile") : "1";
221				var carouselAutoplay = carouselInstance.attr("data-autoplay") === 'yes' ? true : false;
222				var carouselAutoplayTime = carouselInstance.attr("data-autoplay-timeout") ? carouselInstance.attr("data-autoplay-timeout") : '5000';
223				var carouselPagination = carouselInstance.attr("data-pagination") === 'yes' ? true : false;
224				var carouselArrows = carouselInstance.attr("data-arrows") === 'yes' ? true : false;
225				var carouselAutoHeight = carouselInstance.attr("data-auto-height") === 'yes' ? true : false;
226				var carouselRTL = carouselInstance.attr("data-rtl") === 'yes' ? true : false;
227				var carouselLoop = carouselInstance.attr("data-loop") === 'yes' ? true : false;
228				var carouselMargin = carouselInstance.attr("data-margin") ? carouselInstance.attr("data-margin") : 30;
229				var carouselPadding = carouselInstance.attr("data-padding") ? carouselInstance.attr("data-padding") : 0;
230				
231				carouselInstance.owlCarousel({
232					loop: carouselLoop,
233					items: carouselColumns,
234					autoWidth: false,
235					margin: parseInt(carouselMargin),
236					stagePadding: parseInt(carouselPadding),
237					autoplay : carouselAutoplay,
238					autoplayTimeout: parseInt(carouselAutoplayTime),
239					nav : carouselArrows,
240					dots : carouselPagination,
241					mergeFit: false,
242					navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
243					autoplayHoverPause: true,
244					lazyLoad: true,
245					rtl: carouselRTL,
246					autoHeight: true,
247					responsive:{
248						0:{
249							items:carouselColumnsM,
250							dots:true,
251							nav:false,
252							stagePadding:0
253						},
254						768:{
255							items:carouselColumnsT,
256							nav:false
257						},
258						1000:{
259							items:carouselColumnsD
260						},
261						1200:{
262							items:carouselColumns
263						}
264					}
265				});
266		});
267	}
268/* ==================================================
269   Nivo Slider
270================================================== */
271	VESTIGE.NivoSlider = function() {
272		$('.nivoSlider').each(function(){
273				var nivoInstance = $(this); 
274				var nivoAutoplay = nivoInstance.attr("data-autoplay") == 'no' ? true : false
275				var nivoPagination = nivoInstance.attr("data-pagination") == 'yes' ? true : false
276				var nivoArrows = nivoInstance.attr("data-arrows") == 'yes' ? true : false
277				var nivoThumbs = nivoInstance.attr("data-thumbs") == 'yes' ? true : false
278				var nivoEffect = nivoInstance.attr("data-effect") ? nivoInstance.attr("data-effect") : "random"
279				var nivoSlices = nivoInstance.attr("data-slices") ? nivoInstance.attr("data-slices") : "15"
280				var nivoanimSpeed = nivoInstance.attr("data-animSpeed") ? nivoInstance.attr("data-animSpeed") : "500"
281				var nivopauseTime = nivoInstance.attr("data-pauseTime") ? nivoInstance.attr("data-pauseTime") : "3000"
282				var nivoPause = nivoInstance.attr("data-pauseonhover") == 'yes' ? true : false
283				
284				nivoInstance.nivoSlider({
285					effect: nivoEffect,
286					slices: nivoSlices,
287					animSpeed: nivoanimSpeed,
288					pauseTime: nivopauseTime,
289					directionNav: nivoArrows,
290					controlNav: nivoPagination,
291					controlNavThumbs: nivoThumbs,
292					pauseOnHover: nivoPause,
293					manualAdvance: nivoAutoplay
294				});
295		});
296	}
297/* ==================================================
298   PrettyPhoto
299================================================== */
300	VESTIGE.PrettyPhoto = function() {
301		$("a[data-rel^='prettyPhoto']").prettyPhoto({
302			  opacity: 0.5,
303			  social_tools: "",
304			  deeplinking: false
305		});
306	}
307/* ==================================================
308   Animated Counters
309================================================== */
310	VESTIGE.Counters = function() {
311		$('.counters').each(function () {
312			$(".timer .count").appear(function() {
313			var counter = $(this).html();
314			$(this).countTo({
315				from: 0,
316				to: counter,
317				speed: 2000,
318				refreshInterval: 60
319				});
320			});
321		});
322		
323		$(".countdown .timer .count").appear(function() {
324		var counter = $(this).html();
325		$(this).countTo({
326			from: 0,
327			to: counter,
328			speed: 2000,
329			refreshInterval: 60,
330			});
331		});
332	}
333/* ==================================================
334   SuperFish menu
335================================================== */
336	VESTIGE.SuperFish = function() {
337		if(jQuery(window).width() > 992){
338			$('.sf-menu').superfish({
339				delay: 200,
340				animation: {
341					opacity: 'show',
342					height: 'show'
343				},
344				speed: 'fast',
345				cssArrows: false,
346				disableHI: true
347			});
348			var aa = $(".dd-menu li");
349			aa.each(function() {
350				var aa = $(window).width() - 16, t = $(this).offset().left, o = $(this).find("ul.sub-menu").width(), n = 0;
351				n = $("body").hasClass("boxed") ? urlajax_gaea.siteWidth - (t - (aa - urlajax_gaea.siteWidth) / 2) :aa - t;
352				var d;
353				$(this).find("ul.sub-menu").length > 0 && (d = n - o), (o > n || o > d) && ($(this).find("ul.sub-menu").addClass("right"),$(this).addClass("right-align-menu"), 
354				$(this).find("ul.sub-menu").addClass("right"));
355			});
356		} else {
357			jQuery('.dd-menu .menu-item-has-children').append('<span class="smenu-opener"><i class="fa fa-angle-down"></i></span>');
358			jQuery('.smenu-opener').each(function(){
359				jQuery(this).on('click',function(){
360					if(jQuery(this).hasClass('smenu-opened')){
361						jQuery(this).removeClass('smenu-opened');
362						jQuery(this).prev('.sub-menu').slideUp();
363						jQuery(this).html('<i class="fa fa-angle-down"></i>');
364					} else {
365						jQuery(this).prev('.sub-menu').slideDown();
366						jQuery(this).addClass('smenu-opened');
367						jQuery(this).html('<i class="fa fa-angle-up"></i>');
368					}
369				});
370			});
371    	}
372	}
373/* ==================================================
374   Header Functions
375================================================== */
376	VESTIGE.StickyHeader = function() {
377		$('.header-style1 .site-header, .header-style2 .site-header').sticky();
378		$('.header-style3 .main-navbar').sticky();
379		if($(window).width() < 992){$('.header-style3 .site-header').sticky();}
380	}
381/* ==================================================
382	Responsive Nav Menu
383================================================== */
384	VESTIGE.MobileMenu = function() {
385		// Responsive Menu Events
386		$('#menu-toggle').on("click", function(){
387			$(this).toggleClass("opened");
388			$(".toggle-menu").slideToggle();
389			return false;
390		});
391		$(window).resize(function(){
392			if($("#menu-toggle").hasClass("opened")){
393				$(".toggle-menu").css("display","block");
394			} else {
395				$("#menu-toggle").css("display","none");
396			}
397		});
398	}
399/* ==================================================
400   IsoTope Portfolio
401================================================== */
402		VESTIGE.IsoTope = function() {	
403		$("ul.sort-source").each(function() {
404			var source = $(this);
405			var destination = $("ul.sort-destination[data-sort-id=" + $(this).attr("data-sort-id") + "]");
406			if(destination.get(0)) {
407				$(window).load(function() {
408					destination.isotope({
409						itemSelector: ".grid-item",
410						layoutMode: 'sloppyMasonry'
411					});
412					source.find("a").on("click", function(e) {
413						e.preventDefault();
414						var $this = $(this),
415							filter = $this.parent().attr("data-option-value");
416						source.find("li.active").removeClass("active");
417						$this.parent().addClass("active");
418						destination.isotope({
419							filter: filter
420						});
421						if(window.location.hash != "" || filter.replace(".","") != "*") {
422							self.location = "#" + filter.replace(".","");
423						}
424						return false;
425					});
426					$(window).on("hashchange", function(e) {
427						var hashFilter = "." + location.hash.replace("#",""),
428							hash = (hashFilter == "." || hashFilter == ".*" ? "*" : hashFilter);
429						source.find("li.active").removeClass("active");
430						source.find("li[data-option-value='" + hash + "']").addClass("active");
431						destination.isotope({
432							filter: hash
433						});
434					});
435					var hashFilter = "." + (location.hash.replace("#","") || "*");
436					var initFilterEl = source.find("li[data-option-value='" + hashFilter + "'] a");
437					if(initFilterEl.get(0)) {
438						source.find("li[data-option-value='" + hashFilter + "'] a").click();
439					} else {
440						source.find("li:first-child a").click();
441					}
442				});
443			}
444		});
445		$(window).load(function() {
446			var IsoTopeCont = $(".isotope-grid");
447			IsoTopeCont.isotope({
448				itemSelector: ".grid-item",
449				layoutMode: 'sloppyMasonry'
450			});
451			var EventGrid = $(".events-iso-grid");
452			EventGrid.isotope({
453				itemSelector: ".grid-item",
454				layoutMode: 'fitRows'
455			});
456			var ExhiGrid = $(".exhibitions-iso-grid");
457			ExhiGrid.isotope({
458				itemSelector: ".grid-item",
459				layoutMode: 'fitRows'
460			});
461			if ($(".grid-holder").length > 0){	
462				var $container_blog = $('.grid-holder');
463				$container_blog.isotope({
464					itemSelector : '.grid-item'
465				});
466				$(window).resize(function() {
467					var $container_blog = $('.grid-holder');
468					$container_blog.isotope({
469						itemSelector : '.grid-item'
470					});
471				});
472			}
473		});
474	}
475/* ==================================================
476   Init Functions
477================================================== */
478$(document).ready(function(){
479	VESTIGE.megaMenu();
480	VESTIGE.ContactForm();
481	VESTIGE.scrollToTop();
482	VESTIGE.accordion();
483	VESTIGE.toggle();
484	VESTIGE.toolTip();
485	VESTIGE.OwlCarousel();
486	//VESTIGE.PrettyPhoto();
487	VESTIGE.SuperFish();
488	VESTIGE.Counters();
489	VESTIGE.IsoTope();
490	if(urlajax_gaea.sticky==1) {VESTIGE.StickyHeader(); }
491	VESTIGE.heroflex();
492	VESTIGE.galleryflex();
493	VESTIGE.NivoSlider();
494	VESTIGE.MobileMenu();
495	$('.selectpicker').selectpicker({container:'body'});
496	$('.datepicker').datepicker();
497	ExFunc();
498	WWHGetter();
499	$('.widget_spacer-widget, .widget_hr-widget').parents('.panel-grid').css("margin-bottom",0);
500	$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
501	  var target = $(e.target).attr("href") // activated tab
502	  if(target=="#venuetab")
503		{
504			$("#venuetab").css({"display":"block"});
505		}
506		else
507		{
508			$("#venuetab").css({"display":"none"});
509		}
510	});
511	$('.ee-details-tab-nav .nav-tabs li').first().addClass('active');
512	$('.ee-details-tab-nav .tab-content .tab-pane').first().addClass('active');
513});
514
515// DESIGN ELEMENTS //
516
517
518/* Artwork details slider */
519$('#artwork-thumbs').flexslider({
520	animation: "slide",
521	controlNav: false,
522	animationLoop: false,
523	slideshow: false,
524	directionNav: true,
525	itemWidth: 100,
526	asNavFor: '#artwork-images',            
527	prevText: "",          
528	nextText: ""
529});
530   
531$('#artwork-images').flexslider({
532	animation: "slide",
533	controlNav: false,
534	animationLoop: false,
535	smoothHeight: true,
536	slideshow: true,
537	sync: "#artwork-thumbs",            
538	prevText: "",          
539	nextText: "",
540});
541// Events Grid Time Stamp Positioning
542$(".events-grid .grid-item").has(".grid-featured-img").find(".event-time").css("position","absolute");
543
544// Homepage Exhibitions Timeline Equal Height
545function ExFunc(){
546	$('.exhibitions-timeline').each(function(){
547		var timeline_slot = $(this).find('.timeline-slot').height();
548		var timeline_stamp = $(this).find('.timeline-stamp-table').height();
549		if (timeline_slot < timeline_stamp){
550			$(this).find('.timeline-slot').css("height",timeline_stamp);
551		}
552		$(this).find('.timeline-stamp-table').css("height",timeline_slot);
553	});
554}
555
556//Donation Modal
557$(".donate-paypal").on("click", function(e) {
558	var CauseName = $(this).parents(".list-item").find("h3").html();
559	$(".payment-to-cause").html(CauseName);
560});
561$('select[name="donation amount"]').change(function(){
562  if ($(this).val() === "Custom")
563  {
564    $('.custom-donate-amount').show();
565	$('input[name="Custom Donation Amount"]').focus();
566  }
567  else
568  {
569    $('.custom-donate-amount').hide();
570  }
571});
572// apply matchHeight to each item container's items
573$('.content').each(function() {
574	$(this).find('.owl-carousel .grid-item').find('.grid-item-content').matchHeight({
575		//property: 'min-height'
576	});
577	$(this).find('.spaces-item').find('.grid-item-content').matchHeight({
578		//property: 'min-height'
579	});
580});
581
582// WINDOW RESIZE FUNCTIONS //
583$(window).resize(function(){
584	ExFunc();
585	WWHGetter();
586});
587
588// Centering the dropdown menus
589$(".main-navigation ul li").mouseover(function() {
590	 var the_width = $(this).find("a").width();
591	 var child_width = $(this).find("ul").width();
592	 var width = ((child_width - the_width)/2);
593	 $(this).find("ul").css('left', -width);
594});
595
596// Any Button Scroll to section
597$('.scrollto').on("click", function(){
598	$.scrollTo( this.hash, 800, { easing:'easeOutQuint' });
599	return false;
600});
601
602$(".search-module-trigger").click(function(e){
603	e.stopPropagation();
604	$(".search-module-opened").toggle();
605 	$('.cart-module-opened').hide();
606	e.preventDefault();
607});
608$(".search-module-opened").click(function(e){
609	e.stopPropagation();
610});
611$("#cart-module-trigger").click(function(e){
612	e.stopPropagation();
613	$(".cart-module-opened").toggle();
614 	$('.search-module-opened').hide();
615	e.preventDefault();
616});
617$(".cart-module-opened").click(function(e){
618	e.stopPropagation();
619});
620$(document).click(function(e){
621 	$('.search-module-opened, .cart-module-opened').hide();
622});
623// FITVIDS
624$(".fw-video, .post-media").fitVids();
625
626$(window).load(function(){
627	$('.carousel-wrapper').css('background','none');
628	
629});
630
631// Icon Append
632$(".cust-counter" ).wrapAll( "<section class=\"counters padding-tb45 accent-color text-align-center\"><div class=\"container\"><div class=\"row\">");
633$("#comment-submit").wrapAll("<div class=\"row\"><div class=\"form-group\"><div class=\"col-md-12\">");
634$("#comment-submit").addClass("btn btn-primary btn-lg");
635
636// Animation Appear
637var AppDel;
638function AppDelFunction($appd) {
639	$appd.addClass("appear-animation");
640	if(!$("html").hasClass("no-csstransitions") && $(window).width() > 767) {
641		$appd.appear(function() {
642			var delay = ($appd.attr("data-appear-animation-delay") ? $appd.attr("data-appear-animation-delay") : 1);
643			if(delay > 1) $appd.css("animation-delay", delay + "ms");
644			$appd.addClass($appd.attr("data-appear-animation"));
645			setTimeout(function() {
646				$appd.addClass("appear-animation-visible");
647			}, delay);
648			clearTimeout();
649		}, {accX: 0, accY: -150});
650	} else {
651		$appd.addClass("appear-animation-visible");
652	}
653}
654function AppDelStopFunction() {
655	clearTimeout(AppDel);
656}
657$("[data-appear-animation]").each(function() {
658	var $this = $(this);
659	AppDelFunction($this);
660	AppDelStopFunction();
661});
662// Animation Progress Bars
663
664var AppAni;
665function AppAniFunction($anim) {
666	$anim.appear(function() {
667		var delay = ($anim.attr("data-appear-animation-delay") ? $anim.attr("data-appear-animation-delay") : 1);
668		if(delay > 1) $anim.css("animation-delay", delay + "ms");
669		$anim.addClass($anim.attr("data-appear-animation"));
670		setTimeout(function() {
671			$anim.animate({
672				width: $anim.attr("data-appear-progress-animation")
673			}, 1500, "easeOutQuad", function() {
674				$anim.find(".progress-bar-tooltip").animate({
675					opacity: 1
676				}, 500, "easeOutQuad");
677			});
678		}, delay);
679		clearTimeout();
680	}, {accX: 0, accY: -50});
681}
682function AppAniStopFunction() {
683	clearTimeout(AppAni);
684}
685$("[data-appear-progress-animation]").each(function() {
686	var $this = $(this);
687	AppAniFunction($this);
688	AppAniStopFunction();
689});
690
691// Parallax Jquery Callings
692if(!Modernizr.touch) {
693	$(window).on('load', function () {
694		parallaxInit();						  
695	});
696}
697function parallaxInit() {
698	$('.parallax1').parallax("50%", 0.1);
699	$('.parallax2').parallax("50%", 0.1);
700	$('.parallax3').parallax("50%", 0.1);
701	$('.parallax4').parallax("50%", 0.1);
702	$('.parallax5').parallax("50%", 0.1);
703	$('.parallax6').parallax("50%", 0.1);
704	$('.parallax7').parallax("50%", 0.1);
705	$('.parallax8').parallax("50%", 0.1);
706	/*add as necessary*/
707}
708
709// Window height/Width Getter Classes
710function WWHGetter(){
711	var wheighter = $(window).height();
712	var wwidth = $(window).width();
713	$(".wheighter").css("height",wheighter);
714	$(".wwidth").css("width",wwidth);
715}
716});

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.