PageSourceSearch

https://deckbuilderseattlewa.com/wp-content/themes/homlane/assets/js/custom.js?ver=7.1.2

js deckbuilderseattlewa.com collected 2026-10-04 02:37:34 UTC 32,034 bytes, 1,279 lines download raw bytes

1/***************************************************************************************************************
2||||||||||||||||||||||||||||        CUSTOM SCRIPT FOR HOMLANE                       ||||||||||||||||||||||||||||
3****************************************************************************************************************
4||||||||||||||||||||||||||||              TABLE OF CONTENT                  ||||||||||||||||||||||||||||||||||||
5****************************************************************************************************************
6****************************************************************************************************************
7
801. Revolution slider
902. Sticky header
1003. Prealoader
1104. Language switcher
1205. prettyPhoto
1306. BrandCarousel
1407. Testimonial carousel
1508. ScrollToTop 
1609. Cart Touch Spin
1710. PriceFilter
1811. Cart touch spin
1912. Fancybox activator
2013. ContactFormValidation
2114. Scoll to target
2215. PrettyPhoto
23
24****************************************************************************************************************
25||||||||||||||||||||||||||||            End TABLE OF CONTENT                ||||||||||||||||||||||||||||||||||||
26****************************************************************************************************************/
27(function ($) {
28
29
30"use strict";
31
32
33
34//Submenu Dropdown Toggle
35if($('.main-header li.dropdown ul').length){
36    $('.main-header .navigation li.dropdown').append('<div class="dropdown-btn"><span class="fa fa-angle-right"></span></div>');
37}
38
39
40
41
42//Mobile Nav Hide Show
43if($('.mobile-menu').length){
44
45    $('.mobile-menu .menu-box').mCustomScrollbar();
46
47    var mobileMenuContent = $('.main-header .nav-outer .main-menu').html();
48    $('.mobile-menu .menu-box .menu-outer').append(mobileMenuContent);
49    $('.sticky-header .main-menu').append(mobileMenuContent);
50    
51
52    //Dropdown Button
53    $('.mobile-menu li.dropdown .dropdown-btn').on('click', function() {
54        $(this).toggleClass('open');
55        $(this).prev('ul').slideToggle(500);
56    });
57    
58    //Menu Toggle Btn
59    $('.mobile-nav-toggler').on('click', function() {
60        $('body').addClass('mobile-menu-visible');
61    });
62
63    
64    //Menu Toggle Btn
65    $('.mobile-menu .menu-backdrop,.mobile-menu .close-btn').on('click', function() {
66        $('body').removeClass('mobile-menu-visible');
67    });
68}
69
70
71
72
73
74//Sidemenu Nav Hide Show
75if($('.side-menu').length){
76
77    $('.side-menu .menu-box').mCustomScrollbar();
78
79    //Dropdown Button
80    $('.side-menu li.dropdown .dropdown-btn').on('click', function() {
81        $(this).toggleClass('open');
82        $(this).prev('ul').slideToggle(500);
83    });
84
85    $('body').addClass('side-menu-visible');
86    //Menu Toggle Btn
87    $('.side-nav-toggler').on('click', function() {
88        $('body').addClass('side-menu-visible');
89    });
90
91    //Menu Toggle Btn
92    $('.side-menu .side-menu-resize').on('click', function() {
93        $('body').toggleClass('side-menu-visible');
94    });
95
96    //Menu Toggle Btn
97    $('.main-header .mobile-nav-toggler-two').on('click', function() {
98        $('body').addClass('side-menu-visible-s2');
99    });
100
101    //Menu Overlay
102    $('.main-header .side-menu-overlay').on('click', function() {
103        $('body').removeClass('side-menu-visible-s2');
104    });
105}
106
107
108
109// Scroll to a Specific Div
110if($('.scroll-to-target').length){
111    $(".scroll-to-target").on('click', function() {
112        var target = $(this).attr('data-target');
113       // animate
114       $('html, body').animate({
115           scrollTop: $(target).offset().top
116        }, 1000);
117
118    });
119}
120
121
122
123//Parallax Scene for Icons
124if($('.parallax-scene-1').length){
125    var scene = $('.parallax-scene-1').get(0);
126    var parallaxInstance = new Parallax(scene);
127}
128if($('.parallax-scene-2').length){
129    var scene = $('.parallax-scene-2').get(0);
130    var parallaxInstance = new Parallax(scene);
131}
132if($('.parallax-scene-3').length){
133    var scene = $('.parallax-scene-3').get(0);
134    var parallaxInstance = new Parallax(scene);
135}
136if($('.parallax-scene-4').length){
137    var scene = $('.parallax-scene-4').get(0);
138    var parallaxInstance = new Parallax(scene);
139}
140if($('.parallax-scene-5').length){
141    var scene = $('.parallax-scene-5').get(0);
142    var parallaxInstance = new Parallax(scene);
143}
144
145
146
147//Add One Page nav
148if($('.scroll-nav').length) {
149    $('.scroll-nav').onePageNav();
150}
151
152
153
154
155// body-layout
156function bodylayout() {
157    if ($('.boxed_switch_menu').length) {
158
159        $('.body_switch_btn button').on('click', function() {
160            $('.body_switcher').toggleClass('switcher-show')
161        });
162
163        $("#myonoffswitch").on('click', function() {
164            $(".fixed").toggleClass("static");
165        });
166
167        $("#boxed").on('click', function() {
168            $(".main_page").addClass("active_boxlayout");
169            $('body').addClass('bg')
170        });
171        $("#full_width").on('click', function() {
172            $(".main_page").removeClass("active_boxlayout");
173            $('body').removeClass('bg')
174        });
175    };
176}
177
178
179
180// Color switcher
181function swithcerMenu () {
182    if ($('.switch_menu').length) {
183
184        $('.switch_btn button').on('click', function(){
185        $('.switch_menu').toggle(500)
186        });
187
188        $('#styleOptions').styleSwitcher({
189        hasPreview: true,
190        fullPath: 'assets/css/color/',
191            cookie: {
192            expires: 30,
193            isManagingLoad: true
194            }
195        });
196
197    };
198}
199
200
201
202//Update Header Style and Scroll to Top
203function headerStyle() {
204    if($('.main-header').length){
205        var windowpos = $(window).scrollTop();
206        var siteHeader = $('.main-header');
207        var scrollLink = $('.scroll-top');
208        if (windowpos >= 350) {
209            siteHeader.addClass('fixed-header');
210            scrollLink.fadeIn(300);
211        } else {
212            siteHeader.removeClass('fixed-header');
213            scrollLink.fadeOut(300);
214        }
215    }
216}
217headerStyle();
218
219
220
221
222//Accordion Box
223function accordion() {
224    if($('.accordion-box').length){
225        $(".accordion-box").on('click', '.accord-btn', function() {
226
227            if($(this).hasClass('active')!==true){
228            $('.accordion .accord-btn').removeClass('active');
229
230            }
231
232            if ($(this).next('.accord-content').is(':visible')){
233                $(this).removeClass('active');
234                $(this).next('.accord-content').slideUp(500);
235            }else{
236                $(this).addClass('active');
237                $('.accordion .accord-content').slideUp(500);
238                $(this).next('.accord-content').slideDown(500);	
239            }
240        });	
241    }
242}
243
244
245
246//===Language switcher===
247function languageSwitcher() {
248    if ($("#polyglot-language-options").length) {
249        $('#polyglotLanguageSwitcher').polyglotLanguageSwitcher({
250            effect: 'slide',
251            animSpeed: 500,
252            testMode: true,
253            onChange: function(evt) {
254                    alert("The selected language is: " + evt.selectedItem);
255            }
256
257        });
258    };
259}
260
261
262
263//===Search box ===
264function searchbox() {
265	//Search Box Toggle
266	if($('.seach-toggle').length){
267		//Dropdown Button
268		$('.seach-toggle').on('click', function() {
269			$(this).toggleClass('active');
270			$(this).next('.search-box').toggleClass('now-visible');
271		});
272	}
273}
274
275
276
277// Date picker
278function datepicker () {
279    if ($('#datepicker').length) {
280        $('#datepicker').datepicker();
281    };
282}
283
284
285
286// Time picker
287function timepicker () {
288    if ($('input[name="time"]').length) {
289        $('input[name="time"]').ptTimeSelect();
290    }
291}
292
293
294
295// ===Prealoder===
296
297//Hide Loading Box (Preloader)
298    function handlePreloader() {
299        if($('.loader-wrap').length){
300            $('.loader-wrap').delay(1000).fadeOut(1000);
301        }
302        TweenMax.to($(".loader-wrap .overlay"), 1.2, {
303            force3D: true,
304            left: "100%",
305            ease: Expo.easeInOut,
306        });
307    }
308
309
310if ($(".preloader-close").length) {
311    $(".preloader-close").on("click", function(){
312        $('.loader-wrap').delay(200).fadeOut(500);
313    })
314}
315
316
317
318//  Fact counter
319function CounterNumberChanger () {
320	var timer = $('.timer');
321	if(timer.length) {
322		timer.appear(function () {
323			timer.countTo();
324		})
325	}
326}
327
328
329
330
331
332// Price Filter
333function priceFilter() {
334    if ($('.price-ranger').length) {
335        $('.price-ranger #slider-range').slider({
336            range: true,
337            min: 10,
338            max: 200,
339            values: [11, 99],
340            slide: function(event, ui) {
341                $('.price-ranger .ranger-min-max-block .min').val('$' + ui.values[0]);
342                $('.price-ranger .ranger-min-max-block .max').val('$' + ui.values[1]);
343            }
344        });
345        $('.price-ranger .ranger-min-max-block .min').val('$' + $('.price-ranger #slider-range').slider('values', 0));
346        $('.price-ranger .ranger-min-max-block .max').val('$' + $('.price-ranger #slider-range').slider('values', 1));
347    };
348}
349
350
351
352// Cart Touch Spin
353function cartTouchSpin() {
354    if ($('.quantity-spinner').length) {
355        $("input.quantity-spinner").TouchSpin({
356            verticalbuttons: true
357        });
358    }
359}
360
361
362
363
364// ===Project===
365function projectMasonaryLayout() {
366    if ($('.masonary-layout').length) {
367        $('.masonary-layout').isotope({
368            layoutMode: 'masonry'
369        });
370    }
371    if ($('.post-filter').length) {
372        $('.post-filter li').children('.filter-text').on('click', function() {
373            var Self = $(this);
374            var selector = Self.parent().attr('data-filter');
375            $('.post-filter li').removeClass('active');
376            Self.parent().addClass('active');
377            $('.filter-layout').isotope({
378                filter: selector,
379                animationOptions: {
380                    duration: 500,
381                    easing: 'linear',
382                    queue: false
383                }
384            });
385            return false;
386        });
387    }
388
389    if ($('.post-filter.has-dynamic-filters-counter').length) {
390        // var allItem = $('.single-filter-item').length;
391        var activeFilterItem = $('.post-filter.has-dynamic-filters-counter').find('li');
392        activeFilterItem.each(function() {
393            var filterElement = $(this).data('filter');
394            var count = $('.filter-layout').find(filterElement).length;
395            $(this).children('.filter-text').append('<span class="count">' + count + '</span>');
396        });
397    };
398}
399
400
401
402//=== CountDownTimer===
403function countDownTimer () {
404	if ($('.time-countdown').length) {
405		$('.time-countdown').each(function () {
406			var Self = $(this);
407			var countDate = Self.data('countdown-time'); // getting date
408
409			Self.countdown(countDate, function(event) {
410	     		$(this).html('<h2>'+ event.strftime('%D : %H : %M : %S') +'</h2>');
411	   		});
412		});
413	};
414	if ($('.time-countdown-two').length) {
415		$('.time-countdown-two').each(function () {
416			var Self = $(this);
417			var countDate = Self.data('countdown-time'); // getting date
418
419			Self.countdown(countDate, function(event) {
420	     		$(this).html('<li> <div class="box"> <span class="days">'+ event.strftime('%D') +'</span> <span class="timeRef">days</span> </div> </li> <li> <div class="box"> <span class="hours">'+ event.strftime('%H') +'</span> <span class="timeRef clr-1">Hours</span> </div> </li> <li> <div class="box"> <span class="minutes">'+ event.strftime('%M') +'</span> <span class="timeRef clr-2">Minutes</span> </div> </li> <li> <div class="box"> <span class="seconds">'+ event.strftime('%S') +'</span> <span class="timeRef clr-3">Seconds</span> </div> </li>');
421	   		});
422		});
423	};
424}
425
426
427
428// ===Image Hover Script===
429function onHoverthreeDmovement() {
430    var tiltBlock = $('.js-tilt');
431    if(tiltBlock.length) {
432        $('.js-tilt').tilt({
433            maxTilt: 20,
434            perspective:700, 
435            glare: true,
436            maxGlare: 0
437        })
438    }
439}
440
441
442
443// Tab Box
444function tabBox () {
445    if($('.tabs-box').length){
446        $('.tabs-box .tab-buttons .tab-btn').on('click', function(e) {
447            e.preventDefault();
448            var target = $($(this).attr('data-tab'));
449
450            if ($(target).is(':visible')){
451                return false;
452            }else{
453                target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');
454                $(this).addClass('active-btn');
455                target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);
456                target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab');
457                $(target).fadeIn(300);
458                $(target).addClass('active-tab');
459            }
460        });
461    }
462}
463
464
465
466function beforeAfterTwentyTwenty() {
467    if ($(".before-after-twentytwenty").length) {
468        $(".before-after-twentytwenty").each(function () {
469            var Self = $(this);
470            var objName = Self.attr('id');
471            $('#'+objName).twentytwenty();
472
473            // hack for bs tab 
474            $(document).on('shown.bs.tab', 'a[data-toggle="tab"]', function(e) {
475                var paneTarget            = $(e.target).attr('data-target');
476                var $thePane              = $('.tab-pane' + paneTarget);
477                var twentyTwentyContainer = '#'+objName;
478                var twentyTwentyHeight    = $thePane.find(twentyTwentyContainer).height();
479                if(0 === twentyTwentyHeight) {
480                    $thePane.find(twentyTwentyContainer).trigger('resize');
481                }
482            });
483        });
484    };
485}
486
487
488
489
490
491
492
493
494/////////////////////////////
495//Universal Code for All Owl Carousel Sliders
496/////////////////////////////
497
498if ($('.theme-carousel').length) {
499        $(".theme-carousel").each(function (index) {
500        var $owlAttr = {},
501        $extraAttr = $(this).data("options");
502        $.extend($owlAttr, $extraAttr);
503        $(this).owlCarousel($owlAttr);
504    });
505}
506
507
508
509
510
511
512// Main Slider Carousel
513if ($('.banner-carousel').length) {
514    $('.banner-carousel').owlCarousel({
515        animateOut: 'fadeOut',
516        animateIn: 'fadeIn',
517        loop:true,
518        margin:0,
519        dots: true,
520        nav:true,
521        singleItem:true,
522        smartSpeed: 500,
523        autoplay: true,
524        autoplayTimeout:6000,
525        navText: [ '<span class="flaticon-next"></span>', '<span class="flaticon-next"></span>' ],
526        responsive:{
527            0:{
528                items:1
529            },
530            600:{
531                items:1
532            },
533            1024:{
534                items:1
535            }
536        }
537    });    		
538}
539
540
541
542// Main Slider Carousel
543if ($('.banner-carousel-rtl').length) {
544    $('.banner-carousel-rtl').owlCarousel({
545        animateOut: 'fadeOut',
546        animateIn: 'fadeIn',
547        loop:true,
548        margin:0,
549        dots: false,
550        nav:true,
551        singleItem:true,
552        smartSpeed: 500,
553        autoplay: true,
554        rtl: true,
555        autoplayTimeout:6000,
556        navText: [ '<span class="fas fa fa-angle-left"></span>', '<span class="fas fa fa-angle-right"></span>' ],
557        responsive:{
558            0:{
559                items:1
560            },
561            600:{
562                items:1
563            },
564            1024:{
565                items:1
566            }
567        }
568    });    		
569}
570
571
572
573
574
575
576// Testimonial Carousel
577if ($('.testimonial-carousel').length) {
578    $('.testimonial-carousel').owlCarousel({
579        loop:true,
580        margin: 30,
581        dots: false,
582        nav: false,
583        stagePadding: 0,
584        singleItem:true,
585        smartSpeed: 500,
586        autoplay: true,
587        autoplayTimeout:6000,
588        navText: [ '<span class="fa fa-long-arrow-left"></span><p>Prev</p>', '<span class="fa fa-long-arrow-right right"></span><p>Next</p>' ],
589        responsive:{
590            0:{
591                items:1
592            },
593            600:{
594                items:2
595            },
596            1024:{
597                items:3
598            }
599        }
600    });    		
601}
602
603
604// single-item-carousel
605if ($('.single-item-carousel').length) {
606    $('.single-item-carousel').owlCarousel({
607        loop:true,
608        margin: 30,
609        dots: true,
610        nav: false,
611        stagePadding: 0,
612        singleItem:true,
613        smartSpeed: 500,
614        autoplay: true,
615        autoplayTimeout:6000,
616        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
617        responsive:{
618            0:{
619                items:1
620            },
621            480:{
622                items:1
623            },
624            600:{
625                items:1
626            },
627            800:{
628                items:1
629            },
630            1024:{
631                items:1
632            }
633        }
634    });         
635}
636
637
638// two-item-carousel
639if ($('.two-item-carousel').length) {
640    $('.two-item-carousel').owlCarousel({
641        loop:true,
642        margin: 30,
643        dots: true,
644        nav: false,
645        stagePadding: 0,
646        singleItem:true,
647        smartSpeed: 500,
648        autoplay: true,
649        autoplayTimeout:6000,
650        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
651        responsive:{
652            0:{
653                items:1
654            },
655            480:{
656                items:1
657            },
658            600:{
659                items:1
660            },
661            800:{
662                items:2
663            },
664            1024:{
665                items:2
666            }
667        }
668    });         
669}
670
671
672// three-item-carousel
673if ($('.three-item-carousel').length) {
674    $('.three-item-carousel').owlCarousel({
675        loop:true,
676        margin: 30,
677        dots: true,
678        nav: false,
679        stagePadding: 0,
680        singleItem:true,
681        smartSpeed: 500,
682        autoplay: true,
683        autoplayTimeout:6000,
684        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
685        responsive:{
686            0:{
687                items:1
688            },
689            600:{
690                items:2
691            },
692            1024:{
693                items:3
694            }
695        }
696    });         
697}
698
699// three-item-carousel-2
700if ($('.three-item-carousel-2').length) {
701    $('.three-item-carousel-2').owlCarousel({
702        loop:true,
703        margin: 30,
704        dots: false,
705        nav: false,
706        stagePadding: 0,
707        singleItem:true,
708        smartSpeed: 500,
709        autoplay: true,
710        autoplayTimeout:6000,
711        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
712        responsive:{
713            0:{
714                items:1
715            },
716            600:{
717                items:2
718            },
719            1024:{
720                items:3
721            }
722        }
723    });         
724}
725
726
727// clients-carousel
728if ($('.clients-carousel').length) {
729    $('.clients-carousel').owlCarousel({
730        loop:true,
731        margin: 30,
732        dots: false,
733        nav: false,
734        stagePadding: 0,
735        singleItem:true,
736        smartSpeed: 500,
737        autoplay: true,
738        autoplayTimeout:6000,
739        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
740        responsive:{
741            0:{
742                items:1
743            },
744            480:{
745                items:2
746            },
747            600:{
748                items:3
749            },
750            800:{
751                items:4
752            },
753            1024:{
754                items:6
755            }
756        }
757    });         
758}
759
760
761// four-item-carousel
762if ($('.four-item-carousel').length) {
763    $('.four-item-carousel').owlCarousel({
764        loop:true,
765        margin: 30,
766        dots: true,
767        nav: false,
768        stagePadding: 0,
769        singleItem:true,
770        smartSpeed: 500,
771        autoplay: true,
772        autoplayTimeout:6000,
773        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
774        responsive:{
775            0:{
776                items:1
777            },
778            480:{
779                items:1
780            },
781            600:{
782                items:2
783            },
784            800:{
785                items:3
786            },
787            1024:{
788                items:4
789            }
790        }
791    });         
792}
793
794
795// five-item-carousel
796if ($('.five-item-carousel').length) {
797    $('.five-item-carousel').owlCarousel({
798        loop:true,
799        margin: 30,
800        dots: false,
801        nav: false,
802        stagePadding: 0,
803        singleItem:true,
804        smartSpeed: 500,
805        autoplay: true,
806        autoplayTimeout:6000,
807        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
808        responsive:{
809            0:{
810                items:1
811            },
812            480:{
813                items:2
814            },
815            600:{
816                items:3
817            },
818            800:{
819                items:4
820            },
821            1024:{
822                items:5
823            }
824        }
825    });         
826}
827
828
829// project-carousel
830if ($('.project-carousel').length) {
831    $('.project-carousel').owlCarousel({
832        loop:true,
833        margin: 50,
834        dots: true,
835        nav: true,
836        stagePadding: 0,
837        singleItem:true,
838        smartSpeed: 500,
839        autoplay: true,
840        autoplayTimeout:6000,
841        navText: [ '<span class="fa fa-long-arrow-left"></span>', '<span class="fa fa-long-arrow-right"></span>' ],
842        responsive:{
843            0:{
844                items:1
845            },
846            480:{
847                items:1
848            },
849            600:{
850                items:1
851            },
852            800:{
853                items:1
854            },
855            1024:{
856                items:1
857            }
858        }
859    });         
860}
861
862
863
864// Project Style1 Carousel
865if ($('.project-style1-carousel').length) {
866    $('.project-style1-carousel').owlCarousel({
867        loop: true,
868        margin: 30,
869        dots: false,
870        nav: true,
871        stagePadding: 0,
872        singleItem:true,
873        smartSpeed: 500,
874        autoplay: true,
875        autoplayTimeout:6000,
876        navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right right"></span>' ],
877        responsive:{
878            0:{
879                items:1
880            },
881            600:{
882                items:2
883            },
884            1024:{
885                items:4
886            }
887        }
888    });    		
889}
890
891
892
893
894
895
896
897
898
899
900
901
902//Hidden Sidebar
903if ($('.hidden-bar').length) {
904    var hiddenBar = $('.hidden-bar');
905    var hiddenBarOpener = $('.hidden-bar-opener');
906    var hiddenBarCloser = $('.hidden-bar-closer');
907    var navToggler = $('.nav-toggler');
908    $('.hidden-bar-wrapper').mCustomScrollbar();
909
910    //Show Sidebar
911    hiddenBarOpener.on('click', function () {
912        hiddenBar.toggleClass('visible-sidebar');
913        navToggler.toggleClass('open');
914    });
915
916    //Hide Sidebar
917    hiddenBarCloser.on('click', function () {
918        hiddenBar.toggleClass('visible-sidebar');
919        navToggler.toggleClass('open');
920    });
921} 
922    
923
924
925
926//Progress Bar / Levels
927if($('.progress-levels .progress-box .bar-fill').length){
928    $(".progress-box .bar-fill").each(function() {
929        $('.progress-box .bar-fill').appear(function(){
930            var progressWidth = $(this).attr('data-percent');
931            $(this).css('width',progressWidth+'%');
932        });
933
934    },{accY: 0});
935}
936
937
938
939//Fact Counter + Text Count
940if($('.count-box').length){
941    $('.count-box').appear(function(){
942
943        var $t = $(this),
944            n = $t.find(".count-text").attr("data-stop"),
945            r = parseInt($t.find(".count-text").attr("data-speed"), 10);
946
947        if (!$t.hasClass("counted")) {
948            $t.addClass("counted");
949            $({
950                countNum: $t.find(".count-text").text()
951            }).animate({
952                countNum: n
953            }, {
954                duration: r,
955                easing: "linear",
956                step: function() {
957                    $t.find(".count-text").text(Math.floor(this.countNum));
958                },
959                complete: function() {
960                    $t.find(".count-text").text(this.countNum);
961                }
962            });
963        }
964
965    },{accY: 0});
966}
967
968
969//Accordion Box
970if($('.accordion-box').length){
971    $(".accordion-box").on('click', '.acc-btn', function() {
972
973        var outerBox = $(this).parents('.accordion-box');
974        var target = $(this).parents('.accordion');
975
976        if($(this).hasClass('active')!==true){
977            $(outerBox).find('.accordion .acc-btn').removeClass('active');
978        }
979
980        if ($(this).next('.acc-content').is(':visible')){
981            return false;
982        }else{
983            $(this).addClass('active');
984            $(outerBox).children('.accordion').removeClass('active-block');
985            $(outerBox).find('.accordion').children('.acc-content').slideUp(300);
986            target.addClass('active-block');
987            $(this).next('.acc-content').slideDown(300);	
988        }
989    });	
990}
991
992
993
994// Lazyload Images
995if($('.lazy-image').length){
996    new LazyLoad({
997        elements_selector: ".lazy-image",
998        load_delay: 0,
999        threshold: 300
1000    });
1001}
1002
1003
1004
1005//====== Magnific Popup
1006$('.video-popup').magnificPopup({
1007    type: 'iframe'
1008    // other options
1009});
1010
1011
1012
1013//LightBox / Fancybox
1014if($('.lightbox-image').length) {
1015    $('.lightbox-image').fancybox({
1016        openEffect  : 'fade',
1017        closeEffect : 'fade',
1018        
1019        youtube : {
1020        controls : 0,
1021        showinfo : 0
1022    },
1023        
1024        helpers : {
1025            media : {}
1026        }
1027    });
1028}
1029
1030
1031
1032//Paroller
1033if($('.paroller').length){
1034    $('.paroller').paroller({
1035          factor: 0.05,            // multiplier for scrolling speed and offset, +- values for direction control  
1036          factorLg: 0.05,          // multiplier for scrolling speed and offset if window width is less than 1200px, +- values for direction control  
1037          type: 'foreground',      // background, foreground  
1038          direction: 'horizontal'  // vertical, horizontal  
1039    });
1040}
1041
1042
1043
1044// Elements Animation
1045if($('.wow').length){
1046    var wow = new WOW(
1047      {
1048        boxClass:     'wow',      // animated element css class (default is wow)
1049        animateClass: 'animated', // animation css class (default is animated)
1050        offset:       0,          // distance to the element when triggering the animation (default is 0)
1051        mobile:       false,       // trigger animations on mobile devices (default is true)
1052        live:         true       // act on asynchronously loaded content (default is true)
1053      }
1054    );
1055    wow.init();
1056}
1057
1058
1059
1060// AOS Animation
1061if ($("[data-aos]").length) { 
1062    AOS.init({
1063    duration: 1000,
1064    mirror: true
1065  });
1066}
1067
1068
1069//Sortable Masonary with Filters
1070    function enableMasonry() {
1071        if($('.sortable-masonry').length){
1072    
1073            var winDow = $(window);
1074            // Needed variables
1075            var $container=$('.sortable-masonry .items-container');
1076            var $filter=$('.filter-btns');
1077    
1078            $container.isotope({
1079                filter:'*',
1080                 masonry: {
1081                    columnWidth : '.masonry-item.small-column'
1082                 },
1083                animationOptions:{
1084                    duration:500,
1085                    easing:'linear'
1086                }
1087            });
1088            
1089    
1090            // Isotope Filter 
1091            $filter.find('li').on('click', function(){
1092                var selector = $(this).attr('data-filter');
1093    
1094                try {
1095                    $container.isotope({ 
1096                        filter  : selector,
1097                        animationOptions: {
1098                            duration: 500,
1099                            easing  : 'linear',
1100                            queue   : false
1101                        }
1102                    });
1103                } catch(err) {
1104    
1105                }
1106                return false;
1107            });
1108    
1109    
1110            winDow.on('resize', function(){
1111                var selector = $filter.find('li.active').attr('data-filter');
1112
1113                $container.isotope({ 
1114                    filter  : selector,
1115                    animationOptions: {
1116                        duration: 500,
1117                        easing  : 'linear',
1118                        queue   : false
1119                    }
1120                });
1121            });
1122    
1123    
1124            var filterItemA = $('.filter-btns li');
1125    
1126            filterItemA.on('click', function(){
1127                var $this = $(this);
1128                if ( !$this.hasClass('active')) {
1129                    filterItemA.removeClass('active');
1130                    $this.addClass('active');
1131                }
1132            });
1133        }
1134    }
1135    
1136    enableMasonry();
1137
1138
1139    //Progress Bar
1140    if ($('.count-bar').length) {
1141        $('.count-bar').appear(function(){
1142            var el = $(this);
1143            var percent = el.data('percent');
1144            $(el).css('width',percent).addClass('counted');
1145        },{accY: -50});
1146
1147    }
1148
1149
1150    //Search Popup
1151    if($('#search-popup').length){
1152        
1153        //Show Popup
1154        $('.search-toggler').on('click', function() {
1155            $('#search-popup').addClass('popup-visible');
1156        });
1157        $(document).keydown(function(e){
1158            if(e.keyCode === 27) {
1159                $('#search-popup').removeClass('popup-visible');
1160            }
1161        });
1162        //Hide Popup
1163        $('.close-search,.search-popup .overlay-layer').on('click', function() {
1164            $('#search-popup').removeClass('popup-visible');
1165        });
1166    }
1167
1168
1169
1170    /* mouse cursor */
1171    document.getElementsByTagName("body")[0].addEventListener("mousemove", function(n) {
1172        e.style.left = n.clientX + "px", 
1173        e.style.top = n.clientY + "px"
1174    });
1175    var 
1176        e = document.getElementById("mouse-pointer");
1177        
1178    $(document).mousemove(function(e){
1179        
1180    });
1181
1182
1183    $(document).ready(function() {
1184        if ($('.count-bar').length) {
1185			$.dobPicker({
1186				daySelector: '#dobday', /* Required */
1187				monthSelector: '#dobmonth', /* Required */
1188				yearSelector: '#dobyear', /* Required */
1189				dayDefault: 'Day', /* Optional */
1190				monthDefault: 'Month', /* Optional */
1191				yearDefault: 'Year', /* Optional */
1192				minimumAge: 12, /* Optional */
1193				maximumAge: 80 /* Optional */
1194			});
1195		}
1196    });
1197
1198
1199    // Scroll top button
1200    $('.scroll-top-inner').on("click", function () {
1201        $('html, body').animate({scrollTop: 0}, 500);
1202        return false;
1203    });
1204
1205    function handleScrollbar() {
1206
1207        var progressLineBar = $('.scroll-top-inner .bar-inner');
1208        var pageHeight = $(document).height();
1209        var windwoHeight = $(window).height();
1210        var windowPos = $(window).scrollTop();
1211        var progressLineBarWidth = windowPos / (pageHeight - windwoHeight) * 100;
1212        $(progressLineBar).css('width',(progressLineBarWidth + '%'));
1213
1214    }
1215
1216
1217
1218
1219// Dom Ready Function
1220jQuery(document).on('ready', function () {
1221	(function ($) {
1222        // add your functions
1223        languageSwitcher ();
1224        searchbox ();
1225        datepicker ();
1226        timepicker ();
1227        tabBox ();
1228        
1229        CounterNumberChanger ();
1230        priceFilter ();
1231        cartTouchSpin ();
1232        accordion ();
1233        bodylayout ();
1234        swithcerMenu ();
1235        onHoverthreeDmovement ();
1236        countDownTimer ();
1237        beforeAfterTwentyTwenty ();
1238     
1239        
1240        $('#scrollbar1').tinyscrollbar();
1241   
1242 
1243	})(jQuery);
1244});
1245
1246
1247
1248jQuery(window).on('scroll', function(){
1249	(function ($) {
1250    headerStyle ();
1251    handleScrollbar();
1252        if ($(window).scrollTop() > 200) {
1253                $('.scroll-top-inner').addClass('visible');
1254            } else {
1255                $('.scroll-top-inner').removeClass('visible');
1256            }
1257    
1258	})(jQuery);
1259});
1260
1261
1262
1263// Instance Of Fuction while Window Load event
1264jQuery(window).on('load', function() {
1265    (function($) {
1266        handlePreloader();
1267        projectMasonaryLayout ();
1268        enableMasonry();
1269   
1270
1271        
1272    })(jQuery);
1273});
1274
1275
1276
1277$(window).enllax();
1278
1279})(jQuery);

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.