PageSourceSearch

https://www.afaindia.com/js/theme.js

js afaindia.com collected 2026-10-10 00:45:07 UTC 23,214 bytes, 1,058 lines download raw bytes

1/*
2Name: 			Core Initializer
3Version: 		3.1.0
4*/
5
6
7(function() {
8
9	"use strict";
10
11	var Core = {
12
13		initialized: false,
14
15		initialize: function() {
16
17			if (this.initialized) return;
18			this.initialized = true;
19
20			this.build();
21			this.events();
22
23		},
24
25		build: function() {
26
27			// Adds browser version on html class.
28			$.browserSelector();
29
30			// Adds window smooth scroll on chrome.
31			if($("html").hasClass("chrome")) {
32				$.smoothScroll();
33			}
34
35			// Scroll to Top Button.
36			$.scrollToTop();
37			
38			// Nav Menu
39			this.navMenu();
40
41			// Header Search
42			this.headerSearch();
43
44			// Animations
45			this.animations();
46
47			// Word Rotate
48			this.wordRotate();
49
50			// Newsletter
51			this.newsletter();
52
53			// Featured Boxes
54			this.featuredBoxes();
55
56			// Tooltips
57			$("a[rel=tooltip]").tooltip();
58
59			// Owl Carousel
60			this.owlCarousel();
61
62			// Sort
63			this.sort();
64
65			// Toggle
66			this.toggle();
67
68			// Lightbox
69			this.lightbox();
70
71			// Media Element
72			this.mediaElement();
73
74			// Parallax
75			this.parallax();
76
77			// Account
78			this.account();
79			
80			 
81
82		},
83
84		events: function() {
85
86			// Anchors Position
87			$("a[data-hash]").on("click", function(e) {
88
89				e.preventDefault();
90				var header = $("#header"),
91					headerHeight = header.height(),
92					target = $(this).attr("href"),
93					$this = $(this);
94
95				if($(window).width() > 991) {
96					$("html,body").animate({scrollTop: $(target).offset().top - (headerHeight + 50)}, 600, "easeOutQuad");
97				} else {
98					$("html,body").animate({scrollTop: $(target).offset().top - 30}, 600, "easeOutQuad");
99				}
100
101				return false;
102
103			});
104
105			$("body").waitForImages(function() {
106				Core.productInfoBox();
107			});
108
109			$(window).afterResize(function() {
110				if(typeof(Core.productInfoBox) != "undefined") {
111					Core.productInfoBox();
112				}
113			});
114
115		},
116
117		navMenu: function() {
118
119			// Responsive Menu Events
120			var addActiveClass = false;
121
122			$("#mainMenu li.dropdown > a, #mainMenu li.dropdown-submenu > a").on("click", function(e) {
123
124				if($(window).width() > 979) return;
125
126				e.preventDefault();
127
128				addActiveClass = $(this).parent().hasClass("resp-active");
129
130				$("#mainMenu").find(".resp-active").removeClass("resp-active");
131
132				if(!addActiveClass) {
133					$(this).parents("li").addClass("resp-active");
134				}
135
136				return;
137
138			});
139
140			// Submenu Check Visible Space
141			$("#mainMenu li.dropdown-submenu").hover(function() {
142
143				if($(window).width() < 767) return;
144
145				var subMenu = $(this).find("ul.dropdown-menu");
146
147				if(!subMenu.get(0)) return;
148
149				var screenWidth = $(window).width(),
150					subMenuOffset = subMenu.offset(),
151					subMenuWidth = subMenu.width(),
152					subMenuParentWidth = subMenu.parents("ul.dropdown-menu").width(),
153					subMenuPosRight = subMenu.offset().left + subMenu.width();
154
155				if(subMenuPosRight > screenWidth) {
156					subMenu.css("margin-left", "-" + (subMenuParentWidth + subMenuWidth + 10) + "px");
157				} else {
158					subMenu.css("margin-left", 0);
159				}
160
161			});
162
163			// Mega Menu
164			$(document).on("click", ".mega-menu .dropdown-menu", function(e) {
165				e.stopPropagation()
166			});
167
168			// Mobile Redirect
169			$(".mobile-redirect").on("click", function() {
170				if($(window).width() < 991) {
171					self.location = $(this).attr("href");
172				}
173			});
174
175		},
176
177		stickyMenu: function() {
178
179			if($("body").hasClass("boxed"))
180				return false;
181
182			var $this = this,
183				$body = $("body"),
184				header = $("#header"),
185				headerContainer = header.parent(),
186				menuAfterHeader = (typeof header.data('after-header') !== 'undefined'),
187				headerHeight = header.height(),
188				flatParentItems = $("#header.flat-menu ul.nav-main > li > a"),
189				logoWrapper = header.find(".logo"),
190				logo = header.find(".logo img"),
191				logoWidth = logo.attr("width"),
192				logoHeight = logo.attr("height"),
193				logoPaddingTop = parseInt(logo.attr("data-sticky-padding") ? logo.attr("data-sticky-padding") : "28"),
194				logoSmallWidth = parseInt(logo.attr("data-sticky-width") ? logo.attr("data-sticky-width") : "82"),
195				logoSmallHeight = parseInt(logo.attr("data-sticky-height") ? logo.attr("data-sticky-height") : "40");
196
197			if(menuAfterHeader) {
198				headerContainer.css("min-height", header.height());
199			}
200
201			$(window).afterResize(function() {
202				headerContainer.css("min-height", header.height());
203			});
204
205			$this.checkStickyMenu = function() {
206
207				if($body.hasClass("boxed") || $(window).width() < 991) {
208					$this.stickyMenuDeactivate();
209					header.removeClass("fixed")
210					return false;
211				}
212
213				if(!menuAfterHeader) {
214
215					if($(window).scrollTop() > ((headerHeight - 15) - logoSmallHeight)) {
216
217						$this.stickyMenuActivate();
218
219					} else {
220
221						$this.stickyMenuDeactivate();
222
223					}
224
225				} else {
226
227					if($(window).scrollTop() > header.parent().offset().top) {
228
229						header.addClass("fixed");
230
231					} else {
232
233						header.removeClass("fixed");
234
235					}
236
237				}
238
239			}
240
241			$this.stickyMenuActivate = function() {
242
243				if($body.hasClass("sticky-menu-active"))
244					return false;
245
246				logo.stop(true, true);
247
248				$body.addClass("sticky-menu-active").css("padding-top", headerHeight);
249				flatParentItems.addClass("sticky-menu-active");
250
251				logoWrapper.addClass("logo-sticky-active");
252
253				logo.animate({
254					width: logoSmallWidth,
255					height: logoSmallHeight,
256					top: logoPaddingTop + "px"
257				}, 200, function() {});
258
259			}
260
261			$this.stickyMenuDeactivate = function() {
262
263				if($body.hasClass("sticky-menu-active")) {
264
265					$body.removeClass("sticky-menu-active").css("padding-top", 0);
266					flatParentItems.removeClass("sticky-menu-active");
267
268					logoWrapper.removeClass("logo-sticky-active");
269
270					logo.animate({
271						width: logoWidth,
272						height: logoHeight,
273						top: "0px"
274					}, 200);
275
276				}
277
278			}
279
280
281			$(window).on("scroll", function() {
282
283				$this.checkStickyMenu();
284
285			});
286
287			$this.checkStickyMenu();
288
289		},
290
291		headerSearch: function() {
292
293			$("#searchForm").validate({
294				rules: {
295					q: {
296						required: true
297					}
298				},
299	            errorPlacement: function(error, element) {
300
301	            },
302				highlight: function (element) {
303					$(element)
304						.closest(".input-group")
305						.removeClass("has-success")
306						.addClass("has-error");
307				},
308				success: function (element) {
309					$(element)
310						.closest(".input-group")
311						.removeClass("has-error")
312						.addClass("has-success");
313				}
314			});
315
316		},
317
318		animations: function() {
319
320			// Animation Appear
321			$("[data-appear-animation]").each(function() {
322
323				var $this = $(this);
324
325				$this.addClass("appear-animation");
326
327				if(!$("html").hasClass("no-csstransitions") && $(window).width() > 767) {
328
329					$this.appear(function() {
330
331						var delay = ($this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1);
332
333						if(delay > 1) $this.css("animation-delay", delay + "ms");
334						$this.addClass($this.attr("data-appear-animation"));
335
336						setTimeout(function() {
337							$this.addClass("appear-animation-visible");
338						}, delay);
339
340					}, {accX: 0, accY: -150});
341
342				} else {
343
344					$this.addClass("appear-animation-visible");
345
346				}
347
348			});
349
350			// Animation Progress Bars
351			$("[data-appear-progress-animation]").each(function() {
352
353				var $this = $(this);
354
355				$this.appear(function() {
356
357					var delay = ($this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1);
358
359					if(delay > 1) $this.css("animation-delay", delay + "ms");
360					$this.addClass($this.attr("data-appear-animation"));
361
362					setTimeout(function() {
363
364						$this.animate({
365							width: $this.attr("data-appear-progress-animation")
366						}, 1500, "easeOutQuad", function() {
367							$this.find(".progress-bar-tooltip").animate({
368								opacity: 1
369							}, 500, "easeOutQuad");
370						});
371
372					}, delay);
373
374				}, {accX: 0, accY: -50});
375
376			});
377
378			// Count To
379			$(".counters [data-to]").each(function() {
380
381				var $this = $(this);
382
383				$this.appear(function() {
384
385					$this.countTo({
386						onComplete: function() {
387							if($this.data("append")) {
388								$this.html($this.html() + $this.data("append"));
389							}
390						}
391					});
392
393				}, {accX: 0, accY: -150});
394
395			});
396
397			/* Circular Bars - Knob */
398			if(typeof($.fn.knob) != "undefined") {
399				$(".knob").knob({});
400			}
401
402		},
403
404		wordRotate: function() {
405
406			$(".word-rotate").each(function() {
407
408				var $this = $(this),
409					itemsWrapper = $(this).find(".word-rotate-items"),
410					items = itemsWrapper.find("> span"),
411					firstItem = items.eq(0),
412					firstItemClone = firstItem.clone(),
413					itemHeight = 0,
414					currentItem = 1,
415					currentTop = 0;
416
417				itemHeight = firstItem.height();
418
419				itemsWrapper.append(firstItemClone);
420
421				$this
422					.height(itemHeight)
423					.addClass("active");
424
425				setInterval(function() {
426
427					currentTop = (currentItem * itemHeight);
428
429					itemsWrapper.animate({
430						top: -(currentTop) + "px"
431					}, 300, "easeOutQuad", function() {
432
433						currentItem++;
434
435						if(currentItem > items.length) {
436
437							itemsWrapper.css("top", 0);
438							currentItem = 1;
439
440						}
441
442					});
443
444				}, 2000);
445
446			});
447
448		},
449
450		newsletter: function() {
451
452			$("#newsletterForm").validate({
453				submitHandler: function(form) {
454
455					$.ajax({
456						type: "POST",
457						url: $("#newsletterForm").attr("action"),
458						data: {
459							"email": $("#newsletterForm #newsletterEmail").val()
460						},
461						dataType: "json",
462						success: function (data) {
463							if (data.response == "success") {
464
465								$("#newsletterSuccess").removeClass("hidden");
466								$("#newsletterError").addClass("hidden");
467
468								$("#newsletterForm #newsletterEmail")
469									.val("")
470									.blur()
471									.closest(".control-group")
472									.removeClass("success")
473									.removeClass("error");
474
475							} else {
476
477								$("#newsletterError").html(data.message);
478								$("#newsletterError").removeClass("hidden");
479								$("#newsletterSuccess").addClass("hidden");
480
481								$("#newsletterForm #newsletterEmail")
482									.blur()
483									.closest(".control-group")
484									.removeClass("success")
485									.addClass("error");
486
487							}
488						}
489					});
490
491				},
492				rules: {
493					email: {
494						required: true,
495						email: true
496					}
497				},
498	            errorPlacement: function(error, element) {
499
500	            },
501				highlight: function (element) {
502					$(element)
503						.closest(".control-group")
504						.removeClass("success")
505						.addClass("error");
506				},
507				success: function (element) {
508					$(element)
509						.closest(".control-group")
510						.removeClass("error")
511						.addClass("success");
512				}
513			});
514
515		},
516
517		featuredBoxes: function() {
518
519			$("div.featured-box").css("height", "auto");
520
521			$("div.featured-boxes:not(.manual)").each(function() {
522
523				var wrapper = $(this);
524				var minBoxHeight = 0;
525
526				$("div.featured-box", wrapper).each(function() {
527					if($(this).height() > minBoxHeight)
528						minBoxHeight = $(this).height();
529				});
530
531				$("div.featured-box", wrapper).height(minBoxHeight);
532
533			});
534
535		},
536
537		owlCarousel: function(options) {
538
539			var total = $("div.owl-carousel:not(.manual)").length,
540				count = 0;
541
542			$("div.owl-carousel:not(.manual)").each(function() {
543
544				var slider = $(this);
545
546				var defaults = {
547					 // Most important owl features
548					items : 5,
549					itemsCustom : false,
550					itemsDesktop : [1199,4],
551					itemsDesktopSmall : [980,3],
552					itemsTablet: [768,2],
553					itemsTabletSmall: false,
554					itemsMobile : [479,1],
555					singleItem : true,
556					itemsScaleUp : false,
557
558					//Basic Speeds
559					slideSpeed : 200,
560					paginationSpeed : 800,
561					rewindSpeed : 1000,
562
563					//Autoplay
564					autoPlay : false,
565					stopOnHover : false,
566
567					// Navigation
568					navigation : false,
569					navigationText : ["<i class=\"icon icon-chevron-left\"></i>","<i class=\"icon icon-chevron-right\"></i>"],
570					rewindNav : true,
571					scrollPerPage : false,
572
573					//Pagination
574					pagination : true,
575					paginationNumbers: false,
576
577					// Responsive
578					responsive: true,
579					responsiveRefreshRate : 200,
580					responsiveBaseWidth: window,
581
582					// CSS Styles
583					baseClass : "owl-carousel",
584					theme : "owl-theme",
585
586					//Lazy load
587					lazyLoad : false,
588					lazyFollow : true,
589					lazyEffect : "fade",
590
591					//Auto height
592					autoHeight : false,
593
594					//JSON
595					jsonPath : false,
596					jsonSuccess : false,
597
598					//Mouse Events
599					dragBeforeAnimFinish : true,
600					mouseDrag : true,
601					touchDrag : true,
602
603					//Transitions
604					transitionStyle : false,
605
606					// Other
607					addClassActive : false,
608
609					//Callbacks
610					beforeUpdate : false,
611					afterUpdate : false,
612					beforeInit: false,
613					afterInit: false,
614					beforeMove: false,
615					afterMove: false,
616					afterAction: false,
617					startDragging : false,
618					afterLazyLoad : false
619				}
620
621				var config = $.extend({}, defaults, options, slider.data("plugin-options"));
622
623				// Initialize Slider
624				slider.owlCarousel(config).addClass("owl-carousel-init");
625
626			});
627
628		},
629
630		sort: function() {
631
632			$("ul.sort-source:not(.manual)").each(function() {
633
634				var source = $(this);
635				var destination = $("ul.sort-destination[data-sort-id=" + $(this).attr("data-sort-id") + "]");
636
637				if(destination.get(0)) {
638
639					var minParagraphHeight = 0;
640					var paragraphs = $("span.thumb-info-caption p", destination);
641
642					paragraphs.each(function() {
643						if($(this).height() > minParagraphHeight)
644							minParagraphHeight = ($(this).height() + 10);
645					});
646
647					paragraphs.height(minParagraphHeight);
648
649					$(window).load(function() {
650
651						destination.isotope({
652							itemSelector: "li",
653							layoutMode: 'sloppyMasonry'
654						});
655
656						source.find("a").click(function(e) {
657
658							e.preventDefault();
659
660							var $this = $(this),
661								filter = $this.parent().attr("data-option-value");
662
663							source.find("li.active").removeClass("active");
664							$this.parent().addClass("active");
665
666							destination.isotope({
667								filter: filter
668							});
669
670							if(window.location.hash != "" || filter.replace(".","") != "*") {
671								window.location.hash = filter.replace(".","");
672							}
673
674							return false;
675
676						});
677
678						$(window).bind("hashchange", function(e) {
679
680							var hashFilter = "." + location.hash.replace("#",""),
681								hash = (hashFilter == "." || hashFilter == ".*" ? "*" : hashFilter);
682
683							source.find("li.active").removeClass("active");
684							source.find("li[data-option-value='" + hash + "']").addClass("active");
685
686							destination.isotope({
687								filter: hash
688							});
689
690						});
691
692						var hashFilter = "." + (location.hash.replace("#","") || "*");
693
694						var initFilterEl = source.find("li[data-option-value='" + hashFilter + "'] a");
695
696						if(initFilterEl.get(0)) {
697							source.find("li[data-option-value='" + hashFilter + "'] a").click();
698						} else {
699							source.find("li:first-child a").click();
700						}
701
702					});
703
704				}
705
706			});
707
708		},
709
710		toggle: function() {
711
712			var $this = this,
713				previewParClosedHeight = 25;
714
715			$("section.toggle > label").prepend($("<i />").addClass("icon icon-plus"));
716			$("section.toggle > label").prepend($("<i />").addClass("icon icon-minus"));
717			$("section.toggle.active > p").addClass("preview-active");
718			$("section.toggle.active > div.toggle-content").slideDown(350, function() {});
719
720			$("section.toggle > label").click(function(e) {
721
722				var parentSection = $(this).parent(),
723					parentWrapper = $(this).parents("div.toogle"),
724					previewPar = false,
725					isAccordion = parentWrapper.hasClass("toogle-accordion");
726
727				if(isAccordion && typeof(e.originalEvent) != "undefined") {
728					parentWrapper.find("section.toggle.active > label").trigger("click");
729				}
730
731				parentSection.toggleClass("active");
732
733				// Preview Paragraph
734				if(parentSection.find("> p").get(0)) {
735
736					previewPar = parentSection.find("> p");
737					var previewParCurrentHeight = previewPar.css("height");
738					previewPar.css("height", "auto");
739					var previewParAnimateHeight = previewPar.css("height");
740					previewPar.css("height", previewParCurrentHeight);
741
742				}
743
744				// Content
745				var toggleContent = parentSection.find("> div.toggle-content");
746
747				if(parentSection.hasClass("active")) {
748
749					$(previewPar).animate({
750						height: previewParAnimateHeight
751					}, 350, function() {
752						$(this).addClass("preview-active");
753					});
754
755					toggleContent.slideDown(350, function() {});
756
757				} else {
758
759					$(previewPar).animate({
760						height: previewParClosedHeight
761					}, 350, function() {
762						$(this).removeClass("preview-active");
763					});
764
765					toggleContent.slideUp(350, function() {});
766
767				}
768
769			});
770
771		},
772
773		lightbox: function(options) {
774
775			if(typeof($.magnificPopup) == "undefined") {
776				return false;
777			}
778
779			// Internationalization of Lightbox
780			$.extend(true, $.magnificPopup.defaults, {
781				tClose: 'Close (Esc)', // Alt text on close button
782				tLoading: 'Loading...', // Text that is displayed during loading. Can contain %curr% and %total% keys
783				gallery: {
784					tPrev: 'Previous (Left arrow key)', // Alt text on left arrow
785					tNext: 'Next (Right arrow key)', // Alt text on right arrow
786					tCounter: '%curr% of %total%' // Markup for "1 of 7" counter
787				},
788				image: {
789					tError: '<a href="%url%">The image</a> could not be loaded.' // Error message when image could not be loaded
790				},
791				ajax: {
792					tError: '<a href="%url%">The content</a> could not be loaded.' // Error message when ajax request failed
793				}
794				
795			});
796
797			$(".lightbox:not(.manual)").each(function() {
798
799				var el = $(this);
800
801				var config, defaults = {}
802				if(el.data("plugin-options"))
803					config = $.extend({}, defaults, options, el.data("plugin-options"));
804
805				$(this).magnificPopup(config);
806
807			});
808			
809		
810        $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
811          disableOn: 700,
812          type: 'iframe',
813          mainClass: 'mfp-fade',
814          removalDelay: 160,
815          preloader: false,
816
817          fixedContentPos: false
818        });
819		
820		$('.tstvidzoom').magnificPopup({
821          type: 'iframe',
822          mainClass: 'mfp-fade',
823          removalDelay: 160,
824          preloader: false,
825          fixedContentPos: false,
826		  tLoading: 'Loading image #%curr%...',
827			gallery: {
828			enabled: true,
829			navigateByImgClick: true,
830			preload: [0,1] // Will preload 0 - before current, and 1 after the current image
831			},
832        });
833	
834		},
835
836		
837		mediaElement: function(options) {
838
839			if(typeof(mejs) == "undefined") {
840				return false;
841			}
842
843			$("video:not(.manual)").each(function() {
844
845				var el = $(this);
846
847				var defaults = {
848					defaultVideoWidth: 480,
849					defaultVideoHeight: 270,
850					videoWidth: -1,
851					videoHeight: -1,
852					audioWidth: 400,
853					audioHeight: 30,
854					startVolume: 0.8,
855					loop: false,
856					enableAutosize: true,
857					features: ['playpause','progress','current','duration','tracks','volume','fullscreen'],
858					alwaysShowControls: false,
859					iPadUseNativeControls: false,
860					iPhoneUseNativeControls: false,
861					AndroidUseNativeControls: false,
862					alwaysShowHours: false,
863					showTimecodeFrameCount: false,
864					framesPerSecond: 25,
865					enableKeyboard: true,
866					pauseOtherPlayers: true,
867					keyActions: []
868				}
869
870				var config = $.extend({}, defaults, options, el.data(""));
871
872				el.mediaelementplayer(config);
873
874			});
875
876		},
877
878		parallax: function() {
879
880			if(typeof($.stellar) == "undefined") {
881				return false;
882			}
883
884			$(window).load(function () {
885
886				if($(".parallax").get(0)) {
887					if(!Modernizr.touch) {
888						$(window).stellar({
889							responsive:true,
890							scrollProperty: 'scroll',
891							parallaxElements: false,
892							horizontalScrolling: false,
893							horizontalOffset: 0,
894							verticalOffset: 0
895						});
896					} else {
897						$(".parallax").addClass("disabled");
898					}
899				}
900			});
901
902		},
903
904
905
906		fixRevolutionSlider: function() {
907
908			$(".revslider-initialised").each(function() {
909				try{
910					$(this).revredraw();
911				} catch(e) {}
912			});
913
914		},
915
916		productInfoBox: function() {
917
918			if($(window).width() > 991) {
919				$(".product-thumb-info").css("height", "auto");
920
921				$(".product-thumb-info-list:not(.manual)").each(function() {
922
923					var wrapper = $(this);
924					var minBoxHeight = 0;
925
926					$(".product-thumb-info", wrapper).each(function() {
927						if($(this).height() > minBoxHeight)
928							minBoxHeight = $(this).height();
929					});
930
931					$(".product-thumb-info", wrapper).height(minBoxHeight);
932
933				});
934			} else {
935				$(".product-thumb-info").css("height", "auto");
936			}
937
938		},
939
940		account: function() {
941
942			var headerAccountWrapper = $("#headerAccount"),
943				closeEventAdded = false;
944
945			// Events
946			headerAccountWrapper.find("input").on("focus", function() {
947				headerAccountWrapper.addClass("open");
948
949				if(closeEventAdded) return;
950
951				$(document).mouseup(function(e) {
952				    if (!headerAccountWrapper.is(e.target) && headerAccountWrapper.has(e.target).length === 0) {
953			        	headerAccountWrapper.removeClass("open");
954			    	}
955				});
956
957				closeEventAdded = true;
958			});
959
960			$("#headerSignUp").on("click", function(e) {
961				e.preventDefault();
962				headerAccountWrapper.addClass("signup").removeClass("signin").removeClass("recover");
963				headerAccountWrapper.find(".signup-form input:first").focus();
964			});
965
966			$("#headerSignIn").on("click", function(e) {
967				e.preventDefault();
968				headerAccountWrapper.addClass("signin").removeClass("signup").removeClass("recover");
969				headerAccountWrapper.find(".signin-form input:first").focus();
970			});
971
972			$("#headerRecover").on("click", function(e) {
973				e.preventDefault();
974				headerAccountWrapper.addClass("recover").removeClass("signup").removeClass("signin");
975				headerAccountWrapper.find(".recover-form input:first").focus();
976			});
977
978			$("#headerRecoverCancel").on("click", function(e) {
979				e.preventDefault();
980				headerAccountWrapper.addClass("signin").removeClass("signup").removeClass("recover");
981				headerAccountWrapper.find(".signin-form input:first").focus();
982			});
983
984		}
985
986	};
987
988	Core.initialize();
989
990	$(window).load(function () {
991		
992			 $(function(){
993     	"use strict";
994        var x = 0;
995        setInterval(function(){
996            x-=1;
997            $('#move-parallax').css('background-position', x + 'px 0');
998        }, 50);
999    });
1000
1001		// Sticky Meny
1002		Core.stickyMenu();
1003
1004		// Window Resize
1005		$(window).afterResize(function() {
1006
1007			// Featured Boxes
1008			if(typeof(Core.featuredBoxes) != "undefined") {
1009				Core.featuredBoxes();
1010			}
1011
1012			// Sticky Menu
1013			if(typeof(Core.checkStickyMenu) != "undefined") {
1014				Core.checkStickyMenu();
1015			}
1016
1017			// Revolution Slider Fix
1018			if(typeof(Core.fixRevolutionSlider) != "undefined") {
1019				Core.fixRevolutionSlider();
1020			}
1021
1022			// Product Info Box
1023			if(typeof(Core.productInfoBox) != "undefined") {
1024				Core.productInfoBox();
1025			}
1026
1027			// Isotope
1028			if($(".isotope").get(0)) {
1029				$(".isotope").isotope('reLayout');
1030			}
1031
1032		}, true, 100 );
1033$(".review-list").owlCarousel({ "items":1, nestedItemSelector: 'review-item' });
1034//$(".top-rating").rateYo({readonly: true, rating:4.6,});
1035	});
1036	
1037	
1038	$("#accordion").on("hide.bs.collapse show.bs.collapse", e => {
1039  $(e.target)
1040    .prev()
1041    .find("i:last-child")
1042    .toggleClass("fa-minus fa-plus");
1043});
1044
1045$("#accordion").on("shown.bs.collapse", e => {
1046  $("html, body").animate(
1047    {
1048      scrollTop: $(e.target)
1049        .prev()
1050        .offset().top - 100
1051    },
1052    400
1053  );
1054});
1055
1056
1057
1058})();

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.