PageSourceSearch

https://www.carbo.de/themes/custom/mksuite/js/all.js?v=1.x

js carbo.de collected 2026-10-09 04:27:58 UTC 37,635 bytes, 1,165 lines download raw bytes

1(function () {
2
3  var $ = jQuery;
4    
5    /* ---------------------------------------------
6     Scripts initialization
7     --------------------------------------------- */
8    
9    $(window).on('load', function(){
10        // Page loader
11        
12        $("body").imagesLoaded(function(){
13        $(".page-loader div").fadeOut();
14        $(".page-loader").delay(200).fadeOut("slow");
15
16        init_scroll_navigate();
17		init_carbo_scrollnavigation();
18        
19        $(window).trigger("scroll");
20        $(window).trigger("resize");
21        
22        // Hash menu forwarding
23        if (window.location.hash){
24            var hash_offset = $(window.location.hash).offset().top;
25            $("html, body").animate({
26                scrollTop: hash_offset
27            });
28        }
29
30      });
31        
32    });
33
34    Drupal.behaviors.rhythm_init = {
35      attach: function (context, settings) {
36
37        $(window).trigger("resize");            
38        init_classic_menu();
39        init_fullscreen_menu();
40
41      }
42    };
43    
44    $(document).ready(function() {
45      $(window).trigger("resize");            
46      init_classic_menu();
47      init_fullscreen_menu();
48      init_side_panel();
49      init_lightbox();
50      init_parallax();
51      init_shortcodes();
52      init_tooltips();
53      init_counters();
54      init_team();
55      initPageSliders();
56      initWorkFilter();
57      init_map();
58      init_wow();
59      init_masonry();      
60    });
61
62
63    $(window).resize(function(){
64        
65        init_classic_menu_resize();
66        init_side_panel_resize()
67        js_height_init();
68        
69    });
70    
71    
72    /* --------------------------------------------
73     Platform detect
74     --------------------------------------------- */
75    var mobileTest;
76    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
77        mobileTest = true;
78        $("html").addClass("mobile");
79    }
80    else {
81        mobileTest = false;
82        $("html").addClass("no-mobile");
83    }
84    
85    var mozillaTest;
86    if (/mozilla/.test(navigator.userAgent)) {
87        mozillaTest = true;
88    }
89    else {
90        mozillaTest = false;
91    }
92    var safariTest;
93    if (/safari/.test(navigator.userAgent)) {
94        safariTest = true;
95    }
96    else {
97        safariTest = false;
98    }
99    
100    // Detect touch devices    
101    if (!("ontouchstart" in document.documentElement)) {
102        document.documentElement.className += " no-touch";
103    }
104    
105    
106    /* ---------------------------------------------
107     Sections helpers
108     --------------------------------------------- */
109    
110    // Sections backgrounds
111    
112    var pageSection = $(".home-section, .page-section, .small-section, .split-section");
113    pageSection.each(function(indx){
114        
115        if ($(this).attr("data-background")){
116            $(this).css("background-image", "url(" + $(this).data("background") + ")");
117        }
118    });
119    
120    // Function for block height 100%
121    function height_line(height_object, height_donor){
122        height_object.height(height_donor.height());
123        height_object.css({
124            "line-height": height_donor.height() + "px"
125        });
126    }
127    
128    // Function equal height
129    !function(a){
130        a.fn.equalHeights = function(){
131            var b = 0, c = a(this);
132            return c.each(function(){
133                var c = a(this).innerHeight();
134                c > b && (b = c)
135            }), c.css("height", b)
136        }, a("[data-equal]").each(function(){
137            var b = a(this), c = b.data("equal");
138            b.find(c).equalHeights()
139        })
140    }(jQuery);
141    
142    
143    // Progress bars
144    var progressBar = $(".progress-bar");
145    progressBar.each(function(indx){
146        $(this).css("width", $(this).attr("aria-valuenow") + "%");
147    });
148    
149    
150
151    /* ---------------------------------------------
152     Nav panel classic
153     --------------------------------------------- */
154    
155    var mobile_nav = $(".mobile-nav");
156    var desktop_nav = $(".desktop-nav");
157    
158    function init_classic_menu_resize(){
159        var desktop_nav = $(".desktop-nav");
160        // Mobile menu max height
161        $(".mobile-on .desktop-nav > ul").css("max-height", $(window).height() - $(".main-nav").height() - 20 + "px");
162        
163        // Mobile menu style toggle
164        if ($(window).width() <= 1024) {
165            $(".main-nav").addClass("mobile-on");
166        }
167        else 
168            if ($(window).width() > 1024) {
169                $(".main-nav").removeClass("mobile-on");
170                desktop_nav.show();
171            }
172    }
173    
174    function init_classic_menu(){
175      
176        if ($(".mobile-nav").hasClass("rendered")){
177          return;
178        }
179        var mobile_nav = $(".mobile-nav").addClass('rendered');
180        var desktop_nav = $(".desktop-nav").addClass('rendered');
181        // Navbar sticky
182        
183        $(".js-stick").sticky({
184            topSpacing: 0
185        });
186        
187        
188        height_line($(".inner-nav > ul > li > a"), $(".main-nav"));
189        height_line(mobile_nav, $(".main-nav"));
190        
191        mobile_nav.css({
192            "width": $(".main-nav").height() + "px"
193        });
194        
195        // Transpaner menu
196        
197        if ($(".main-nav").hasClass("transparent")){
198           $(".main-nav").addClass("js-transparent"); 
199        }
200        
201        $(window).scroll(function(){        
202            
203                if ($(window).scrollTop() > 10) {
204                    $(".Sticky").removeClass("transparent");
205                    $(".main-nav, .nav-logo-wrap .logo, .mobile-nav").addClass("small-height");
206                }
207                else {
208                    $(".Sticky").addClass("transparent");
209                    $(".main-nav, .nav-logo-wrap .logo, .mobile-nav").removeClass("small-height");
210                }
211            
212            
213        });
214        
215        // Mobile menu toggle
216        
217        mobile_nav.click(function(){
218        
219            if (desktop_nav.hasClass("js-opened")) {
220                desktop_nav.slideUp("slow", "easeOutExpo").removeClass("js-opened");
221                $(this).removeClass("active");
222            }
223            else {
224                desktop_nav.slideDown("slow", "easeOutQuart").addClass("js-opened");
225                $(this).addClass("active");
226                
227                // Fix for responsive menu
228                if ($(".main-nav").hasClass("not-top")){
229                    $(window).scrollTo(".main-nav", "slow"); 
230                }
231                
232            }
233            
234        });
235        
236        desktop_nav.find("a:not(.mn-has-sub)").click(function(){
237            if (mobile_nav.hasClass("active")) {
238                desktop_nav.slideUp("slow", "easeOutExpo").removeClass("js-opened");
239                mobile_nav.removeClass("active");
240            }
241        });
242        
243        
244        // Sub menu
245        
246        var mnHasSub = $(".mn-has-sub");
247        var mnThisLi;
248        
249        $(".mobile-on .mn-has-sub").find(".fa:first").removeClass("fa-angle-right").addClass("fa-angle-down");
250        
251        mnHasSub.click(function(){
252        
253            if ($(".main-nav").hasClass("mobile-on")) {
254                mnThisLi = $(this).parent("li:first");
255                if (mnThisLi.hasClass("js-opened")) {
256                    mnThisLi.find(".mn-sub:first").slideUp(function(){
257                        mnThisLi.removeClass("js-opened");
258                        mnThisLi.find(".mn-has-sub").find(".fa:first").removeClass("fa-angle-up").addClass("fa-angle-down");
259                    });
260                }
261                else {
262                    $(this).find(".fa:first").removeClass("fa-angle-down").addClass("fa-angle-up");
263                    mnThisLi.addClass("js-opened");
264                    mnThisLi.find(".mn-sub:first").slideDown();
265                }
266                
267                return false;
268            }
269            else {
270                
271            }
272            
273        });
274        
275        mnThisLi = mnHasSub.parent("li");
276        mnThisLi.hover(function(){
277        
278            if (!($(".main-nav").hasClass("mobile-on"))) {
279            
280                $(this).find(".mn-sub:first").stop(true, true).fadeIn("fast");
281            }
282            
283        }, function(){
284        
285            if (!($(".main-nav").hasClass("mobile-on"))) {
286            
287                $(this).find(".mn-sub:first").stop(true, true).delay(100).fadeOut("fast");
288            }
289            
290        });
291        
292    }
293    
294    
295    
296    /* ---------------------------------------------
297     Scroll navigation
298     --------------------------------------------- */
299    
300    function init_scroll_navigate(){
301        
302        $(".local-scroll").localScroll({
303            target: "body",
304            duration: 1500,
305            offset: 0,
306            easing: "easeInOutExpo"
307        });
308        
309        var sections = $(".home-section, .split-section, .page-section");
310        var menu_links = $(".scroll-nav li a");
311        
312        $(window).scroll(function(){
313        
314            sections.filter(":in-viewport:first").each(function(){
315                var active_section = $(this);
316                var active_link = $('.scroll-nav li a[href="#' + active_section.attr("id") + '"]');
317                menu_links.removeClass("active");
318                active_link.addClass("active");
319            });
320            
321        });
322        
323    }
324	
325	/* ---------------------------------------------
326     Scroll navigation: CARBO
327     --------------------------------------------- */
328	
329	function init_carbo_scrollnavigation(){
330        
331        $(".navbar-collapse").localScroll({
332            target: "body",
333            duration: 1500,
334            offset: 0,
335            easing: "easeInOutExpo"
336        });
337        
338        var sections = $(".home-section, .split-section, .page-section");
339        var menu_links = $(".navbar-collapse li a");
340        
341        $(window).scroll(function(){
342        
343            sections.filter(":in-viewport:first").each(function(){
344                var active_section = $(this);
345                var active_link = $('.navbar-collapse li a[href="#' + active_section.attr("id") + '"]');
346                menu_links.removeClass("active");
347                active_link.addClass("active");
348            });
349            
350        });
351        
352    }
353    
354    
355    
356    /* ---------------------------------------------
357     Lightboxes
358     --------------------------------------------- */
359    
360    function init_lightbox(){
361    
362        // Works Item Lightbox				
363        $(".work-lightbox-link").magnificPopup({
364            gallery: {
365                enabled: true
366            },
367            mainClass: "mfp-fade"
368        });
369        
370        // Works Item Lightbox	
371        $(".lightbox-gallery-1").magnificPopup({
372            gallery: {
373                enabled: true
374            }
375        });
376        
377        // Other Custom Lightbox
378        $(".lightbox-gallery-2").magnificPopup({
379            gallery: {
380                enabled: true
381            }
382        });
383        $(".lightbox").magnificPopup();
384        
385    }
386    
387    
388    
389    /* -------------------------------------------
390     Parallax
391     --------------------------------------------- */
392    
393    function init_parallax(){
394    
395        // Parallax        
396        if (($(window).width() >= 1024) && (mobileTest == false)) {
397            $(".parallax-1").parallax("50%", 0.1);
398            $(".parallax-2").parallax("50%", 0.2);
399            $(".parallax-3").parallax("50%", 0.3);
400            $(".parallax-4").parallax("50%", 0.4);
401            $(".parallax-5").parallax("50%", 0.5);
402            $(".parallax-6").parallax("50%", 0.6);
403            $(".parallax-7").parallax("50%", 0.7);
404            $(".parallax-8").parallax("50%", 0.5);
405            $(".parallax-9").parallax("50%", 0.5);
406            $(".parallax-10").parallax("50%", 0.5);
407            $(".parallax-11").parallax("50%", 0.05);
408        }
409        
410    }
411    
412    
413    
414    /* ---------------------------------------------
415     Shortcodes
416     --------------------------------------------- */
417    // Tabs minimal	
418    function init_shortcodes(){
419    
420        var tpl_tab_height;
421        $(".tpl-minimal-tabs > li > a").click(function(e){
422        
423            if (!($(this).parent("li").hasClass("active"))) {
424                tpl_tab_height = $(".tpl-minimal-tabs-cont > .tab-pane").filter($(this).attr("href")).height();
425                $(".tpl-minimal-tabs-cont").animate({
426                    height: tpl_tab_height
427                }, function(){
428                    $(".tpl-minimal-tabs-cont").css("height", "auto");
429                });
430                
431            }
432        });
433
434 /*       $('.nav-tabs.tpl-alt-tabs li a').click(function(e){
435          e.preventDefault();
436          e.stopImmediatePropagation();
437          $(this).tab('show');
438          $(this).closest('.nav').next('.tab-content').find('.tab-pane').hide();
439          $(this).closest('.nav').next('.tab-content').find($(this).attr('href')).show().removeClass('fade');
440          return false;
441        });
442*/
443        // Accordion
444        var allPanels = $(".accordion > dd").hide();
445        allPanels.first().slideDown("easeOutExpo");
446        $(".accordion > dt > a").first().addClass("active");
447        
448        $(".accordion > dt > a").click(function(){
449        
450            var current = $(this).parent().next("dd");
451            $(".accordion > dt > a").removeClass("active");
452            $(this).addClass("active");
453            allPanels.not(current).slideUp("easeInExpo");
454            $(this).parent().next().slideDown("easeOutExpo");
455            
456            return false;
457            
458        });
459        
460        // Toggle
461        var allToggles = $(".toggle > dd").hide();
462        
463        $(".toggle > dt > a").click(function(){
464        
465            if ($(this).hasClass("active")) {
466            
467                $(this).parent().next().slideUp("easeOutExpo");
468                $(this).removeClass("active");
469                
470            }
471            else {
472                var current = $(this).parent().next("dd");
473                $(this).addClass("active");
474                $(this).parent().next().slideDown("easeOutExpo");
475            }
476            
477            return false;
478        });
479        
480        // Responsive video
481        $(".video, .resp-media, .blog-media").fitVids();
482        $(".work-full-media").fitVids(); 
483               
484    }
485    
486    
487    
488    /* ---------------------------------------------
489     Tooltips (bootstrap plugin activated)
490     --------------------------------------------- */
491    
492    function init_tooltips(){
493    
494        $(".tooltip-bot, .tooltip-bot a, .nav-social-links a").tooltip({
495            placement: "bottom"
496        });
497        
498        $(".tooltip-top, .tooltip-top a").tooltip({
499            placement: "top"
500        });
501        
502    }
503    
504    
505    
506    /* ---------------------------------------------
507     Some facts section
508     --------------------------------------------- */
509    
510     function init_counters(){
511        $(".count-number").appear(function(){
512            var count = $(this);
513            count.countTo({
514                from: 0,
515                to: count.html(),
516                speed: 1300,
517                refreshInterval: 60,
518            });
519            
520        });
521    }
522    
523    
524    
525    
526    /* ---------------------------------------------
527     Team
528     --------------------------------------------- */   
529     
530    function init_team(){
531    
532        // Hover        
533        $(".team-item").click(function(){
534            if ($("html").hasClass("mobile")) {
535                $(this).toggleClass("js-active");
536            }
537        });
538        
539    }
540
541/* ---------------------------------------------
542 Sliders
543 --------------------------------------------- */
544function initPageSliders(){
545    (function($){
546        "use strict";
547        
548        $(".fullwidth-slider").each(function() {
549          var autoplay = $(this).closest('.slider-wrapper').data('autoplay')
550          // Fullwidth slider
551          $(this).owlCarousel({
552              autoPlay: autoplay ? autoplay : false,
553              slideSpeed: 350,
554              singleItem: true,
555              autoHeight: true,
556              navigation: true,
557              navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
558          });              
559        });
560
561        $(".fullwidth-slider-fade").each(function() {
562          var autoplay = $(this).closest('.slider-wrapper').data('autoplay')
563          // Fullwidth slider
564          $(this).owlCarousel({
565              autoPlay: autoplay ? autoplay : false,
566              transitionStyle: "fadeUp",
567              slideSpeed: 350,
568              singleItem: true,
569              autoHeight: true,
570              navigation: true,
571              navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
572          });
573        });
574        
575        $(".fullwidth-gallery").each(function() {
576          var autoplay = $(this).closest('.slider-wrapper').data('autoplay')
577          // Fullwidth gallery
578          $(this).owlCarousel({
579              autoPlay: autoplay ? autoplay : 5000,
580              transitionStyle: "fade",
581              slideSpeed: 700,
582              singleItem: true,
583              autoHeight: true,
584              navigation: false,
585              pagination: false
586          });
587        });
588        
589        $(".item-carousel").each(function() {
590          var autoplay = $(this).closest('.slider-wrapper').data('autoplay')
591          // Item carousel
592          $(this).owlCarousel({
593              autoPlay: autoplay ? autoplay : false,
594              //stopOnHover: true,
595              items: 3,
596              itemsDesktop: [1199, 3],
597              itemsTabletSmall: [768, 3],
598              itemsMobile: [480, 1],
599              navigation: false,
600              navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
601          });
602        });
603        
604        // Item carousel
605        $(".small-item-carousel").owlCarousel({
606            autoPlay: 2500,
607            stopOnHover: true,
608            items: 6,
609            itemsDesktop: [1199, 4],
610            itemsTabletSmall: [768, 3],
611            itemsMobile: [480, 2],
612            pagination: false,
613            navigation: false,
614            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
615        });
616        
617        // Single carousel
618        $(".single-carousel").owlCarousel({
619            singleItem: true,
620            autoHeight: true,
621            navigation: true,
622            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
623        });
624        
625        // Content Slider
626        $(".content-slider").owlCarousel({
627            slideSpeed: 350,
628            singleItem: true,
629            autoHeight: true,
630            navigation: true,
631            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
632        });
633
634        // Photo slider
635        $(".photo-slider").owlCarousel({
636            slideSpeed: 350,
637            items: 4,
638            itemsDesktop: [1199, 4],
639            itemsTabletSmall: [768, 2],
640            itemsMobile: [480, 1],
641            autoHeight: true,
642            navigation: true,
643            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
644        }); 
645
646        $(".work-full-slider").each(function() {
647          var autoplay = $(this).closest('.slider-wrapper').data('autoplay')
648          // Item carousel
649          $(this).owlCarousel({
650              autoPlay: autoplay ? autoplay : false,
651              slideSpeed : 350,
652              singleItem: true,
653              autoHeight: true,
654              navigation: true,
655              navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
656          });
657        });
658        
659        // Blog posts carousel
660        $(".blog-posts-carousel").owlCarousel({
661            autoPlay: 5000,
662            stopOnHover: true,
663            items: 3,
664            itemsDesktop: [1199, 3],
665            itemsTabletSmall: [768, 2],
666            itemsMobile: [480, 1],
667            pagination: false,
668            navigation: true,
669            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
670        });
671        
672        // Blog posts carousel alt
673        $(".blog-posts-carousel-alt").owlCarousel({
674            autoPlay: 3500,
675            stopOnHover: true,
676            slideSpeed: 350,
677            singleItem: true,
678            autoHeight: true,
679            pagination: false,
680            navigation: true,
681            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
682        });
683        
684        // Image carousel
685        $(".image-carousel").owlCarousel({
686            autoPlay: 5000,
687            stopOnHover: true,
688            items: 4,
689            itemsDesktop: [1199, 3],
690            itemsTabletSmall: [768, 2],
691            itemsMobile: [480, 1],
692            navigation: true,
693            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
694        });
695        
696        // Fullwidth slideshow
697        
698          var sync1 = $(".fullwidth-slideshow");
699          var sync2 = $(".fullwidth-slideshow-pager");
700  
701        $(".fullwidth-slideshow").owlCarousel({
702            autoPlay: 5000,
703            stopOnHover: true,
704            transitionStyle: "fade",
705            slideSpeed: 350,
706            singleItem: true,
707            autoHeight: true,
708            pagination: false,
709            navigation: true,
710            navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
711            afterAction : syncPosition,
712            responsiveRefreshRate : 200
713        });
714        $(".fullwidth-slideshow-pager").owlCarousel({
715            autoPlay: 5000,
716            stopOnHover: true,
717            items: 8,
718            itemsDesktop: [1199,8],
719            itemsDesktopSmall: [979,7],
720            itemsTablet: [768,6],
721            itemsMobile: [480,4],
722            autoHeight: true,
723            pagination: false,
724            navigation: false,
725            responsiveRefreshRate : 100,
726            afterInit : function(el){
727              el.find(".owl-item").eq(0).addClass("synced");
728            }
729        });
730        
731        function syncPosition(el){
732            var current = this.currentItem;
733            $(".fullwidth-slideshow-pager").find(".owl-item").removeClass("synced").eq(current).addClass("synced")
734            if ($(".fullwidth-slideshow-pager").data("owlCarousel") !== undefined) {
735                center(current)
736            }
737        }
738        
739        $(".fullwidth-slideshow-pager").on("click", ".owl-item", function(e){
740            e.preventDefault();
741            var number = $(this).data("owlItem");
742            sync1.trigger("owl.goTo", number);
743        });
744 
745        function center(number){
746            var owl = sync2.data("owlCarousel").owl;
747            if(typeof(owl.visibleItems) == 'undefined') {
748              return;
749            }
750            var sync2visible = owl.visibleItems;
751
752            var num = number;
753            var found = false;
754            for (var i in sync2visible) {
755                if (num === sync2visible[i]) {
756                    var found = true;
757                }
758            }
759            if (found === false) {
760                if (num > sync2visible[sync2visible.length - 1]) {
761                    sync2.trigger("owl.goTo", num - sync2visible.length + 2)
762                }
763                else {
764                    if (num - 1 === -1) {
765                        num = 0;
766                    }
767                    sync2.trigger("owl.goTo", num);
768                }
769            }
770            else 
771                if (num === sync2visible[sync2visible.length - 1]) {
772                    sync2.trigger("owl.goTo", sync2visible[1])
773                }
774                else 
775                    if (num === sync2visible[0]) {
776                        sync2.trigger("owl.goTo", num - 1)
777                    }
778        }
779          
780        var owl = $(".fullwidth-slideshow").data("owlCarousel");
781        
782        $(document.documentElement).keyup(function(event){
783            // handle cursor keys
784            if (event.keyCode == 37) {
785                owl.prev();
786            }
787            else 
788                if (event.keyCode == 39) {
789                    owl.next();
790                }
791        });
792        
793        $(".owl-carousel").each(function() {
794          var owl = $(this).data('owlCarousel');
795          owl.reinit();          
796        });
797        
798
799    })(jQuery);
800};
801
802
803/* ---------------------------------------------
804     Fullscreen menu
805   --------------------------------------------- */
806    
807    var fm_menu_wrap = $("#fullscreen-menu");
808    var fm_menu_button = $(".fm-button");
809    
810    function init_fullscreen_menu(){
811        
812        fm_menu_button.click(function(){
813            
814            if ($(this).hasClass("animation-process")){
815                return false;
816            }
817            else{
818                if ($(this).hasClass("active")) {
819                    $(this).removeClass("active").css("z-index", "2001").addClass("animation-process");;
820                    
821                    fm_menu_wrap.find(".fm-wrapper-sub").fadeOut("fast", function(){
822                        fm_menu_wrap.fadeOut(function(){
823                            fm_menu_wrap.find(".fm-wrapper-sub").removeClass("js-active").show();
824                            fm_menu_button.css("z-index", "1030").removeClass("animation-process");
825                            
826                        });
827                    });
828                    
829                    if ($(".owl-carousel").lenth) {
830                        $(".owl-carousel").data("owlCarousel").play();
831                    }
832                    
833                }
834                else {
835                    if ($(".owl-carousel").lenth) {
836                        $(".owl-carousel").data("owlCarousel").stop();
837                    }
838                    $(this).addClass("active").css("z-index", "2001").addClass("animation-process");
839                    
840                    fm_menu_wrap.fadeIn(function(){
841                        fm_menu_wrap.find(".fm-wrapper-sub").addClass("js-active");
842                        fm_menu_button.removeClass("animation-process");
843                    });
844                }
845                
846                return false;
847            }
848            
849        });
850        
851        $("#fullscreen-menu").find("a:not(.fm-has-sub)").click(function(){
852            
853            if (fm_menu_button.hasClass("animation-process")){
854                return false;
855            } 
856            else {
857                fm_menu_button.removeClass("active").css("z-index", "2001").addClass("animation-process");
858                    
859                fm_menu_wrap.find(".fm-wrapper-sub").fadeOut("fast", function(){
860                    fm_menu_wrap.fadeOut(function(){
861                        fm_menu_wrap.find(".fm-wrapper-sub").removeClass("js-active").show();
862                        fm_menu_button.css("z-index", "1030").removeClass("animation-process");
863                        
864                    });
865                });
866                
867                if ($(".owl-carousel").lenth) {
868                    $(".owl-carousel").data("owlCarousel").play();
869                }
870            }
871        });
872        
873        // Sub menu
874        
875        var fmHasSub = $(".fm-has-sub");
876        var fmThisLi;
877        
878        fmHasSub.click(function(){
879        
880            fmThisLi = $(this).parent("li:first");
881            if (fmThisLi.hasClass("js-opened")) {
882                fmThisLi.find(".fm-sub:first").slideUp(function(){
883                    fmThisLi.removeClass("js-opened");
884                    fmThisLi.find(".fm-has-sub").find(".fa:first").removeClass("fa-angle-up").addClass("fa-angle-down");
885                });
886            }
887            else {
888                $(this).find(".fa:first").removeClass("fa-angle-down").addClass("fa-angle-up");
889                fmThisLi.addClass("js-opened");
890                fmThisLi.find(".fm-sub:first").slideDown();
891            }
892            
893            return false;
894            
895        });
896      
897    }    
898    
899
900/* ---------------------------------------------
901     Side panel
902   --------------------------------------------- */
903    
904    var side_panel = $(".side-panel");
905    var sp_button = $(".sp-button");
906    var sp_close_button = $(".sp-close-button");
907    var sp_overlay = $(".sp-overlay");
908    
909    function sp_panel_close(){
910        side_panel.animate({
911            opacity: 0,
912            left: -270
913        }, 500, "easeOutExpo");
914        sp_overlay.fadeOut();
915        
916        
917        if ($(".owl-carousel").lenth) {
918            $(".owl-carousel").data("owlCarousel").play();
919        }
920    }
921    
922    function init_side_panel(){
923        (function($){
924            "use strict";
925            
926            sp_button.click(function(){
927            
928                side_panel.animate({
929                    opacity: 1,
930                    left: 0
931                }, 500, "easeOutExpo");
932                
933                setTimeout(function(){
934                    sp_overlay.fadeIn();
935                }, 100);
936                
937                if ($(".owl-carousel").lenth) {
938                    $(".owl-carousel").data("owlCarousel").stop();
939                }
940                
941                return false;
942            
943            });
944            
945            sp_close_button.click(function(){
946                sp_panel_close();
947                return false;
948            });
949            sp_overlay.click(function(){
950                sp_panel_close();
951                return false;
952            });
953            
954            $("#side-panel-menu").find("a:not(.sp-has-sub)").click(function(){
955                if (!($(window).width() >= 1199)) {
956                    sp_panel_close();
957                }
958            });
959            
960            
961            // Sub menu
962        
963            var spHasSub = $(".sp-has-sub");
964            var spThisLi;
965            
966            spHasSub.click(function(){
967            
968                spThisLi = $(this).parent("li:first");
969                if (spThisLi.hasClass("js-opened")) {
970                    spThisLi.find(".sp-sub:first").slideUp(function(){
971                        spThisLi.removeClass("js-opened");
972                        spThisLi.find(".sp-has-sub").find(".fa:first").removeClass("fa-angle-up").addClass("fa-angle-down");
973                    });
974                }
975                else {
976                    $(this).find(".fa:first").removeClass("fa-angle-down").addClass("fa-angle-up");
977                    spThisLi.addClass("js-opened");
978                    spThisLi.find(".sp-sub:first").slideDown();
979                }
980                
981                return false;
982                
983            });
984            
985        })(jQuery);
986    }
987    
988    function init_side_panel_resize(){
989        (function($){
990            "use strict";
991            
992             if ($(window).width() >= 1199){
993               side_panel.css({
994                   opacity: 1,
995                   left: 0
996               });
997               $(".side-panel-is-left").css("margin-left", "270px");
998               sp_button.css("display", "none");
999               sp_close_button.css("display", "none");
1000             } else {
1001                 side_panel.css({
1002                     opacity: 0,
1003                     left: -270
1004                 });
1005                 $(".side-panel-is-left").css("margin-left", "0");
1006                 sp_button.css("display", "block");
1007                 sp_close_button.css("display", "block");
1008             }
1009            
1010        })(jQuery);
1011    }
1012
1013/* ---------------------------------------------
1014 Portfolio section
1015 --------------------------------------------- */
1016
1017// Projects filtering
1018var fselector = 0;
1019var work_grid = $("#work-grid, #isotope");
1020
1021function initWorkFilter(){
1022    (function($){
1023     "use strict";
1024     var isotope_mode;
1025     if (work_grid.hasClass("masonry")){
1026         isotope_mode = "masonry";
1027     } else{
1028         isotope_mode = "fitRows"
1029     }
1030     
1031     work_grid.imagesLoaded(function(){
1032            work_grid.isotope({
1033                itemSelector: '.mix',
1034                layoutMode: isotope_mode,
1035                filter: fselector
1036            });
1037        });
1038        
1039        $(".filter").click(function(){
1040            $(".filter").removeClass("active");
1041            $(this).addClass("active");
1042            fselector = $(this).attr('data-filter');
1043            
1044            work_grid.isotope({
1045                itemSelector: '.mix',
1046                layoutMode: isotope_mode,
1047                filter: fselector
1048            });
1049            return false;
1050        });
1051        
1052    })(jQuery);
1053}
1054
1055
1056
1057
1058
1059/* ---------------------------------------------
1060 Height 100%
1061 --------------------------------------------- */
1062function js_height_init(){
1063    (function($){
1064        $(".js-height-full").height($(window).height());
1065        $(".js-height-parent").each(function(){
1066            $(this).height($(this).parent().first().height());
1067        });
1068    })(jQuery);
1069}
1070
1071
1072    
1073    
1074/* ---------------------------------------------
1075 Google map
1076 --------------------------------------------- */
1077
1078var gmMapDiv = $("#map-canvas");
1079
1080function init_map(){
1081    (function($){
1082        
1083        $(".map-section").click(function(){
1084            $(this).toggleClass("js-active");
1085            $(this).find(".mt-open").toggle();
1086            $(this).find(".mt-close").toggle();
1087        });
1088        
1089        
1090        if (gmMapDiv.length) {
1091        
1092            var gmCenterAddress = gmMapDiv.attr("data-address");
1093            var gmMarkerAddress = gmMapDiv.attr("data-address");
1094            var gmType = gmMapDiv.attr("data-type");
1095            var gmZoom = gmMapDiv.data('zoom') ? gmMapDiv.data('zoom') : 14;
1096
1097            gmMapDiv.gmap3({
1098                action: "init",
1099                marker: {
1100                    address: gmMarkerAddress,
1101                    options: {
1102                        icon: drupalSettings.base_path + drupalSettings.theme_path + "/images/map-marker.png"
1103                    }
1104                },
1105                map: {
1106                    options: {
1107                        zoom: gmZoom,
1108                        mapTypeId: google.maps.MapTypeId[gmType],
1109                        zoomControl: true,
1110                        zoomControlOptions: {
1111                            style: google.maps.ZoomControlStyle.SMALL,
1112                            position: google.maps.ControlPosition.RIGHT_CENTER
1113                        },
1114                        mapTypeControl: false,
1115                        scaleControl: false,
1116                        scrollwheel: false,
1117                        streetViewControl: false,
1118                        draggable: true,
1119                        styles: [{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#d3d3d3"}]},{"featureType":"transit","stylers":[{"color":"#808080"},{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"visibility":"on"},{"color":"#b3b3b3"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"weight":1.8}]},{"featureType":"road.local","elementType":"geometry.stroke","stylers":[{"color":"#d7d7d7"}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#ebebeb"}]},{"featureType":"administrative","elementType":"geometry","stylers":[{"color":"#a7a7a7"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#efefef"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#696969"}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"visibility":"on"},{"color":"#737373"}]},{"featureType":"poi","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.arterial","elementType":"geometry.stroke","stylers":[{"color":"#d6d6d6"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"color":"#dadada"}]}]
1120                    }
1121                }
1122            });
1123        }
1124    })(jQuery);
1125}
1126
1127
1128/* ---------------------------------------------
1129 WOW animations
1130 --------------------------------------------- */
1131
1132function init_wow(){
1133    (function($){    
1134    
1135        var wow = new WOW({
1136            boxClass: 'wow',
1137            animateClass: 'animated',
1138            offset: 90,
1139            mobile: false, 
1140            live: true 
1141        });
1142        
1143        if ($("body").hasClass("appear-animate")){
1144           wow.init(); 
1145        }        
1146        
1147    })(jQuery);
1148}
1149
1150
1151/* ---------------------------------------------
1152 Masonry
1153 --------------------------------------------- */
1154
1155function init_masonry(){
1156    (function($){    
1157    
1158        $(".masonry").imagesLoaded(function(){
1159            $(".masonry").masonry();
1160        });
1161        
1162    })(jQuery);
1163}
1164        
1165}());

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.