PageSourceSearch

https://tolcongroup.co.za/wp-content/themes/archimak/includes/js/scripts.js?ver=2.1.5

js tolcongroup.co.za collected 2026-10-06 14:05:56 UTC 60,985 bytes, 1,653 lines download raw bytes

1//   all ------------------
2function initArchimak() {
3    "use strict";
4    firstLoad();
5    function firstLoad() {
6        var chdpt = jQuery(".content-holder").data("pagetitle");
7        jQuery(".page-subtitle span").text(chdpt);
8        TweenMax.to(jQuery(".double-bounce2"), 0.9, {
9            force3D: true,
10            right: "0",
11            delay: 0.1,
12            ease: Expo.easeInOut,
13            onComplete: function () {
14                TweenMax.to(jQuery(".double-bounce1 , .double-bounce2"), 1.0, {
15                    force3D: true,
16                    left: "100%",
17                    ease: Expo.easeInOut,
18                    onComplete: function () {
19                        TweenMax.to(jQuery(".loader-wrap"), 1.2, {
20                            force3D: true,
21                            left: "100%",
22                            ease: Expo.easeInOut,
23                        });
24
25                    }
26                });
27            }
28        });
29    }
30    //   Background image ------------------
31    var a = jQuery(".bg");
32    a.each(function (a) {
33        if (jQuery(this).attr("data-bg")) jQuery(this).css("background-image", "url(" + jQuery(this).data("bg") + ")");
34    });
35    //  swiper ------------------
36    if (jQuery(".home-half-slider").length > 0) {
37        var j = new Swiper(".home-half-slider .swiper-container", {
38            preloadImages: false,
39            loop: true,
40            grabCursor: true,
41            centeredSlides: false,
42            resistance: true,
43            resistanceRatio: 0.6,
44            speed: 2400,
45            spaceBetween: 0,
46            parallax: false,
47            effect: "slide",
48            mousewheel: false,
49            init: false,
50            pagination: {
51                el: '.hero-slider-wrap_pagination',
52                clickable: true,
53            },
54            navigation: {
55                nextEl: '.hsc-next',
56                prevEl: '.hsc-prev',
57            },
58            autoplay: {
59                delay: 2500,
60                disableOnInteraction: false
61            },
62        });
63        j.on('slideChange', function () {
64            var csli = j.realIndex + 1,
65                curnum = jQuery('.hsc_counter-wrap .current');
66            TweenMax.to(curnum, 0.2, {
67                force3D: true,
68                y: -10,
69                opacity: 0,
70                ease: Power2.easeOut,
71                onComplete: function () {
72                    TweenMax.to(curnum, 0.1, {
73                        force3D: true,
74                        y: 10
75                    });
76                    curnum.html("0" + csli);
77                }
78            });
79            TweenMax.to(curnum, 0.2, {
80                force3D: true,
81                y: 0,
82                delay: 0.3,
83                opacity: 1,
84                ease: Power2.easeOut
85            });
86            initcustom_scroll();
87        });
88        var totalSlides = j.slides.length - 2;
89        jQuery('#total').html("0" + totalSlides);
90        j.on("slideChangeTransitionStart", function () {
91            eqwe();
92        });
93        j.on("slideChangeTransitionEnd", function () {
94            kpsc();
95        });
96        var autobtn2 = jQuery(".play-pause_slider2");
97        function autoEnd2() {
98            autobtn2.removeClass("auto_actslider2");
99            j.autoplay.stop();
100        }
101        function autoStart2() {
102            autobtn2.addClass("auto_actslider2");
103            j.autoplay.start();
104        }
105        autobtn2.on("click", function () {
106            if (autobtn2.hasClass("auto_actslider2")) autoEnd2();
107            else autoStart2();
108            return false;
109        });
110        setTimeout(function () {
111            j.init();
112            var totalSlides = j.slides.length - 2;
113            jQuery('.total').html('0' + totalSlides);
114        }, 2000);
115    }
116    if (jQuery(".testimonilas-carousel").length > 0) {
117        var j2 = new Swiper(".testimonilas-carousel .swiper-container", {
118            preloadImages: false,
119            slidesPerView: 2,
120            spaceBetween: 10,
121            loop: true,
122            grabCursor: true,
123            mousewheel: false,
124            centeredSlides: false,
125            pagination: {
126                el: '.tc-pagination',
127                clickable: true,
128            },
129            navigation: {
130                nextEl: '.tc-button-next',
131                prevEl: '.tc-button-prev',
132            },
133            breakpoints: {
134
135                800: {
136                    slidesPerView: 1,
137                },
138            }
139        });
140    }
141    function setUpCarouselSlider() {
142        jQuery('.fw-carousel .swiper-wrapper').addClass('no-horizontal-slider');
143        if (jQuery(".fw-carousel").length > 0) {
144            if (jQuery(window).width() >= 764 && j2 == undefined) {
145                var totalSlides2 = jQuery(".fw-carousel .swiper-slide").length;
146                var mouseContr = jQuery(".fw-carousel").data("mousecontrol");
147                var j2 = new Swiper(".fw-carousel .swiper-container", {
148                    preloadImages: true,
149                    loop: false,
150                    freeMode: true,
151                    slidesPerView: 'auto',
152                    spaceBetween: 10,
153                    grabCursor: true,
154                    mousewheel: mouseContr,
155                    speed: 1400,
156                    direction: "horizontal",
157                    scrollbar: {
158                        el: '.hs_init',
159                        draggable: true,
160                    },
161                    effect: "slide",
162                    pagination: {
163                        el: '.fw-carousel-counter',
164                        type: 'fraction',
165                        renderFraction: function (currentClass) {
166                            return '<span class="' + currentClass + '"></span>' + '' + '<span class="j2total">
166' + totalSlides2 + '</span>';
167                        }
168                    },
169                    navigation: {
170                        nextEl: '.fw-carousel-button-next',
171                        prevEl: '.fw-carousel-button-prev',
172                    },
173                    on: {
174                        resize: function () {
175                            if (jQuery(window).width() < 640) {
176                                j2.update();
177                            }
178                        },
179                    }
180                });
181            }
182            if (jQuery(window).width() < 640 && j2 !== undefined) {
183                j2.destroy();
184                j2 = undefined;
185                jQuery('.fw-carousel .swiper-wrapper').removeAttr('style').addClass('no-horizontal-slider');
186                jQuery('.swiper-slide').removeAttr('style');
187            }
188        }
189    }
190    setUpCarouselSlider();
191    if (jQuery(".det-carousel").length > 0) {
192        var totalSlides = jQuery(".det-carousel .swiper-slide ").length;
193        var j4 = new Swiper(".det-carousel .swiper-container", {
194            preloadImages: false,
195            slidesPerView: 'auto',
196            spaceBetween: 20,
197            loop: true,
198            grabCursor: true,
199            mousewheel: false,
200            centeredSlides: false,
201            autoHeight: false,
202            pagination: {
203                el: '.ss-slider-pagination',
204                clickable: true,
205            },
206            navigation: {
207                nextEl: '.fw-carousel-button-next',
208                prevEl: '.fw-carousel-button-prev',
209            },
210        });
211        j4.on('slideChangeTransitionEnd', function () {
212            var scsc = jQuery(".det-carousel .swiper-slide.swiper-slide-active").data("curtext"),
213                jQuerycaptproject = jQuery(".ar-text-ani .det-carousel-title  h4");
214
215            jQuerycaptproject.text(scsc).shuffleLetters({});
216        });
217        j4.on('slideChange', function () {
218            var csli = j4.realIndex + 1,
219                curnum = jQuery('#current');
220            TweenMax.to(curnum, 0.2, {
221                force3D: true,
222                y: -10,
223                opacity: 0,
224                ease: Power2.easeOut,
225                onComplete: function () {
226                    TweenMax.to(curnum, 0.1, {
227                        force3D: true,
228                        y: 10
229                    });
230                    curnum.html("0" + csli);
231                }
232            });
233            TweenMax.to(curnum, 0.2, {
234                force3D: true,
235                y: 0,
236                delay: 0.3,
237                opacity: 1,
238                ease: Power2.easeOut
239            });
240        });
241        jQuery('#total').html("0" + totalSlides);
242    }
243    if (jQuery(".single-slider").length > 0) {
244        var j2 = new Swiper(".single-slider .swiper-container", {
245            preloadImages: false,
246            slidesPerView: 1,
247			freeMode: false,
248            spaceBetween: 0,
249            loop: true,
250            autoHeight: true,
251            grabCursor: true,
252            mousewheel: false,
253            pagination: {
254                el: '.ss-slider-pagination',
255                clickable: true,
256            },
257            navigation: {
258                nextEl: '.ss-slider-cont-next',
259                prevEl: '.ss-slider-cont-prev',
260            },
261        });
262    }
263    if (jQuery(".slideshow-container_wrap").length > 0) {
264		var sliderSpeed = jQuery(".slideshow-container_wrap").data("sliderspeed");
265        var sliderdelay = jQuery(".slideshow-container_wrap").data("sliderdelay");
266        var ms1 = new Swiper(".slideshow-container_wrap .swiper-container", {
267            preloadImages: false,
268            loop: true,
269            speed: sliderSpeed,
270            spaceBetween: 0,
271            effect: "fade",
272            init: false,
273            autoplay: {
274                delay: sliderdelay,
275                disableOnInteraction: false
276            },
277            pagination: {
278                el: '.fcwc-pagination',
279                clickable: true,
280            },
281        });
282        setTimeout(function () {
283            ms1.init();
284        }, 2000);
285    }
286    if (jQuery(".hero-carousel ").length > 0) {
287        var totalSlides3 = jQuery(".hero-carousel .swiper-slide").length;
288		var sliderSpeed = jQuery(".hero-carousel").data("sliderspeed");
289        var sliderdelay = jQuery(".hero-carousel").data("sliderdelay");
290        var heroCarusel = new Swiper(".hero-carousel .swiper-container", {
291            preloadImages: false,
292            loop: true,
293            centeredSlides: true,
294            freeMode: false,
295            slidesPerView: 3,
296            spaceBetween: 0,
297            grabCursor: true,
298            mousewheel: false,
299            parallax: true,
300            speed: sliderSpeed,
301            effect: "slide",
302            init: false,
303            autoplay: {
304                delay: sliderdelay,
305                disableOnInteraction: false
306            },
307            pagination: {
308                el: '.fs-slider-wrap_pagination',
309                clickable: true,
310            },
311            navigation: {
312                nextEl: '.ss-slider-cont-next',
313                prevEl: '.ss-slider-cont-prev',
314            },
315            breakpoints: {
316                1064: {
317                    slidesPerView: 2
318                },
319                640: {
320                    slidesPerView: 1,
321                    centeredSlides: false,
322                },
323            }
324        });
325        jQuery('.hsc_counter span').html('01');
326        jQuery('.hsc_total').html('0' + totalSlides3);
327        heroCarusel.on('slideChange', function () {
328            var csli2 = heroCarusel.realIndex + 1,
329                curnum2 = jQuery('.hsc_counter span');
330            curnum2.html('0' + csli2);
331        });
332        heroCarusel.on("slideChangeTransitionStart", function () {
333            eqwe();
334        });
335        heroCarusel.on("slideChangeTransitionEnd", function () {
336            kpsc();
337        });
338        setTimeout(function () {
339            heroCarusel.init();
340        }, 2000);
341    }
342    if (jQuery(".grid-carousel ").length > 0) {
343        var totalSlides2 = jQuery(".grid-carousel .swiper-slide").length;
344        var gridCarusel = new Swiper(".grid-carousel .swiper-container", {
345            preloadImages: true,
346            loop: true,
347            centeredSlides: true,
348            freeMode: false,
349            slidesPerView: 2,
350            spaceBetween: 10,
351            grabCursor: true,
352            mousewheel: false,
353            parallax: true,
354            speed: 1400,
355            navigation: {
356                nextEl: '.gc-slider-cont-next',
357                prevEl: '.gc-slider-cont-prev',
358            },
359            pagination: {
360                el: '.grid-carousel_pagination',
361                clickable: true,
362            },
363            breakpoints: {
364                768: {
365                    slidesPerView: 2,
366                },
367                640: {
368                    slidesPerView: 1,
369
370                },
371            }
372        });
373    }
374    if (jQuery(".grid-carousel2").length > 0) {
375        var j2 = new Swiper(".grid-carousel2 .swiper-container", {
376            preloadImages: false,
377            freeMode: false,
378            slidesPerView: 2,
379            centeredSlides: true,
380            spaceBetween: 0,
381            loop: true,
382            grabCursor: true,
383            mousewheel: false,
384            navigation: {
385                nextEl: '.cc-next',
386                prevEl: '.cc-prev',
387            },
388            breakpoints: {
389                1064: {
390                    slidesPerView: 2,
391                },
392                768: {
393                    slidesPerView: 1,
394                },
395            }
396        });
397    }
398    if (jQuery(".fs-slider").length > 0) {
399        var mouseContr2 = jQuery(".fs-slider").data("mousecontrol2");
400        var sliderSpeed = jQuery(".fs-slider").data("sliderspeed");
401        var sliderdelay = jQuery(".fs-slider").data("sliderdelay");
402        var j3 = new Swiper(".fs-slider .swiper-container", {
403            preloadImages: false,
404            loop: true,
405            grabCursor: true,
406            speed: sliderSpeed,
407            spaceBetween: 0,
408			init:false,
409            effect: "slide",
410            mousewheel: mouseContr2,
411            pagination: {
412                el: '.hero-slider-wrap_pagination',
413                clickable: true,
414            },
415            navigation: {
416                nextEl: '.hero-slider-button-next',
417                prevEl: '.hero-slider-button-prev',
418            },
419            autoplay: {
420                delay: sliderdelay,
421                disableOnInteraction: false
422            }
423        });
424        var autobtn2 = jQuery(".play-pause_slider2");
425        function autoEnd2() {
426            autobtn2.removeClass("auto_actslider2");
427            j3.autoplay.stop();
428        }
429        function autoStart2() {
430            autobtn2.addClass("auto_actslider2");
431            j3.autoplay.start();
432        }
433        autobtn2.on("click", function () {
434            if (autobtn2.hasClass("auto_actslider2")) autoEnd2();
435            else autoStart2();
436            return false;
437        });
438        j3.on("slideChangeTransitionStart", function () {
439            eqwe();
440        });
441        j3.on("slideChangeTransitionEnd", function () {
442            kpsc();
443        });
444        j3.on('slideChange', function () {
445            var csli = j3.realIndex + 1,
446                curnum = jQuery('.current');
447            TweenMax.to(curnum, 0.2, {
448                force3D: true,
449                y: -10,
450                opacity: 0,
451                ease: Power2.easeOut,
452                onComplete: function () {
453                    TweenMax.to(curnum, 0.1, {
454                        force3D: true,
455                        y: 10
456                    });
457                    curnum.html("0" + csli);
458                }
459            });
460            TweenMax.to(curnum, 0.2, {
461                force3D: true,
462                y: 0,
463                delay: 0.3,
464                opacity: 1,
465                ease: Power2.easeOut
466            });
467        });
468        var totalSlides = j3.slides.length - 2;
469        jQuery('#total').html("0" + totalSlides);
470        var imageSwiper = new Swiper(".hero-slider-img .swiper-container", {
471            preloadImages: false,
472            loop: true,
473            resistance: true,
474            parallax: true,
475			init:false,
476            effect: "slide",
477        });
478        j3.controller.control = imageSwiper;
479        imageSwiper.controller.control = j3;
480        setTimeout(function () {
481            j3.init();
482			imageSwiper.init();
483        }, 2000);
484    }
485    function kpsc() {
486        jQuery(".slide-progress").css({
487            width: "100%",
488            transition: "width 3000ms"
489        });
490    }
491    function eqwe() {
492        jQuery(".slide-progress").css({
493            width: 0,
494            transition: "width 0s"
495        });
496    };
497    //   lightGallery------------------
498    function lightGalleryInit() {
499        jQuery(".image-popup").lightGallery({
500            selector: "this",
501            cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)",
502            download: false,
503            counter: false
504        });
505        var o = jQuery(".lightgallery"),
506            p = o.data("looped");
507        o.lightGallery({
508            selector: ".lightgallery a.popup-image",
509            cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)",
510            download: false,
511            loop: false,
512            counter: false
513        });
514        jQuery('#html5-videos').lightGallery({
515            selector: 'this'
516        });
517        jQuery(".dynamic-gal").on('click', function () {
518            var dynamicgal = eval(jQuery(this).attr("data-dynamicPath"));
519            jQuery(this).lightGallery({
520                dynamic: true,
521                dynamicEl: dynamicgal,
522                download: false,
523                loop: false,
524                counter: false
525            });
526
527        });
528    }
529    lightGalleryInit();
530    //   appear------------------
531    jQuery(".stats").appear(function () {
532        jQuery(".num").countTo();
533    });
534    jQuery(".skillbar-box").appear(function () {
535        jQuery(this).find("div.skillbar-bg").each(function () {
536            jQuery(this).find(".custom-skillbar").delay(600).animate({
537                width: jQuery(this).attr("data-percent")
538            }, 1500);
539        });
540    });
541    // scrollToFixed------------------
542    jQuery(".fixed-column").scrollToFixed({
543        minWidth: 1064,
544        zIndex: 12,
545        marginTop: 90,
546        removeOffsets: true,
547        limit: function () {
548            var a = jQuery(".limit-box").offset().top - jQuery(".fixed-column").outerHeight(true);
549            return a;
550        }
551    });
552    jQuery(".init_fx-column").scrollToFixed({
553        minWidth: 1340,
554        zIndex: 112,
555        marginTop: 0,
556        removeOffsets: true,
557        limit: function () {
558            var a = jQuery(".limit-box").offset().top - jQuery(".init_fx-column").outerHeight(true);
559            return a;
560        }
561    });
562    jQuery(".scroll-fixed-column-content").scrollToFixed({
563        minWidth: 1064,
564        zIndex: 112,
565        bottom: 0,
566        removeOffsets: true,
567        limit: function () {
568            var a = jQuery(".limit-box").offset().top - jQuery(".scroll-fixed-column-content").outerHeight(true);
569            return a;
570        }
571    });
572    jQuery(".fixed-column-filter").scrollToFixed({
573        minWidth: 1064,
574        zIndex: 112,
575        marginTop: 0,
576        removeOffsets: true,
577        limit: function () {
578            var a = jQuery(".limit-box").offset().top - jQuery(".fixed-column-filter").outerHeight(true);
579            return a;
580        }
581    });
582    //   scroll to------------------
583    jQuery(".scroll-con-sec").ctscroll();
584    jQuery(".arrowpagenav a").on("click", function (a) {
585        a.preventDefault();
586    });
587    var whmin = jQuery(window).outerHeight(true) - 90 + "px";
588    var ssl_total = jQuery("section.scroll_sec").length;
589    jQuery(".sc_total").text("0" + ssl_total);
590    function initcustom_scroll() {
591        jQuery(".custom-scroll-link").on("click", function () {
592            if (location.pathname.replace(/^\//, "") === this.pathname.replace(/^\//, "") || location.hostname === this.hostname) {
593                var b = jQuery(this.hash);
594                b = b.length ? b : jQuery("[name=" + this.hash.slice(1) + "]");
595                if (b.length) {
596                    TweenLite.to(jQuery("html,body"), 2, {
597                        scrollTo: {
598                            y: b.offset().top,
599                            offsetY: 50,
600                            autoKill: false
601                        }
602                    });
603                    return false;
604                }
605            }
606        });
607    }
608    initcustom_scroll();
609    jQuery(".to-top").on("click", function () {
610        TweenLite.to(window, 2, {
611            scrollTo: {
612                y: 0,
613                offsetY: 0,
614                autoKill: false
615            }
616        });
617    });
618    var bgi2 = jQuery(".fbgs").data("bgscr");
619    var bgt2 = jQuery(".fbgs").data("bgtex");
620    jQuery(".bg-scroll").css("background-image", "url(" + bgi2 + ")");
621    jQuery(".bg-title span").html(bgt2);
622    jQuery(".scroll-init ul").singlePageNav({
623        filter: ":not(.external)",
624        updateHash: false,
625        offset: 70,
626        threshold: 120,
627        speed: 1200,
628        currentClass: "actscr-link"
629    });
630    //   Isotope vertical------------------
631    function n() {
632        if (jQuery(".gallery-items").length) {
633            var jQuerygrid = jQuery(".gallery-items").isotope({
634                singleMode: true,
635                columnWidth: ".grid-sizer, .grid-sizer-second, .grid-sizer-three",
636                itemSelector: ".gallery-item, .gallery-item-second, .gallery-item-three",
637                transformsEnabled: true,
638                transitionDuration: "700ms",
639            });
640            jQuerygrid.imagesLoaded(function () {
641                jQuerygrid.isotope("layout");
642            });
643            jQuery(".gallery-filters").on("click", "a.gallery-filter", function (b) {
644                b.preventDefault();
645                var c = jQuery(this).attr("data-filter"),
646                    dt2 = jQuery(this).text();
647                setTimeout(function () {
648                    jQuerygrid.isotope({
649                        filter: c
650                    });
651
652                }, 900);
653
654                if (jQuerygrid > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) jQuery(".filt-text span").text(dt2);
655                else jQuery(".filt-text  span").text(dt2).shuffleLetters({});
656                jQuery(".gallery-filters a").removeClass("gallery-filter-active");
657                jQuery(this).addClass("gallery-filter-active");
658                setTimeout(function () {
659                    TweenLite.to(window, 0.5, {
660                        scrollTo: {
661                            y: jQuery("#port-scroll"),
662                            offsetY: 70,
663                            autoKill: false,
664                        }
665                    });
666                }, 100);
667                if (jQuery(window).width() < 778) {
668                    hideFilters();
669                }
670            });
671            var gat = jQuery(".gallery-filter-active").text();
672        }
673        jQuery(".gallery-items").isotope("on", "layoutComplete", function (a, b) {
674            var b = a.length;
675            jQuery(".num-album span").html(b);
676        });
677        var b2 = jQuery(".gallery-item").length;
678        jQuery(".all-album , .num-album span").html(b2);
679    }
680    n();
681    //   Isotope horizontal------------------
682    function inithorizontalPortfolio() {
683        if (jQuery("#portfolio_horizontal_container").length) {
684            var d = jQuery("#portfolio_horizontal_container");
685            d.imagesLoaded(function () {
686                var f = {
687                    itemSelector: ".portfolio_item",
688                    layoutMode: "packery",
689                    packery: {
690                        isHorizontal: true,
691                        gutter: 0
692                    },
693                    resizable: true,
694                    transformsEnabled: true,
695                    transitionDuration: "700ms"
696                };
697                var g = {
698                    itemSelector: ".portfolio_item",
699                    layoutMode: "packery",
700                    packery: {
701                        isHorizontal: false,
702                        gutter: 0
703                    },
704                    resizable: true,
705                    transformsEnabled: true,
706                    transitionDuration: "700ms"
707                };
708                if (jQuery(window).width() < 778) {
709                    d.isotope(g);
710                    d.isotope("layout");
711                    d.removeAttr('style');
712                    jQuery(".horizontal-grid-wrap").getNiceScroll().remove();
713                } else {
714                    d.isotope(f);
715                    d.isotope("layout");
716                    jQuery(".horizontal-grid-wrap").niceScroll({
717                        cursorwidth: "1px",
718                        cursorborder: "none",
719                        cursorborderradius: "0px",
720                        cursorcolor: "#F9BF26",
721                        autohidemode: false,
722                        touchbehavior: true,
723                        bouncescroll: false,
724                        scrollspeed: 120,
725                        mousescrollstep: 90,
726                        grabcursorenabled: true,
727                        horizrailenabled: true,
728                        preservenativescrolling: true,
729                        cursordragontouch: true,
730                        railpadding: {
731                            right: 0,
732                            bottom: 90
733                        }
734                    });
735                }
736                jQuery(".horizontal-grid-wrap").on("scroll", function () {
737                    var winScroll = jQuery("#portfolio_horizontal_container").width() - jQuery(".horizontal-grid-wrap").width();
738                    var width = jQuery(".horizontal-grid-wrap").scrollLeft();
739                    var scrolled = ((width / winScroll) * 100);
740                    jQuery(".js-progress-bar").css("stroke-dashoffset", 100 - (scrolled));
741                    jQuery(".progress-bar").css({
742                        height: scrolled + "%"
743                    });
744                });
745                jQuery(".gallery-filters").on("click", "a", function (a) {
746                    a.preventDefault();
747                    jQuery(".horizontal-grid-wrap").animate({
748                        scrollLeft: 0
749                    }, 500);
750                    var b = jQuery(this).attr("data-filter"),
751                        dt = jQuery(this).text();
752                    setTimeout(function () {
753                        d.isotope({
754                            filter: b
755                        });
756                    }, 600);
757                    jQuery(".gallery-filters a").removeClass("gallery-filter-active");
758                    jQuery(this).addClass("gallery-filter-active");
759                    if (f > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) jQuery(".filt-text span").text(dt);
760                    else jQuery(".filt-text  span").text(dt).shuffleLetters({});
761                });
762                d.isotope("on", "layoutComplete", function (a, b) {
763                    var b = a.length,
764                        numalb = jQuery(".num-album");
765                    TweenMax.to(numalb, 0.2, {
766                        force3D: true,
767                        y: -10,
768                        opacity: 0,
769                        ease: Power2.easeOut,
770                        onComplete: function () {
771                            TweenMax.to(numalb, 0.1, {
772                                force3D: true,
773                                y: 10
774                            });
775                            numalb.html(b);
776                        }
777                    });
778                    TweenMax.to(numalb, 0.2, {
779                        force3D: true,
780                        y: 0,
781                        delay: 0.3,
782                        opacity: 1,
783                        ease: Power2.easeOut
784                    });
785                });
786                var j = jQuery(".portfolio_item").length;
787                jQuery(".all-album , .num-album").html(j);
788            });
789            var gat = jQuery(".gallery-filter-active").text();
790            jQuery(".filt-text span").text(gat);
791        }
792    }
793    inithorizontalPortfolio();
794    var sfb = jQuery(".show-filter"),
795        ffcons = jQuery(".fixed-filter"),
796        ffcount = jQuery(".filter-holder.fixed-filter .count-folio"),
797        ffga = jQuery(".filter-holder.fixed-filter .gallery-filters a");
798    function showFilters() {
799        sfb.removeClass("unvis-filter");
800        ffcons.addClass("vis-filter");
801        TweenMax.to(ffcount, 0.8, {
802            force3D: true,
803            bottom: 0,
804            delay: 0.3,
805            ease: Expo.easeInOut,
806            onComplete: function () {
807                ffga.each(function (a) {
808                    var boi = jQuery(this);
809                    setTimeout(function () {
810                        TweenMax.to(boi, 0.6, {
811                            force3D: false,
812                            opacity: "1"
813                        });
814                    }, 130 * a);
815                });
816            }
817        });
818    }
819
820    function hideFilters() {
821        sfb.addClass("unvis-filter");
822        ffcons.removeClass("vis-filter");
823        TweenMax.to(ffga, 0.1, {
824            force3D: false,
825            opacity: "0"
826        });
827        TweenMax.to(ffcount, 0.2, {
828            force3D: true,
829            bottom: "-60px",
830
831            ease: Expo.easeInOut
832        });
833    }
834    sfb.on("click", function () {
835        if (jQuery(this).hasClass("unvis-filter")) showFilters();
836        else hideFilters();
837    });
838    var jQuerywindow = jQuery(window);
839    // Styles ------------------
840    function csselem() {
841        jQuery(".fs-slider-item ").css({
842            height: jQuery(".fs-slider").outerHeight(true)
843        });
844        jQuery(".hero-slider-img .swiper-slide").css({
845            height: jQuery(".hero-slider-img").outerHeight(true)
846        });
847        jQuery(".height-emulator").css({
848            height: jQuery(".main-footer").outerHeight(true)
849        });
850        jQuery(".horizontal-grid-wrap").css({
851            height: jQuery(".hor-content_padd").outerHeight(true)
852        });
853        jQuery(".fw-carousel .swiper-container").css({
854            height: jQuery(".fw-carousel").outerHeight(true)
855        });
856        jQuery(" #portfolio_horizontal_container .portfolio_item img  ").css({
857            height: jQuery(".portfolio_item").outerHeight(true)
858        });
859        jQuery(".ms-item_fs").css({
860            height: jQuery(".slideshow-container_wrap").outerHeight(true)
861        });
862        jQuery(".det-carousel .swiper-container").css({
863            height: jQuery(".det-carousel").outerHeight(true)
864        });
865        jQuery(".home-half-slider .fs-slider-item").css({
866            height: jQuery(".home-half-slider").outerHeight(true) - 80 + "px"
867        });
868        jQuery(".fixed-column-wrap").css({
869            height: jQuerywindow.outerHeight(true)
870        });
871        jQuery(".fixed-column-filter").css({
872            height: jQuerywindow.outerHeight(true)
873        });
874    }
875    csselem();
876    jQuerywindow.on("resize", function () {
877        csselem();
878        inithorizontalPortfolio();
879    });
880    //   accordion ------------------
881    jQuery(".accordion a.toggle").on("click", function (a) {
882        a.preventDefault();
883        jQuery(".accordion a.toggle").removeClass("act-accordion");
884        jQuery(this).addClass("act-accordion");
885        if (jQuery(this).next('div.accordion-inner').is(':visible')) {
886            jQuery(this).next('div.accordion-inner').slideUp();
887        } else {
888            jQuery(".accordion a.toggle").next('div.accordion-inner').slideUp();
889            jQuery(this).next('div.accordion-inner').slideToggle();
890        }
891    });
892    function showDetails() {
893        jQuery(".det-overlay").fadeIn(400);
894        TweenMax.to(jQuery(".hid-det-anim"), 0.8, {
895            force3D: true,
896            top: "120px",
897            ease: Expo.easeInOut,
898            onComplete: function () {
899                TweenMax.to(jQuery(".closedet_style"), 0.6, {
900                    force3D: true,
901                    top: "0",
902                    ease: Expo.easeInOut
903                });
904                TweenMax.to(jQuery(".pr-det_anim"), 1.5, {
905                    force3D: true,
906                    ease: Expo.easeInOut,
907                    y: "0",
908                    opacity: 1,
909                    delay: 0.1,
910                    onComplete: function () {
911                        jQuery(".fix-pr-det").addClass("viscur");
912                    }
913                });
914            }
915        });
916        jQuery(".shibtn").removeClass("unvisthum2");
917
918    }
919    function hideDetails() {
920        jQuery(".det-overlay").fadeOut(400);
921        TweenMax.to(jQuery(".hid-det-anim"), 0.8, {
922            force3D: true,
923            top: "100%",
924            ease: Expo.easeInOut,
925            onComplete: function () {
926                TweenMax.to(jQuery(".closedet_style"), 0.1, {
927                    force3D: true,
928                    top: "-60px",
929                    ease: Expo.easeInOut
930                });
931                TweenMax.to(jQuery(".pr-det_anim"), 0.1, {
932                    force3D: true,
933                    y: "100px",
934                    opacity: 0,
935                    ease: Expo.easeInOut
936                });
937            }
938        });
939        jQuery(".fix-pr-det").removeClass("viscur");
940    }
941    jQuery(".pr-det_btn").on("click", function () {
942        showDetails();
943    });
944    jQuery(".act-closedet").on("click", function () {
945        hideDetails();
946    });
947    jQuery(".photo-info-btn").on("click", function () {
948        jQuery(".show-info_act").toggleClass("vis-phot_det");
949
950    });
951    jQuery(".initscroll").niceScroll({
952        cursorwidth: "1px",
953        cursorborder: "none",
954        cursorborderradius: "0px",
955        cursorcolor: "#FAC820",
956        zindex: "2",
957        background: "#e1e1e1",
958        autohidemode: false,
959    });
960    //   canvas------------------
961    jQuery('.hero-decor-let').rotaterator({
962        fadeSpeed: 500,
963        pauseSpeed: 1200
964    });
965    var backgroundAnimation = function () {
966        var width, height, largeHeader, canvas, ctx, points, target, animateHeader = false;
967        initHeader();
968        initAnimation();
969        addListeners();
970        function initHeader() {
971            width = jQuery('.footer-decor').width();
972            height = window.innerHeight;
973            target = {
974                x: width / 2,
975                y: height / 2
976            };
977            canvas = document.getElementById('bg-animation');
978            canvas.width = width;
979            canvas.height = height;
980            ctx = canvas.getContext('2d');
981            points = [];
982            for (var x = 0; x < width; x = x + width / 10) {
983                for (var y = 0; y < height; y = y + height / 10) {
984                    var px = x + Math.random() * width / 10;
985                    var py = y + Math.random() * height / 10;
986                    var p = {
987                        x: px,
988                        originX: px,
989                        y: py,
990                        originY: py
991                    };
992                    points.push(p);
993                }
994            }
995            for (var i = 0; i < points.length; i++) {
996                var closest = [];
997                var p1 = points[i];
998                for (var j = 0; j < points.length; j++) {
999                    var p2 = points[j]
1000                    if (!(p1 == p2)) {
1001                        var placed = false;
1002                        for (var k = 0; k < 5; k++) {
1003                            if (!placed) {
1004                                if (closest[k] == undefined) {
1005                                    closest[k] = p2;
1006                                    placed = true;
1007                                }
1008                            }
1009                        }
1010                        for (var k = 0; k < 5; k++) {
1011                            if (!placed) {
1012                                if (getDistance(p1, p2) < getDistance(p1, closest[k])) {
1013                                    closest[k] = p2;
1014                                    placed = true;
1015                                }
1016                            }
1017                        }
1018                    }
1019                }
1020                p1.closest = closest;
1021            }
1022            for (var i in points) {
1023                var c = new Circle(points[i], 1.5 + Math.random() * 1.5, 'rgba(0,0,0,0.1)');
1024                points[i].circle = c;
1025            }
1026        }
1027        function addListeners() {
1028            if (!('ontouchstart' in window)) {
1029                window.addEventListener('mousemove', mouseMove);
1030            }
1031            window.addEventListener('scroll', scrollCheck);
1032            window.addEventListener('resize', resize);
1033        }
1034        function scrollCheck() {
1035            if (jQuery(document).scrollTop() > height / 2) animateHeader = true;
1036            else animateHeader = false;
1037        }
1038        function resize() {
1039            width = jQuery('.footer-decor').width();
1040            height = window.innerHeight;
1041            canvas.width = width;
1042            canvas.height = height;
1043        }
1044        function initAnimation() {
1045            animate();
1046            for (var i in points) {
1047                shiftPoint(points[i]);
1048            }
1049        }
1050        function animate() {
1051            if (animateHeader) {
1052                ctx.clearRect(0, 0, width, height);
1053                for (var i in points) {
1054                    if (Math.abs(getDistance(target, points[i])) < 2000) {
1055                        points[i].active = 0.2;
1056                        points[i].circle.active = 0.4;
1057                    } else if (Math.abs(getDistance(target, points[i])) < 20000) {
1058                        points[i].active = 0.1;
1059                        points[i].circle.active = 0.3;
1060                    } else if (Math.abs(getDistance(target, points[i])) < 40000) {
1061                        points[i].active = 0.02;
1062                        points[i].circle.active = 0.1;
1063                    } else {
1064                        points[i].active = 0;
1065                        points[i].circle.active = 0;
1066                    }
1067                    drawLines(points[i]);
1068                    points[i].circle.draw();
1069                }
1070            }
1071            requestAnimationFrame(animate);
1072        }
1073        function shiftPoint(p) {
1074            TweenLite.to(p, 1 + 1 * Math.random(), {
1075                x: p.originX - 50 + Math.random() * 100,
1076                y: p.originY - 50 + Math.random() * 100,
1077                ease: Circ.easeInOut,
1078                onComplete: function () {
1079                    shiftPoint(p);
1080                }
1081            });
1082        }
1083        function drawLines(p) {
1084            if (!p.active) return;
1085            for (var i in p.closest) {
1086                ctx.beginPath();
1087                ctx.moveTo(p.x, p.y);
1088                ctx.lineTo(p.closest[i].x, p.closest[i].y);
1089                ctx.strokeStyle = 'rgba(164,164,164,' + p.active + ')';
1090                ctx.stroke();
1091            }
1092        }
1093        function Circle(pos, rad, color) {
1094            var _this = this;
1095            (function () {
1096                _this.pos = pos || null;
1097                _this.radius = rad || null;
1098                _this.color = color || null;
1099            })();
1100            this.draw = function () {
1101                if (!_this.active) return;
1102                ctx.beginPath();
1103                ctx.arc(_this.pos.x, _this.pos.y, _this.radius, 0, 2 * Math.PI, false);
1104                ctx.fillStyle = 'rgba(164,164,164,' + _this.active + ')';
1105                ctx.fill();
1106            };
1107        }
1108        function getDistance(p1, p2) {
1109            return Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2);
1110        }
1111    }
1112    if (jQuery('#bg-animation').length) {
1113        backgroundAnimation();
1114    }
1115    //   cursor ------------------
1116    jQuery(".white-bg").on({
1117        mouseenter: function () {
1118            jQuery(".element-item").addClass("white_blur");
1119        },
1120        mouseleave: function () {
1121            jQuery(".element-item").removeClass("white_blur");
1122        }
1123    });
1124    jQuery(".gallery-item").on({
1125        mouseenter: function () {
1126            jQuery(".element-item").removeClass("white_blur");
1127        },
1128        mouseleave: function () {
1129            jQuery(".element-item").addClass("white_blur");
1130        }
1131    });
1132    jQuery("a , .btn ,   textarea,   input  , .leaflet-control-zoom , .aside-show_cf , .close-contact_form , .closedet_style  , .nav-button , .swiper-pagination-bullet , .to-top-btn  , .gc-slider-cont , .hsc , .ss-slider-cont , .fw_scb , .hsc_pp2 , .hsc_pp").on({
1133        mouseenter: function () {
1134            jQuery(".element-item").addClass("elem_hover");
1135        },
1136        mouseleave: function () {
1137            jQuery(".element-item").removeClass("elem_hover");
1138        }
1139    });
1140    jQuery("  .swiper-slide ,  #portfolio_horizontal_container").on({
1141        mouseenter: function () {
1142            jQuery(".element-item").addClass("slider_hover");
1143        },
1144        mouseleave: function () {
1145            jQuery(".element-item").removeClass("slider_hover");
1146        }
1147    });
1148    jQuery(".swiper-slide a , .next-project-swiper-link , #portfolio_horizontal_container a").on({
1149        mouseenter: function () {
1150            jQuery(".element-item").removeClass("slider_hover");
1151        },
1152        mouseleave: function () {
1153            jQuery(".element-item").addClass("slider_hover");
1154        }
1155    });
1156    jQuery(".next-project-swiper-link").on({
1157        mouseenter: function () {
1158            jQuery(".element-item").addClass("slider_linknext");
1159        },
1160        mouseleave: function () {
1161            jQuery(".element-item").removeClass("slider_linknext");
1162        }
1163    });
1164    jQuery(".nav-overlay , .det-overlay").on({
1165        mouseenter: function () {
1166            jQuery(".element-item").addClass("close-icon");
1167        },
1168        mouseleave: function () {
1169            jQuery(".element-item").removeClass("close-icon");
1170        }
1171    });
1172    //  Map------------------
1173    if (jQuery("#map-single").length > 0) {
1174        var latlog = jQuery('#map-single').data('latlog'),
1175            popupTextit = jQuery('#map-single').data('popuptext'),
1176            map = L.map('map-single', {
1177                scrollWheelZoom: false
1178            }).setView(latlog, 11);
1179        L.tileLayer('//{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png').addTo(map);
1180        var greenIcon = L.icon({
1181            iconUrl: jQuery('#map-single').data('icon'),
1182            iconSize: [40, 40],
1183            popupAnchor: [0, -26]
1184        });
1185        L.marker(latlog, {
1186            icon: greenIcon
1187        }).addTo(map).bindPopup(popupTextit);
1188    }
1189     //   Video------------------	
1190    if (jQuery(".video-holder-wrap").length > 0) {
1191        function videoint() {
1192            var v = jQuery(".background-youtube-wrapper").data("vid");
1193            var f = jQuery(".background-youtube-wrapper").data("mv");
1194            jQuery(".background-youtube-wrapper").YTPlayer({
1195                fitToBackground: true,
1196                videoId: v,
1197                pauseOnScroll: false,
1198                mute: f,
1199                callback: function () {
1200                    var a = jQuery(".background-youtube-wrapper").data("ytPlayer").player;
1201                }
1202            });
1203            var w = jQuery(".background-vimeo").data("vim"),
1204                bvc = jQuery(".background-vimeo"),
1205                bvmc = jQuery(".media-container"),
1206                bvfc = jQuery(".background-vimeo iframe "),
1207                vch = jQuery(".video-container");
1208            bvc.append('<iframe src="//player.vimeo.com/video/' + w + '?background=1"  frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe>');
1209            jQuery(".video-holder").height(bvmc.height());
1210            if (jQuery(window).width() > 1024) {
1211                if (jQuery(".video-holder").length > 0)
1212                    if (bvmc.height() / 9 * 16 > bvmc.width()) {
1213                        bvfc.height(bvmc.height()).width(bvmc.height() / 9 * 16);
1214                        bvfc.css({
1215                            "margin-left": -1 * jQuery("iframe").width() / 2 + "px",
1216                            top: "-75px",
1217                            "margin-top": "0px"
1218                        });
1219                    } else {
1220                        bvfc.width(jQuery(window).width()).height(jQuery(window).width() / 16 * 9);
1221                        bvfc.css({
1222                            "margin-left": -1 * jQuery("iframe").width() / 2 + "px",
1223                            "margin-top": -1 * jQuery("iframe").height() / 2 + "px",
1224                            top: "50%"
1225                        });
1226                    }
1227            } else if (jQuery(window).width() < 760) {
1228                jQuery(".video-holder").height(bvmc.height());
1229                bvfc.height(bvmc.height());
1230            } else {
1231                jQuery(".video-holder").height(bvmc.height());
1232                bvfc.height(bvmc.height());
1233            }
1234            vch.css("width", jQuery(window).width() + "px");
1235            vch.css("height", Number(720 / 1280 * jQuery(window).width()) + "px");
1236            if (vch.height() < jQuery(window).height()) {
1237                vch.css("height", jQuery(window).height() + "px");
1238                vch.css("width", Number(1280 / 720 * jQuery(window).height()) + "px");
1239            }
1240        }
1241        videoint();
1242    }
1243    //   Blog filter ------------------
1244    jQuery(".blog-btn").on("click", function () {
1245        jQuery(this).parent(".blog-btn-filter").find("ul").slideToggle(500);
1246        return false;
1247    });
1248    //   mobile filter ------------------
1249    jQuery(".act-filter , .show-filter2").on("click", function () {
1250        jQuery(".init_hidden_filter").slideToggle(300);
1251        return false;
1252    });
1253    jQuery(".gallery-filters a").on("click", function () {
1254        if (jQuery(window).width() < 565) {
1255            jQuery(".init_hidden_filter").delay(600).slideUp(300);
1256        }
1257    });
1258    //  menu------------------			
1259    jQuery("#menu").menu();
1260    jQuery(".sliding-menu li a.nav").parent("li").addClass("submen-dec");
1261    jQuery(".nav-scroll-bar-wrap").niceScroll({
1262        cursorwidth: "0px",
1263        cursorborder: "none",
1264        cursorborderradius: "0px",
1265    });
1266    var nbw = jQuery(".nav-button"),
1267        nhw = jQuery(".nav-holder"),
1268        nho = jQuery(".nav-overlay"),
1269        nhd = jQuery(".nav-holder-dec");
1270
1271    function showMenu() {
1272        nho.fadeIn(500);
1273        TweenMax.to(nhd, 1.2, {
1274            force3D: true,
1275            left: "0",
1276            ease: Expo.easeInOut
1277        });
1278        TweenMax.to(nhw, 1.2, {
1279            force3D: true,
1280            left: "0",
1281            delay: 0.2,
1282            ease: Expo.easeInOut
1283        });
1284        nhw.removeClass("but-hol");
1285        nbw.addClass("cmenu");
1286        setTimeout(function () {
1287            jQuery(".ar-text-ani .nav-title span").shuffleLetters({});
1288        }, 950);
1289    }
1290
1291    function hideMenu() {
1292        TweenMax.to(nhw, 1.2, {
1293            force3D: true,
1294            left: "-600px",
1295            ease: Expo.easeInOut
1296        });
1297        TweenMax.to(nhd, 1.2, {
1298            force3D: true,
1299            left: "-600px",
1300            delay: 0.2,
1301            ease: Expo.easeInOut
1302        });
1303        nhw.addClass("but-hol");
1304        nbw.removeClass("cmenu");
1305        nho.fadeOut(500);
1306    }
1307    nbw.on("click", function () {
1308        if (nhw.hasClass("but-hol")) showMenu();
1309        else hideMenu();
1310    });
1311    nho.on("click", function () {
1312        hideMenu();
1313    });
1314    // Share   ------------------
1315    jQuery(".share-container").share({
1316        networks: ['facebook', 'pinterest', 'twitter', 'linkedin', 'tumblr']
1317    });
1318    var shrcn = jQuery(".share-container"),
1319        swra = jQuery(".share-wrapper"),
1320        clsh = jQuery(".close-share-btn"),
1321        shic = jQuery(".share-icon"),
1322        ssbtn = jQuery(".showshare");
1323    function showShare() {
1324        ssbtn.addClass("uncl-share");
1325        shrcn.removeClass("isShare");
1326        TweenMax.to(swra, 0.9, {
1327            force3D: false,
1328            width: "320px",
1329            ease: Expo.easeInOut,
1330            onComplete: function () {
1331                TweenMax.to(clsh, 0.4, {
1332                    force3D: true,
1333                    top: "0",
1334                    opacity: "1"
1335                });
1336                shic.each(function (a) {
1337                    var boi = jQuery(this);
1338                    setTimeout(function () {
1339                        TweenMax.to(boi, 1.0, {
1340                            force3D: false,
1341                            opacity: "1"
1342                        });
1343                    }, 130 * a);
1344                });
1345            }
1346        });
1347    }
1348    function hideShare() {
1349        ssbtn.removeClass("uncl-share");
1350        shrcn.addClass("isShare");
1351        TweenMax.to(jQuery(".share-icon"), 1.0, {
1352            force3D: false,
1353            opacity: "0"
1354        });
1355        TweenMax.to(clsh, 0.4, {
1356            force3D: true,
1357            top: "-60px",
1358            opacity: "0",
1359            onComplete: function () {
1360                TweenMax.to(swra, 0.6, {
1361                    force3D: false,
1362                    delay: 0.2,
1363                    width: "0",
1364                    ease: Expo.easeInOut
1365                });
1366            }
1367        });
1368    }
1369    clsh.on("click", function () {
1370        hideShare();
1371    });
1372    ssbtn.on("click", function () {
1373        if (jQuery(".share-container").hasClass("isShare")) showShare();
1374        else hideShare();
1375    });
1376    
1377	//   Contact form------------------
1378    var coninw = jQuery(".contact-form-content"),
1379        coninbtn = jQuery(".contact-form-btn");
1380    function showConInfo() {
1381        jQuery(".contact-form-wrap").fadeIn(100);
1382        coninw.addClass("vis-coninfwrap");
1383        coninbtn.removeClass("isconin-btn_vis");
1384    }
1385    function hideConInfo() {
1386        coninw.removeClass("vis-coninfwrap");
1387        coninbtn.addClass("isconin-btn_vis");
1388        jQuery(".contact-form-wrap").fadeOut(100);
1389    }
1390    coninbtn.on("click", function () {
1391        if (jQuery(this).hasClass("isconin-btn_vis")) showConInfo();
1392        else hideConInfo();
1393    });
1394    jQuery(".act-cf").on("click", function () {
1395        showConInfo();
1396    });
1397        jQuery("#contactform").submit(function () {
1398            var a = jQuery(this).attr("action");
1399            jQuery("#message").slideUp(750, function () {
1400                jQuery("#message").hide();
1401                jQuery("#submit").attr("disabled", "disabled");
1402                jQuery.post(a, {
1403                    name: jQuery("#name").val(),
1404                    email: jQuery("#email").val(),
1405                    phone: jQuery("#phone").val(),
1406                    subject: jQuery('#subject').val(),
1407                    comments: jQuery("#comments").val()
1408                }, function (a) {
1409                    document.getElementById("message").innerHTML = a;
1410                    jQuery("#message").slideDown("slow");
1411                    jQuery("#submit").removeAttr("disabled");
1412                    if (null != a.match("success")) jQuery("#contactform").slideDown("slow");
1413                });
1414            });
1415            return false;
1416        });
1417        jQuery("#contactform input, #contactform textarea").keyup(function () {
1418            jQuery("#message").slideUp(300);
1419        });
1420    jQuery(".close-cf , .contact-form-overlay").on("click", function (e) {
1421        e.preventDefault();
1422        hideConInfo();
1423        jQuery("#message").slideUp(200);
1424        jQuery(".custom-form").find("input[type=text], textarea").val("");
1425    });
1426    jQuery.fn.duplicate = function (a, b) {
1427        var c = [];
1428        for (var d = 0; d < a; d++) jQuery.merge(c, this.clone(b).get());
1429        return this.pushStack(c);
1430    };
1431    var jQueryone = jQuery(".mm-parallax"),
1432        browserPrefix = "",
1433        usrAg = navigator.userAgent;
1434    if (usrAg.indexOf("Chrome") > -1 || usrAg.indexOf("Safari") > -1) browserPrefix = "-webkit-";
1435    else if (usrAg.indexOf("Opera") > -1) browserPrefix = "-o";
1436    else if (usrAg.indexOf("Firefox") > -1) browserPrefix = "-moz-";
1437    else if (usrAg.indexOf("MSIE") > -1) browserPrefix = "-ms-";
1438    jQuery(".impulse-container").mousemove(function (a) {
1439        var b = Math.ceil(window.innerWidth / 1.5),
1440            c = Math.ceil(window.innerHeight / 1.5),
1441            d = a.pageX - b,
1442            e = a.pageY - c,
1443            f = e / c,
1444            g = -(d / b),
1445            h = Math.sqrt(Math.pow(f, 2) + Math.pow(g, 2)),
1446            i = 10 * h;
1447        jQueryone.css(browserPrefix + "transform", "rotate3d(" + f + ", " + g + ", 0, " + i + "deg)");
1448    });
1449    //   mailchimp------------------
1450    jQuery("#subscribe").ajaxChimp({
1451        language: "eng",
1452        url: "https://gmail.us1.list-manage.com/subscribe/post?u=1fe818378d5c129b210719d80&amp;id=a2792f681b"
1453    });
1454    jQuery.ajaxChimp.translations.eng = {
1455        submit: "Submitting...",
1456        0: '<i class="fal fa-check"></i> We will be in touch soon!',
1457        1: '<i class="fal fa-exclamation-circle"></i> You must enter a valid e-mail address.',
1458        2: '<i class="fal fa-exclamation-circle"></i> E-mail address is not valid.',
1459        3: '<i class="fal fa-exclamation-circle"></i> E-mail address is not valid.',
1460        4: '<i class="fal fa-exclamation-circle"></i> E-mail address is not valid.',
1461        5: '<i class="fal fa-exclamation-circle"></i>
1461 E-mail address is not valid.'
1462    };
1463}
1464//   load animation------------------
1465jQuery.fn.duplicate = function (a, b) {
1466    var c = [];
1467    for (var d = 0; d < a; d++) jQuery.merge(c, this.clone(b).get());
1468    return this.pushStack(c);
1469};
1470jQuery("<div class='page-load'><span class='pl-spinner'></span></div>").appendTo("#main");
1471jQuery("<div class='pl-row'><span class='pl-row-anim'></span><span class='pl-row-anim2'></span></div>").duplicate(4).appendTo(".page-load");
1472function contentAnimShow() {
1473    jQuery(".lg-backdrop , .lg-outer").remove();
1474    jQuery(".nav-button").removeClass("cmenu");
1475    jQuery(".showshare").removeClass("uncl-share");
1476    jQuery(".page-load").fadeIn(1);
1477    jQuery(".pl-row-anim2").each(function (index, element) {
1478        var tl = new TimelineLite();
1479        tl.to(element, 0.6, {
1480            force3D: true,
1481            bottom: "0",
1482            ease: Expo.easeInOut
1483        }, index * 0.1)
1484    });
1485    jQuery(".pl-row-anim").each(function (index, element) {
1486        var tl = new TimelineLite();
1487        tl.to(element, 0.8, {
1488            force3D: true,
1489            bottom: "0",
1490            ease: Expo.easeInOut
1491        }, index * 0.1)
1492    });
1493
1494    setTimeout(function () {
1495        jQuery("html, body").animate({
1496            scrollTop: 0
1497        }, {
1498            queue: true,
1499            duration: 10,
1500        });
1501    }, 1000);
1502}
1503
1504function contentAnimHide() {
1505    var chdpt = jQuery(".content").data("pagetitle");
1506    jQuery(".ar-text-ani .page-subtitle span").text(chdpt).shuffleLetters({
1507        step: 14,
1508        fps: 25
1509    });
1510    jQuery(".pl-spinner").addClass("act-loader");
1511    setTimeout(function () {
1512        jQuery(".pl-spinner").removeClass("act-loader");
1513        jQuery(".page-load").removeClass("act_pl");
1514        jQuery(".pl-row-anim").each(function (index, element) {
1515            var tl = new TimelineLite();
1516            tl.to(element, 0.6, {
1517                force3D: true,
1518                top: "100%",
1519                ease: Expo.easeInOut
1520            }, index * 0.1)
1521        });
1522        jQuery(".pl-row-anim2").each(function (index, element) {
1523            var tl = new TimelineLite();
1524            tl.to(element, 0.8, {
1525                force3D: true,
1526                top: "100%",
1527                ease: Expo.easeInOut
1528            }, index * 0.1)
1529        });
1530        setTimeout(function () {
1531            jQuery(".page-load").fadeOut(1);
1532            TweenMax.to(jQuery(".pl-row-anim , .pl-row-anim2"), 0.0, {
1533                force3D: true,
1534                bottom: "100%",
1535                top: "0"
1536            });
1537
1538        }, 1200);
1539    }, 1300);
1540}
1541// init  Video ------------------
1542function initvideo() {
1543    var a = {
1544        Android: function () {
1545            return navigator.userAgent.match(/Android/i);
1546        },
1547        BlackBerry: function () {
1548            return navigator.userAgent.match(/BlackBerry/i);
1549        },
1550        iOS: function () {
1551            return navigator.userAgent.match(/iPhone|iPad|iPod/i);
1552        },
1553        Opera: function () {
1554            return navigator.userAgent.match(/Opera Mini/i);
1555        },
1556        Windows: function () {
1557            return navigator.userAgent.match(/IEMobile/i);
1558        },
1559        any: function () {
1560            return a.Android() || a.BlackBerry() || a.iOS() || a.Opera() || a.Windows();
1561        }
1562    };
1563    trueMobile = a.any();
1564    if (trueMobile) jQuery("  .background-vimeo , .background-youtube-wrapper ").remove();
1565}
1566// progressBar ------------------
1567var jQuerywindow = jQuery(window);
1568jQuerywindow.on("scroll", function (a) {
1569    var a = jQuery(document).height();
1570    var b = jQuery(window).height();
1571    var c = jQuery(window).scrollTop();
1572    var d = c / (a - b) * 100;
1573    jQuery(".progress-bar").css({
1574        height: d + "%"
1575    });
1576});
1577if (jQuery(".element-item").length > 0) {
1578    var mouse = {
1579        x: 0,
1580        y: 0
1581    };
1582    var pos = {
1583        x: 0,
1584        y: 0
1585    };
1586    var ratio = 0.15;
1587    var active = false;
1588    var ball = document.querySelector('.element-item');
1589    TweenLite.set(ball, {
1590        xPercent: -50,
1591        yPercent: -50
1592    });
1593    document.addEventListener("mousemove", mouseMove);
1594
1595    function mouseMove(e) {
1596        var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
1597        mouse.x = e.pageX;
1598        mouse.y = e.pageY - scrollTop;
1599    }
1600    TweenMax.ticker.addEventListener("tick", updatePosition);
1601
1602    function updatePosition() {
1603        if (!active) {
1604            pos.x += (mouse.x - pos.x) * ratio;
1605            pos.y += (mouse.y - pos.y) * ratio;
1606            TweenMax.set(ball, {
1607                x: pos.x,
1608                y: pos.y
1609            });
1610        }
1611    }
1612}
1613jQuery("<span class='folio-btn-dot'></span>").duplicate(4).appendTo(".folio-btn-item");
1614//   Init Ajax------------------
1615jQuery(function () {
1616    jQuery.coretemp({
1617        reloadbox: "#wrapper",
1618        outDuration: 700,
1619        inDuration: 200
1620    });
1621    readyFunctions();
1622    jQuery(document).on({
1623        ksctbCallback: function () {
1624            readyFunctions();
1625        }
1626    });
1627});
1628function initajaxload () {
1629}
1630function inittitlereplace () {
1631}
1632function initmenuajaxdisable () {
1633	jQuery(".menu-item-has-children > a").each(function(i){
1634	jQuery(this).removeClass('ajax');
1635	})
1636	jQuery(".menu-item-type-custom > a").each(function(i){
1637	jQuery(this).removeClass('ajax');
1638	})
1639}
1640function initmenueffecton () {
1641}
1642function initmenueffectoff () {
1643}
1644//   Init All Functions------------------
1645function readyFunctions() {
1646    initvideo();
1647    initArchimak();
1648	initajaxload ();
1649	inittitlereplace ();
1650	initmenuajaxdisable ();
1651	initmenueffecton ();
1652	initmenueffectoff ();
1653}

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.