PageSourceSearch

https://www.populoos.es/themes/front/js/main.js

js populoos.es collected 2026-10-05 09:45:39 UTC 55,685 bytes, 1,683 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    /*-------------------------------------------------------------------------------
5	  Navbar 
6	-------------------------------------------------------------------------------*/
7
8    function navbarFixed() {
9        if ($(".header_area").length) {
10            $(window).scroll(function () {
11                var scroll = $(window).scrollTop();
12                if (scroll) {
13                    // $(".header_area").addClass("navbar_fixed");
14                } else {
15                    // $(".header_area").removeClass("navbar_fixed");
16                }
17            });
18        }
19    }
20    navbarFixed();
21
22    function offcanvasActivator() {
23        if ($(".bar_menu").length) {
24            $(".bar_menu").on("click", function () {
25                $("#menu").toggleClass("show-menu");
26            });
27            $(".close_icon").on("click", function () {
28                $("#menu").removeClass("show-menu");
29            });
30        }
31    }
32    offcanvasActivator();
33
34    $(".offcanfas_menu .dropdown").on("show.bs.dropdown", function (e) {
35        $(this).find(".dropdown-menu").first().stop(true, true).slideDown(400);
36    });
37    $(".offcanfas_menu .dropdown").on("hide.bs.dropdown", function (e) {
38        $(this).find(".dropdown-menu").first().stop(true, true).slideUp(500);
39    });
40
41    /*-------------------------------------------------------------------------------
42	  mCustomScrollbar js
43	-------------------------------------------------------------------------------*/
44    $(window).on("load", function () {
45        if ($(".mega_menu_two .scroll").length) {
46            $(".mega_menu_two .scroll").mCustomScrollbar({
47                mouseWheelPixels: 50,
48                scrollInertia: 0,
49            });
50        }
51    });
52
53    /*-------------------------------------------------------------------------------
54	  WOW js
55	-------------------------------------------------------------------------------*/
56    function wowAnimation() {
57        new WOW({
58            offset: 100,
59            animateClass: "animated",
60            mobile: true,
61        }).init();
62    }
63    wowAnimation();
64
65    /*-------------------------------------------------------------------------------
66	  service_carousel js
67	-------------------------------------------------------------------------------*/
68    function serviceSlider() {
69        var service_slider = $(".service_carousel");
70        if (service_slider.length) {
71            service_slider.owlCarousel({
72                loop: true,
73                margin: 15,
74                items: 4,
75                autoplay: true,
76                smartSpeed: 2000,
77                responsiveClass: true,
78                nav: true,
79                dots: false,
80                stagePadding: 100,
81                navText: [, '<i class="ti-arrow-left"></i>'],
82                responsive: {
83                    0: {
84                        items: 1,
85                        stagePadding: 0,
86                    },
87                    578: {
88                        items: 2,
89                        stagePadding: 0,
90                    },
91                    992: {
92                        items: 3,
93                        stagePadding: 0,
94                    },
95                    1200: {
96                        items: 3,
97                    },
98                },
99            });
100        }
101    }
102    serviceSlider();
103
104    /*-------------------------------------------------------------------------------
105	  about_img_slider js
106	-------------------------------------------------------------------------------*/
107    function aboutSlider() {
108        var reviews_slider2 = $(".about_img_slider");
109        if (reviews_slider2.length) {
110            reviews_slider2.owlCarousel({
111                loop: true,
112                margin: 0,
113                items: 1,
114                nav: false,
115                autoplay: false,
116                smartSpeed: 2000,
117                responsiveClass: true,
118            });
119        }
120    }
121    aboutSlider();
122
123    /*-------------------------------------------------------------------------------
124	  pos_slider js
125	-------------------------------------------------------------------------------*/
126    function posSlider() {
127        var posS = $(".pos_slider");
128        if (posS.length) {
129            posS.owlCarousel({
130                loop: true,
131                margin: 0,
132                items: 1,
133                dots: false,
134                nav: false,
135                autoplay: true,
136                slideSpeed: 300,
137                mouseDrag: false,
138                animateIn: "fadeIn",
139                animateOut: "fadeOut",
140                responsiveClass: true,
141            });
142        }
143    }
144    posSlider();
145
146    /*-------------------------------------------------------------------------------
147	  feedback_slider js
148	-------------------------------------------------------------------------------*/
149    function feedbackSlider() {
150        var feedback_slider = $(".feedback_slider");
151        if (feedback_slider.length) {
152            feedback_slider.owlCarousel({
153                loop: true,
154                margin: 25,
155                items: 3,
156                nav: false,
157                center: true,
158                autoplay: false,
159                smartSpeed: 2000,
160                stagePadding: 0,
161                responsiveClass: true,
162                responsive: {
163                    0: {
164                        items: 1,
165                    },
166                    776: {
167                        items: 2,
168                        stagePadding: 0,
169                    },
170                    1199: {
171                        items: 3,
172                        stagePadding: 0,
173                    },
174                },
175            });
176        }
177    }
178    feedbackSlider();
179
180    function EventSlider() {
181        var event_slider = $(".event_team_slider");
182        if (event_slider.length) {
183            event_slider.owlCarousel({
184                loop: true,
185                margin: 25,
186                items: 3,
187                nav: false,
188                autoplay: false,
189                smartSpeed: 2000,
190                responsiveClass: true,
191                responsive: {
192                    0: {
193                        items: 1,
194                    },
195                    576: {
196                        items: 2,
197                    },
198                    1199: {
199                        items: 3,
200                    },
201                },
202            });
203        }
204    }
205    EventSlider();
206
207    /*-------------------------------------------------------------------------------
208	  feedback_slider two js
209	-------------------------------------------------------------------------------*/
210    function feedbackSlider_two() {
211        var feedback_sliders = $("#fslider_two");
212        if (feedback_sliders.length) {
213            feedback_sliders.owlCarousel({
214                loop: true,
215                margin: 0,
216                items: 2,
217                nav: true,
218                autoplay: false,
219                smartSpeed: 2000,
220                stagePadding: 0,
221                responsiveClass: true,
222                navText: [
223          '<i class="ti-angle-left"></i><i class="ti-angle-right"></i>',
224        ],
225                responsive: {
226                    0: {
227                        items: 1,
228                    },
229                    776: {
230                        items: 2,
231                    },
232                    1199: {
233                        items: 2,
234                    },
235                },
236            });
237        }
238    }
239    feedbackSlider_two();
240
241    /*-------------------------------------------------------------------------------
242	  fslider_three js
243	-------------------------------------------------------------------------------*/
244    function feedbackSlider_three() {
245        var feedback_sliders_three = $("#fslider_three");
246        if (feedback_sliders_three.length) {
247            feedback_sliders_three.owlCarousel({
248                loop: true,
249                margin: 0,
250                items: 2,
251                nav: true,
252                center: true,
253                autoplay: false,
254                smartSpeed: 2000,
255                stagePadding: 0,
256                responsiveClass: true,
257                navText: [
258          '<i class="ti-angle-left"></i>',
259          '<i class="ti-angle-right"></i>',
260        ],
261                responsive: {
262                    0: {
263                        items: 1,
264                    },
265                    776: {
266                        items: 2,
267                    },
268                    1199: {
269                        items: 3,
270                    },
271                },
272            });
273        }
274    }
275    feedbackSlider_three();
276
277    /*-------------------------------------------------------------------------------
278	  erp_testimonial_info js
279	-------------------------------------------------------------------------------*/
280    function erpTestimonial() {
281        var erpT = $(".erp_testimonial_info");
282        if (erpT.length) {
283            erpT.owlCarousel({
284                loop: true,
285                margin: 0,
286                items: 2,
287                nav: true,
288                dots: false,
289                autoplay: false,
290                smartSpeed: 2000,
291                stagePadding: 0,
292                responsiveClass: true,
293                navText: ['<i class="arrow_left"></i>', '<i class="arrow_right"></i>'],
294                responsive: {
295                    0: {
296                        items: 1,
297                    },
298                    776: {
299                        items: 2,
300                    },
301                    1199: {
302                        items: 2,
303                    },
304                },
305            });
306        }
307    }
308    erpTestimonial();
309
310    /*-------------------------------------------------------------------------------
311	  testimonial_slider js
312	-------------------------------------------------------------------------------*/
313    function testimonialSlider() {
314        var testimonialSlider = $(".testimonial_slider");
315        if (testimonialSlider.length) {
316            testimonialSlider.owlCarousel({
317                loop: true,
318                margin: 10,
319                items: 1,
320                autoplay: true,
321                smartSpeed: 2500,
322                autoplaySpeed: false,
323                responsiveClass: true,
324                nav: true,
325                dot: true,
326                stagePadding: 0,
327                navContainer: ".agency_testimonial_info",
328                navText: [
329          '<i class="ti-angle-left"></i>',
330          '<i class="ti-angle-right"></i>',
331        ],
332            });
333        }
334    }
335    testimonialSlider();
336
337    /*-------------------------------------------------------------------------------
338	  app_testimonial_slider js
339	-------------------------------------------------------------------------------*/
340    function app_testimonialSlider() {
341        var app_testimonialSlider = $(".app_testimonial_slider");
342        if (app_testimonialSlider.length) {
343            app_testimonialSlider.owlCarousel({
344                loop: true,
345                margin: 10,
346                items: 1,
347                autoplay: true,
348                smartSpeed: 2000,
349                autoplaySpeed: true,
350                responsiveClass: true,
351                nav: true,
352                dot: true,
353                navText: [
354          '<i class="ti-arrow-left"></i>',
355          '<i class="ti-arrow-right"></i>',
356        ],
357                navContainer: ".nav_container",
358            });
359        }
360    }
361    app_testimonialSlider();
362
363    /*-------------------------------------------------------------------------------
364	  app_screenshot_slider js
365	-------------------------------------------------------------------------------*/
366    function appScreenshot() {
367        var app_screenshotSlider = $(".app_screenshot_slider");
368        if (app_screenshotSlider.length) {
369            app_screenshotSlider.owlCarousel({
370                loop: true,
371                margin: 10,
372                items: 5,
373                autoplay: false,
374                smartSpeed: 2000,
375                responsiveClass: true,
376                nav: true,
377                dots: true,
378                responsive: {
379                    0: {
380                        items: 1,
381                    },
382                    650: {
383                        items: 2,
384                    },
385                    776: {
386                        items: 4,
387                    },
388                    1199: {
389                        items: 5,
390                    },
391                },
392            });
393        }
394    }
395    appScreenshot();
396
397    /*-------------------------------------------------------------------------------
398	  pr_slider js
399	-------------------------------------------------------------------------------*/
400    function prslider() {
401        var p_Slider = $(".pr_slider");
402        if (p_Slider.length) {
403            p_Slider.owlCarousel({
404                loop: true,
405                margin: 10,
406                items: 1,
407                autoplay: true,
408                smartSpeed: 1000,
409                responsiveClass: true,
410                nav: true,
411                dots: false,
412                navText: [
413          '<i class="ti-angle-left"></i>',
414          '<i class="ti-angle-right"></i>',
415        ],
416                navContainer: ".pr_slider",
417            });
418        }
419    }
420    prslider();
421
422    /*-------------------------------------------------------------------------------
423	  app_testimonial_slider js
424	-------------------------------------------------------------------------------*/
425    function tslider() {
426        var tSlider = $(".testimonial_slider_four");
427        if (tSlider.length) {
428            tSlider.owlCarousel({
429                loop: true,
430                margin: 10,
431                items: 1,
432                autoplay: true,
433                smartSpeed: 1000,
434                responsiveClass: true,
435                nav: true,
436                dots: false,
437                navText: [
438          '<i class="ti-angle-left"></i>',
439          '<i class="ti-angle-right"></i>',
440        ],
441                navContainer: ".testimonial_title",
442            });
443        }
444    }
445    tslider();
446
447    /*-------------------------------------------------------------------------------
448	  case_studies_slider js
449	-------------------------------------------------------------------------------*/
450    function caseStudies() {
451        var CSlider = $(".case_studies_slider");
452        if (CSlider.length) {
453            CSlider.owlCarousel({
454                loop: true,
455                margin: 0,
456                items: 3,
457                autoplay: true,
458                smartSpeed: 1000,
459                responsiveClass: true,
460                nav: false,
461                dots: true,
462                responsive: {
463                    0: {
464                        items: 1,
465                    },
466                    650: {
467                        items: 2,
468                    },
469                    776: {
470                        items: 3,
471                    },
472                    1199: {
473                        items: 3,
474                    },
475                },
476            });
477        }
478    }
479    caseStudies();
480
481    /*-------------------------------------------------------------------------------
482	  app_testimonial_slider js
483	-------------------------------------------------------------------------------*/
484    function videoslider() {
485        var dSlider = $(".digital_video_slider");
486        if (dSlider.length) {
487            dSlider.owlCarousel({
488                loop: true,
489                margin: 30,
490                items: 1,
491                center: true,
492                autoplay: true,
493                smartSpeed: 1000,
494                stagePadding: 200,
495                responsiveClass: true,
496                nav: false,
497                dots: false,
498                responsive: {
499                    0: {
500                        items: 1,
501                        stagePadding: 0,
502                    },
503                    575: {
504                        items: 1,
505                        stagePadding: 100,
506                    },
507                    768: {
508                        items: 1,
509                        stagePadding: 40,
510                    },
511                    992: {
512                        items: 1,
513                        stagePadding: 100,
514                    },
515                    1250: {
516                        items: 1,
517                        stagePadding: 200,
518                    },
519                },
520            });
521        }
522    }
523    videoslider();
524
525    /*-------------------------------------------------------------------------------
526	  Saasslider js
527	-------------------------------------------------------------------------------*/
528    function Saasslider() {
529        var SSlider = $(".saas_banner_area_three");
530        if (SSlider.length) {
531            SSlider.owlCarousel({
532                loop: true,
533                margin: 30,
534                items: 1,
535                animateOut: "fadeOut",
536                autoplay: true,
537                smartSpeed: 1000,
538                responsiveClass: true,
539                nav: false,
540                dots: true,
541            });
542        }
543    }
544    Saasslider();
545
546    /*-------------------------------------------------------------------------------
547	  price tab js
548	-------------------------------------------------------------------------------*/
549    function tab_hover() {
550        var tab = $(".price_tab");
551        if ($(window).width() > 450) {
552            if ($(tab).length > 0) {
553                tab.append('<li class="hover_bg"></li>');
554                if ($(".price_tab li a").hasClass("active_hover")) {
555                    var pLeft = $(".price_tab li a.active_hover").position().left,
556                        pWidth = $(".price_tab li a.active_hover").css("width");
557                    $(".hover_bg").css({
558                        left: pLeft,
559                        width: pWidth,
560                    });
561                }
562                $(".price_tab li a").on("click", function () {
563                    $(".price_tab li a").removeClass("active_hover");
564                    $(this).addClass("active_hover");
565                    var pLeft = $(".price_tab li a.active_hover").position().left,
566                        pWidth = $(".price_tab li a.active_hover").css("width");
567                    $(".hover_bg").css({
568                        left: pLeft,
569                        width: pWidth,
570                    });
571                });
572            }
573        }
574    }
575    tab_hover();
576
577    /*-------------------------------------------------------------------------------
578	  selectpickers js
579	-------------------------------------------------------------------------------*/
580    if ($(".selectpickers").length > 0) {
581        $(".selectpickers").niceSelect();
582    }
583
584    /*-------------------------------------------------------------------------------
585	  pr_slider js
586	-------------------------------------------------------------------------------*/
587    function pr_slider() {
588        var pr_image = $(".pr_image");
589        if (pr_image.length) {
590            pr_image.owlCarousel({
591                loop: true,
592                items: 1,
593                autoplay: true,
594                dots: false,
595                thumbs: true,
596                thumbImage: true,
597            });
598        }
599    }
600    pr_slider();
601
602    /*-------------------------------------------------------------------------------
603	  cart js
604	-------------------------------------------------------------------------------*/
605    $(".ar_top").on("click", function () {
606        var getID = $(this).next().attr("id");
607        var result = document.getElementById(getID);
608        var qty = result.value;
609        $(".proceed_to_checkout .update-cart").removeAttr("disabled");
610        if (!isNaN(qty)) {
611            result.value++;
612        } else {
613            return false;
614        }
615    });
616
617    $(".ar_down").on("click", function () {
618        var getID = $(this).prev().attr("id");
619        var result = document.getElementById(getID);
620        var qty = result.value;
621        $(".proceed_to_checkout .update-cart").removeAttr("disabled");
622        if (!isNaN(qty) && qty > 0) {
623            result.value--;
624        } else {
625            return false;
626        }
627    });
628
629    /*-------------------------------------------------------------------------------
630	  Portfolio isotope js
631	-------------------------------------------------------------------------------*/
632    function portfolioMasonry() {
633        var portfolio = $("#work-portfolio");
634        if (portfolio.length) {
635            portfolio.imagesLoaded(function () {
636                // images have loaded
637                // Activate isotope in container
638                portfolio.isotope({
639                    // itemSelector: ".portfolio_item",
640                    layoutMode: "masonry",
641                    filter: "*",
642                    animationOptions: {
643                        duration: 1000,
644                    },
645                    transitionDuration: "0.5s",
646                    masonry: {},
647                });
648
649                // Add isotope click function
650                $("#portfolio_filter div").on("click", function () {
651                    $("#portfolio_filter div").removeClass("active");
652                    $(this).addClass("active");
653
654                    var selector = $(this).attr("data-filter");
655                    portfolio.isotope({
656                        filter: selector,
657                        animationOptions: {
658                            animationDuration: 750,
659                            easing: "linear",
660                            queue: false,
661                        },
662                    });
663                    return false;
664                });
665            });
666        }
667    }
668    portfolioMasonry();
669
670    /*-------------------------------------------------------------------------------
671	  jobFilter js
672	-------------------------------------------------------------------------------*/
673    function jobFilter() {
674        var jobsfilter = $("#tab_filter");
675        if (jobsfilter.length) {
676            jobsfilter.imagesLoaded(function () {
677                // images have loaded
678                // Activate isotope in container
679                jobsfilter.isotope({
680                    itemSelector: ".item",
681                });
682
683                // Add isotope click function
684                $("#job_filter div").on("click", function () {
685                    $("#job_filter div").removeClass("active");
686                    $(this).addClass("active");
687
688                    var selector = $(this).attr("data-filter");
689                    jobsfilter.isotope({
690                        filter: selector,
691                        animationOptions: {
692                            animationDuration: 750,
693                            easing: "linear",
694                            queue: false,
695                        },
696                    });
697                    return false;
698                });
699            });
700        }
701    }
702    jobFilter();
703
704    /*---------gallery isotope js-----------*/
705    function productMasonry() {
706        if ($('#pr_gallery').length) {
707            $('#pr_gallery').imagesLoaded(function () {
708                // images have loaded
709                // Activate isotope in container
710                $("#pr_gallery").isotope({
711                    filter: '.tops',
712                    layoutMode: 'masonry',
713                    animationOptions: {
714                        duration: 750,
715                        easing: 'linear'
716                    }
717                });
718
719                // Add isotope click function
720                $("#pr_filter div").on('click', function () {
721                    $("#pr_filter div").removeClass("active");
722                    $(this).addClass("active");
723
724                    var selector = $(this).attr("data-filter");
725                    $("#pr_gallery").isotope({
726                        filter: selector,
727                        animationOptions: {
728                            animationDuration: 750,
729                            easing: 'linear',
730                            queue: false
731                        }
732                    })
733                    return false;
734                })
735            })
736        }
737    }
738    productMasonry();
739
740    /*-------------------------------------------------------------------------------
741	  blogMasonry js
742	-------------------------------------------------------------------------------*/
743    function blogMasonry() {
744        var blog = $("#blog_masonry");
745        if (blog.length) {
746            blog.imagesLoaded(function () {
747                blog.isotope({
748                    layoutMode: "masonry",
749                });
750            });
751        }
752    }
753    blogMasonry();
754
755    function featuredMasonry() {
756        var gallery = $(".featured_gallery");
757        if (gallery.length) {
758            gallery.imagesLoaded(function () {
759                gallery.isotope({
760                    layoutMode: "masonry",
761                    masonry: {
762                        columnWidth: 1
763                    },
764                    percentPosition: true,
765                });
766            });
767        }
768    }
769    featuredMasonry();
770
771
772    function homeMasonry() {
773        var gallery = $("#home_pr_masonry");
774        if (gallery.length) {
775            gallery.imagesLoaded(function () {
776                gallery.isotope({
777                    layoutMode: "masonry",
778                    originLeft: false,
779                    masonry: {
780                        columnWidth: '.grid-sizer'
781                    },
782                    percentPosition: true,
783                });
784            });
785        }
786    }
787    homeMasonry();
788
789    if ($(".height-emulator").length) {
790        $(".height-emulator").css({
791            height: $("footer").outerHeight(true)
792        });
793    }
794    
795//    if ($(".personal_description_area").length) {
796//         var count = $('.personal_description_area').data("count");
797//        $(".personal_description_area").css({
798//            height: $(".text").height() * count
799//        });
800//    }
801
802
803    /*-------------------------------------------------------------------------------
804	  popup js
805	-------------------------------------------------------------------------------*/
806    function popupGallery() {
807        if ($(".img_popup,.image-link").length) {
808            $(".img_popup,.image-link").each(function () {
809                $(".img_popup,.image-link").magnificPopup({
810                    type: "image",
811                    tLoading: "Loading image #%curr%...",
812                    removalDelay: 300,
813                    mainClass: "mfp-with-zoom mfp-img-mobile",
814                    gallery: {
815                        enabled: true,
816                        navigateByImgClick: true,
817                        preload: [0, 1], // Will preload 0 - before current, and 1 after the current image,
818                    },
819                });
820            });
821        }
822        if ($(".popup-youtube").length) {
823            $(".popup-youtube").magnificPopup({
824                disableOn: 700,
825                type: "iframe",
826                removalDelay: 160,
827                preloader: false,
828                fixedContentPos: false,
829                mainClass: "mfp-with-zoom mfp-img-mobile",
830            });
831//            $(".popup-youtube").magnificPopup({
832//                disableOn: 700,
833//                type: "iframe",
834//                mainClass: "mfp-fade",
835//                removalDelay: 160,
836//                preloader: false,
837//                fixedContentPos: false,
838//            });
839        }
840    }
841    popupGallery();
842
843    /*-------------------------------------------------------------------------------
844	  mapBox js
845	-------------------------------------------------------------------------------*/
846    if ($("#mapBox").length) {
847        var $lat = $("#mapBox").data("lat");
848        var $lon = $("#mapBox").data("lon");
849        var $zoom = $("#mapBox").data("zoom");
850        var $marker = $("#mapBox").data("marker");
851        var $info = $("#mapBox").data("info");
852        var $markerLat = $("#mapBox").data("mlat");
853        var $markerLon = $("#mapBox").data("mlon");
854        var map = new GMaps({
855            el: "#mapBox",
856            lat: $lat,
857            lng: $lon,
858            scrollwheel: false,
859            scaleControl: true,
860            streetViewControl: false,
861            panControl: true,
862            disableDoubleClickZoom: true,
863            mapTypeControl: false,
864            zoom: $zoom,
865        });
866        map.addMarker({
867            lat: $markerLat,
868            lng: $markerLon,
869            icon: $marker,
870            infoWindow: {
871                content: $info,
872            },
873        });
874    }
875
876    /*-------------------------------------------------------------------------------
877	  MAILCHIMP js
878	-------------------------------------------------------------------------------*/
879    if ($(".mailchimp").length > 0) {
880        $(".mailchimp").ajaxChimp({
881            callback: mailchimpCallback,
882            url: "http://droitlab.us15.list-manage.com/subscribe/post?u=0fa954b1e090d4269d21abef5&id=a80b5aedb0", //Replace this with your own mailchimp post URL. Don't remove the "". Just paste the url inside "".
883        });
884    }
885    if ($(".mailchimp_two").length > 0) {
886        $(".mailchimp_two").ajaxChimp({
887            callback: mailchimpCallback,
888            url: "https://droitthemes.us19.list-manage.com/subscribe/post?u=5d334217e146b083fe74171bf&amp;id=0e45662e8c", //Replace this with your own mailchimp post URL. Don't remove the "". Just paste the url inside "".
889        });
890    }
891    $(".memail").on("focus", function () {
892        $(".mchimp-errmessage").fadeOut();
893        $(".mchimp-sucmessage").fadeOut();
894    });
895    $(".memail").on("keydown", function () {
896        $(".mchimp-errmessage").fadeOut();
897        $(".mchimp-sucmessage").fadeOut();
898    });
899    $(".memail").on("click", function () {
900        $(".memail").val("");
901    });
902
903    function mailchimpCallback(resp) {
904        if (resp.result === "success") {
905            $(".mchimp-errmessage").html(resp.msg).fadeIn(1000);
906            $(".mchimp-sucmessage").fadeOut(500);
907        } else if (resp.result === "error") {
908            $(".mchimp-errmessage").html(resp.msg).fadeIn(1000);
909        }
910    }
911
912    /*-------------------------------------------------------------------------------
913	  Parallax Effect js
914	-------------------------------------------------------------------------------*/
915    function parallaxEffect() {
916        if ($(".parallax-effect,#apps_craft_animation").length) {
917            $(".parallax-effect,#apps_craft_animation").parallax();
918        }
919    }
920    parallaxEffect();
921
922    /*-------------------------------------------------------------------------------
923	  Counter js
924	-------------------------------------------------------------------------------*/
925    function counterUp() {
926        if ($(".counter").length) {
927            $(".counter").counterUp({
928                delay: 1,
929                time: 500,
930            });
931        }
932    }
933
934    counterUp();
935
936    /*-------------------------------------------------------------------------------
937	  progress bar js
938	-------------------------------------------------------------------------------*/
939    function circle_progress() {
940        if ($(".circle").length) {
941            $(".circle").each(function () {
942                $(".circle").appear(
943                    function () {
944                        $(".circle").circleProgress({
945                            startAngle: -14.1,
946                            size: 200,
947                            duration: 9000,
948                            easing: "circleProgressEase",
949                            emptyFill: "#f1f1fa ",
950                            lineCap: "round",
951                            thickness: 10,
952                        });
953                    }, {
954                        triggerOnce: true,
955                        offset: "bottom-in-view",
956                    }
957                );
958            });
959        }
960    }
961    circle_progress();
962
963    /*-------------------------------------------------------------------------------
964	  progress bar js
965	-------------------------------------------------------------------------------*/
966    $(".progress-element").each(function () {
967        $(this).waypoint(
968            function () {
969                var progressBar = $(".progress-bar");
970                progressBar.each(function (indx) {
971                    $(this).css("width", $(this).attr("aria-valuenow") + "%");
972                });
973            }, {
974                triggerOnce: true,
975                offset: "bottom-in-view",
976            }
977        );
978    });
979
980    /*-------------------------------------------------------------------------------
981	  preloader js
982	-------------------------------------------------------------------------------*/
983    function loader() {
984        $(window).on("load", function () {
985            $("#ctn-preloader").addClass("loaded");
986            // Una vez haya terminado el preloader aparezca el scroll
987
988            if ($("#ctn-preloader").hasClass("loaded")) {
989                // Es para que una vez que se haya ido el preloader se elimine toda la seccion preloader
990                $("#preloader")
991                    .delay(900)
992                    .queue(function () {
993                        $(this).remove();
994                    });
995            }
996        });
997    }
998    loader();
999
1000    /*-------------------------------------------------------------------------------
1001	  tooltip js
1002	-------------------------------------------------------------------------------*/
1003    if ($('[data-toggle="tooltip"]').length) {
1004        $('[data-toggle="tooltip"]').tooltip();
1005    }
1006    /*-------------------------------------------------------------------------------
1007	  Pricing Filter js
1008	-------------------------------------------------------------------------------*/
1009    if ($("#slider-range").length) {
1010        $("#slider-range").slider({
1011            range: true,
1012            min: 5,
1013            max: 150,
1014            values: [5, 100],
1015            slide: function (event, ui) {
1016                $("#amount").val("$" + ui.values[0] + " - $" + ui.values[1]);
1017            },
1018        });
1019        $("#amount").val(
1020            "$" +
1021            $("#slider-range").slider("values", 0) +
1022            " - $" +
1023            $("#slider-range").slider("values", 1)
1024        );
1025    }
1026
1027    /*-------------------------------------------------------------------------------
1028	  search js
1029	-------------------------------------------------------------------------------*/
1030    $(".search-btn").on("click", function () {
1031        $("body").addClass("open");
1032        setTimeout(function () {
1033            $(".search-input").focus();
1034        }, 500);
1035        return false;
1036    });
1037    $(".close_icon").on("click", function () {
1038        $("body").removeClass("open");
1039        return false;
1040    });
1041
1042    /*-------------------------------------------------------------------------------
1043	  develor tab js
1044	-------------------------------------------------------------------------------*/
1045    if ($(".develor_tab li a").length > 0) {
1046        $(".develor_tab li a").click(function () {
1047            var tab_id = $(this).attr("data-tab");
1048            $(".tab_img").removeClass("active");
1049            $("#" + tab_id).addClass("active");
1050        });
1051    }
1052
1053    /*-------------------------------------------------------------------------------
1054	  alert js
1055	-------------------------------------------------------------------------------*/
1056    $(".alert_close").on("click", function (e) {
1057        $(this).parent().hide();
1058    });
1059
1060    /*-------------------------------------------------------------------------------
1061	  active dropdown
1062	-------------------------------------------------------------------------------*/
1063    function active_dropdown() {
1064        if ($(window).width() < 992) {
1065            $(".menu li.submenu > a").on("click", function (event) {
1066                event.preventDefault();
1067                $(this).parent().find("ul").first().toggle(700);
1068                $(this).parent().siblings().find("ul").hide(700);
1069            });
1070        }
1071    }
1072    active_dropdown();
1073
1074    /*-------------------------------------------------------------------------------
1075	  hamberger menu
1076	-------------------------------------------------------------------------------*/
1077    function hamberger_menu() {
1078        if ($(".burger_menu").length) {
1079            $(".burger_menu").on("click", function () {
1080                $(this).toggleClass("open");
1081                $("body").removeClass("menu-is-closed").addClass("menu-is-opened");
1082            });
1083            $(".close, .click-capture").on("click", function () {
1084                $("body").removeClass("menu-is-opened").addClass("menu-is-closed");
1085            });
1086        }
1087    }
1088    hamberger_menu();
1089
1090    /*-------------------------------------------------------------------------------
1091	  Full screen sections 
1092	-------------------------------------------------------------------------------*/
1093    if ($(".pagepiling").length > 0) {
1094        $(".pagepiling").pagepiling({
1095            scrollingSpeed: 280,
1096            loopBottom: true,
1097            // anchors: ['first', 'second', 'third', 'four','five'],
1098            // menu: '#menu',
1099            navigation: {
1100                position: "right_position",
1101            },
1102        });
1103        $.fn.pagepiling.setAllowScrolling(true);
1104    }
1105
1106    function ppTestislider() {
1107        if ($(".pp_testimonial_slider").length > 0) {
1108            var PSlider = $(".pp_testimonial_slider");
1109            if (PSlider.length) {
1110                PSlider.slick({
1111                    autoplay: true,
1112                    slidesToShow: 2,
1113                    slidesToScroll: 1,
1114                    autoplaySpeed: 3000,
1115                    speed: 1000,
1116                    vertical: true,
1117                    dots: false,
1118                    arrows: true,
1119                    prevArrow: ".prev",
1120                    nextArrow: ".next",
1121                });
1122            }
1123        }
1124    }
1125    ppTestislider();
1126
1127
1128    function trendingSlider() {
1129        if ($(".trending_product_slider").length > 0) {
1130            var PSlider = $(".trending_product_slider");
1131            if (PSlider.length) {
1132                PSlider.slick({
1133                    autoplay: true,
1134                    slidesToShow: 5,
1135                    slidesToScroll: 1,
1136                    centerMode: true,
1137                    centerPadding: '85px',
1138                    autoplaySpeed: 3000,
1139                    speed: 1000,
1140                    dots: false,
1141                    arrows: true,
1142                    prevArrow: ".prev",
1143                    nextArrow: ".next",
1144                    responsive: [
1145                        {
1146                            breakpoint: 1200,
1147                            settings: {
1148                                slidesToShow: 4,
1149                            },
1150                        },
1151                        {
1152                            breakpoint: 992,
1153                            settings: {
1154                                slidesToShow: 3,
1155                            },
1156                        },
1157                        {
1158                            breakpoint: 650,
1159                            settings: {
1160                                slidesToShow: 2,
1161                            },
1162                        },
1163                        {
1164                            breakpoint: 480,
1165                            settings: {
1166                                slidesToShow: 1,
1167                            },
1168                        }
1169                    ],
1170                });
1171            }
1172        }
1173    }
1174    trendingSlider();
1175
1176
1177    var heading = $(".typed");
1178    if (heading.length) {
1179        heading.typed({
1180            strings: ["Startups", "Business", "Agencies"],
1181            // Optionally use an HTML element to grab strings from (must wrap each string in a <p>)
1182            stringsElement: null,
1183            typeSpeed: 100,
1184            startDelay: 500,
1185            backSpeed: 100,
1186            backDelay: 500,
1187            loop: true,
1188            showCursor: true,
1189            cursorChar: "|",
1190        });
1191    }
1192
1193    if ($(".slick.marquee").length > 0) {
1194        $(".slick.marquee").slick({
1195            speed: 8000,
1196            autoplay: true,
1197            autoplaySpeed: 1000,
1198            centerMode: true,
1199            cssEase: "linear",
1200            slidesToShow: 1,
1201            slidesToScroll: 1,
1202            variableWidth: true,
1203            infinite: true,
1204            initialSlide: 1,
1205            arrows: false,
1206            pauseOnHover: true,
1207            buttons: false,
1208        });
1209    }
1210
1211
1212    function slider() {
1213        if ($(".utility_slider").length > 0) {
1214            $(".utility_slider").slick({
1215                slidesToShow: 1,
1216                slidesToScroll: 1,
1217                centerMode: true,
1218                centerPadding: "40px",
1219                arrows: false,
1220                dots: false,
1221                speed: 1000,
1222                autoplay: true,
1223                infinite: true,
1224                responsive: [
1225                    {
1226                        breakpoint: 570,
1227                        settings: {
1228                            slidesToShow: 1,
1229                            slidesToScroll: 1,
1230                            centerPadding: "0px",
1231                        },
1232                        },
1233                    ],
1234            });
1235        }
1236    }
1237    slider();
1238
1239
1240    function sliderTwo() {
1241        if ($(".shop_slider").length > 0) {
1242            $(".shop_slider").slick({
1243                slidesToShow: 1,
1244                slidesToScroll: 1,
1245                arrows: false,
1246                dots: true,
1247            });
1248        }
1249    }
1250    sliderTwo();
1251
1252    function BlogSlider() {
1253        if ($(".blog_slider").length > 0) {
1254            $(".blog_slider").slick({
1255                slidesToShow: 1,
1256                slidesToScroll: 1,
1257                dots: false,
1258                arrow: false,
1259                cssEase: "linear",
1260                rows: 0,
1261                fade: true,
1262                infinite: true,
1263                prevArrow: ".prev",
1264                nextArrow: ".next",
1265            });
1266        }
1267    }
1268    BlogSlider();
1269
1270    function portfolioSlider() {
1271        if ($(".portfolio_slider").length > 0) {
1272            $(".portfolio_slider").slick({
1273                slidesToShow: 1,
1274                slidesToScroll: 1,
1275                dots: true,
1276                arrow: true,
1277                centerMode: true,
1278                centerPadding: "450px",
1279                speed: 800,
1280                autoplay: true,
1281                infinite: true,
1282                prevArrow: ".prevs",
1283                nextArrow: ".nexts",
1284                responsive: [
1285                    {
1286                        breakpoint: 1400,
1287                        settings: {
1288                            slidesToShow: 1,
1289                            slidesToScroll: 1,
1290                            centerPadding: "250px",
1291                        },
1292                    },
1293                    {
1294                        breakpoint: 1008,
1295                        settings: {
1296                            slidesToShow: 1,
1297                            slidesToScroll: 1,
1298                            centerPadding: "150px",
1299                        },
1300                    },
1301                    {
1302                        breakpoint: 800,
1303                        settings: {
1304                            slidesToShow: 1,
1305                            slidesToScroll: 1,
1306                            centerPadding: "50px",
1307                        },
1308                    },
1309                ],
1310            });
1311        }
1312    }
1313    portfolioSlider();
1314
1315    function portfolioSliderTwo() {
1316        if ($(".portfolio_slider_two").length > 0) {
1317            $(".portfolio_slider_two").slick({
1318                slidesToShow: 2,
1319                slidesToScroll: 1,
1320                dots: false,
1321                arrow: false,
1322                centerMode: true,
1323                centerPadding: "200px",
1324                infinite: true,
1325                autoplay: true,
1326                autoplaySpeed: 1000,
1327                responsive: [
1328                    {
1329                        breakpoint: 1100,
1330                        settings: {
1331                            slidesToShow: 2,
1332                            slidesToScroll: 1,
1333                            centerPadding: "100px",
1334                        },
1335                    },
1336                    {
1337                        breakpoint: 800,
1338                        settings: {
1339                            slidesToShow: 1,
1340                            slidesToScroll: 1,
1341                            centerPadding: "150px",
1342                        },
1343                    },
1344                    {
1345                        breakpoint: 700,
1346                        settings: {
1347                            slidesToShow: 2,
1348                            slidesToScroll: 1,
1349                            centerPadding: "0px",
1350                        },
1351                    },
1352                    {
1353                        breakpoint: 577,
1354                        settings: {
1355                            slidesToShow: 1,
1356                            slidesToScroll: 1,
1357                            centerPadding: "0px",
1358                        },
1359                    },
1360                ],
1361            });
1362        }
1363    }
1364    portfolioSliderTwo();
1365
1366    if ($("#testimonial_demo_slider").length > 0) {
1367        $("#testimonial_demo_slider").slick({
1368            slidesToShow: 1,
1369            slidesToScroll: 1,
1370            dots: false,
1371            arrow: true,
1372            centerMode: true,
1373            centerPadding: "400px",
1374            speed: 1000,
1375            autoplay: true,
1376            infinite: true,
1377            lazyLoad: "ondemand",
1378            pauseOnHover: true,
1379            prevArrow: ".tprevs",
1380            nextArrow: ".tnexts",
1381            responsive: [
1382                {
1383                    breakpoint: 1300,
1384                    settings: {
1385                        slidesToShow: 1,
1386                        slidesToScroll: 1,
1387                        centerPadding: "400px",
1388                    },
1389                },
1390                {
1391                    breakpoint: 1000,
1392                    settings: {
1393                        slidesToShow: 1,
1394                        slidesToScroll: 1,
1395                        centerPadding: "80px",
1396                    },
1397                },
1398                {
1399                    breakpoint: 700,
1400                    settings: {
1401                        slidesToShow: 1,
1402                        slidesToScroll: 1,
1403                        centerPadding: "0px",
1404                    },
1405                },
1406            ],
1407        });
1408    }
1409
1410    /*---------------navbar js ---------------*/
1411    $("#landing_page ul li a,.scrolls,.menu_top").on("click", function (event) {
1412        var $anchor = $(this);
1413        $("html, body")
1414            .stop()
1415            .animate({
1416                    scrollTop: $($anchor.attr("href")).offset().top - 75,
1417                },
1418                1000,
1419                "easeInOutExpo"
1420            );
1421        event.preventDefault();
1422    });
1423
1424    // Closes responsive menu when a scroll trigger link is clicked
1425    $("#landing_page ul .nav-item:not(.dropdown) .nav-link").on(
1426        "click",
1427        function () {
1428            $(".navbar-collapse").collapse("hide");
1429        }
1430    );
1431
1432    function fAqactive() {
1433        $(".faq_accordian_two .card").on("click", function () {
1434            $(".faq_accordian_two .card").removeClass("active");
1435            $(this).addClass("active");
1436        });
1437    }
1438    fAqactive();
1439
1440
1441    if ($(".gadget_features_slider").length > 0) {
1442        $(".gadget_features_slider").slick({
1443            slidesToShow: 2,
1444            slidesToScroll: 1,
1445            autoplay: true,
1446            autoplaySpeed: 2000,
1447            dots: false,
1448            centerMode: true,
1449            centerPadding: "300px",
1450            rows: false,
1451            arrows: false,
1452            responsive: [
1453                {
1454                    breakpoint: 1400,
1455                    settings: {
1456                        centerPadding: "180px",
1457                    },
1458                },
1459                {
1460                    breakpoint: 1200,
1461                    settings: {
1462                        centerPadding: "60px",
1463                    },
1464                },
1465                {
1466                    breakpoint: 991,
1467                    settings: {
1468                        slidesToShow: 1,
1469                        slidesToScroll: 1,
1470                        centerPadding: "170px",
1471                    },
1472                },
1473                {
1474                    breakpoint: 767,
1475                    settings: {
1476                        slidesToShow: 1,
1477                        slidesToScroll: 1,
1478                        centerPadding: "70px",
1479                    },
1480                },
1481                {
1482                    breakpoint: 576,
1483                    settings: {
1484                        slidesToShow: 1,
1485                        slidesToScroll: 1,
1486                        centerMode: false,
1487                        centerPadding: "15px",
1488                    },
1489                },
1490            ],
1491        });
1492    }
1493
1494    $(".gadget_slider_area").on("init", function (e, slick) {
1495        var $firstAnimatingElements = $("div.slider_item:first-child").find(
1496            "[data-animation]"
1497        );
1498        doAnimations($firstAnimatingElements);
1499    });
1500    $(".gadget_slider_area").on("beforeChange", function (
1501        e,
1502        slick,
1503        currentSlide,
1504        nextSlide
1505    ) {
1506        var $animatingElements = $(
1507            'div.slider_item[data-slick-index="' + nextSlide + '"]'
1508        ).find("[data-animation]");
1509        doAnimations($animatingElements);
1510    });
1511    if ($(".gadget_slider_area").length > 0) {
1512        $(".gadget_slider_area").slick({
1513            autoplay: true,
1514            autoplaySpeed: 5000,
1515            dots: true,
1516            fade: true,
1517            rows: false,
1518            arrows: false,
1519        });
1520    }
1521
1522    function doAnimations(elements) {
1523        var animationEndEvents =
1524            "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";
1525        elements.each(function () {
1526            var $this = $(this);
1527            var $animationDelay = $this.data("delay");
1528            var $animationType = "animated " + $this.data("animation");
1529            $this.css({
1530                "animation-delay": $animationDelay,
1531                "-webkit-animation-delay": $animationDelay,
1532            });
1533            $this.addClass($animationType).one(animationEndEvents, function () {
1534                $this.removeClass($animationType);
1535            });
1536        });
1537    }
1538
1539    /*---------  SPLITTING TEXT -----------*/
1540    if ($(".gadget_slider_area").length) {
1541        Splitting();
1542    }
1543
1544    /*---------  data background -----------*/
1545    if ($('[data-background]').length > 0) {
1546        $('[data-background]').each(function () {
1547            $(this).css('background-image', 'url(' + $(this).attr('data-background') + ')');
1548        });
1549    }
1550
1551
1552
1553    /*---------  grid -----------*/
1554    var $grid = $('.grid').imagesLoaded(function () {
1555        $grid.masonry({
1556            itemSelector: '.grid-item',
1557            percentPosition: true,
1558            columnWidth: '.grid-sizer'
1559        });
1560    });
1561
1562    /*---------  testimonial_carousel -----------*/
1563    $('.agency_testimonial_carousel').owlCarousel({
1564        items: 1,
1565        margin: 30,
1566        nav: false,
1567        dots: true,
1568        loop: true,
1569        dotsData: true,
1570        autoplay: true,
1571        smartSpeed: 1000,
1572        autoplayTimeout: 5000,
1573        autoplayHoverPause: true
1574    });
1575
1576    if ($(".showcase_slider").length) {
1577        const sliders = $('.showcase_slider');
1578        sliders.on("init", function (e, slick) {
1579            var $firstAnimatingElements = $("div.slider:first-child").find(
1580                "[data-animation]"
1581            );
1582            doAnimations($firstAnimatingElements);
1583        });
1584        sliders.on("beforeChange", function (
1585            e,
1586            slick,
1587            currentSlide,
1588            nextSlide
1589        ) {
1590            var $animatingElements = $(
1591                'div.slider[data-slick-index="' + nextSlide + '"]'
1592            ).find("[data-animation]");
1593            doAnimations($animatingElements);
1594        });
1595
1596        function onSliderAfterChange(event, slick, currentSlide) {
1597            $(event.target).data('current-slide', currentSlide);
1598        }
1599
1600        function onSliderWheel(e) {
1601            var deltaY = e.originalEvent.deltaY,
1602                $currentSlider = $(e.currentTarget),
1603                currentSlickIndex = $currentSlider.data('current-slide') || 0;
1604
1605            if (
1606                // check when you scroll up
1607                (deltaY < 0 && currentSlickIndex == 0) ||
1608                // check when you scroll down
1609                (deltaY > 0 && currentSlickIndex == $currentSlider.data('slider-length') - 1)
1610            ) {
1611                return;
1612            }
1613
1614            e.preventDefault();
1615
1616            if (e.originalEvent.deltaY < 0) {
1617                $currentSlider.slick('slickPrev');
1618            } else {
1619                $currentSlider.slick('slickNext');
1620            }
1621        }
1622
1623        sliders.each(function (index, element) {
1624                var $element = $(element);
1625                $element.data('slider-length', $element.children().length);
1626            })
1627            .slick({
1628                infinite: false,
1629                slidesToShow: 1,
1630                vertical: true,
1631                verticalSwiping: true,
1632                slidesToScroll: 1,
1633                dots: false,
1634                arrows: false,
1635                responsive: [
1636                {
1637                    breakpoint: 991,
1638                    settings: {
1639                        verticalSwiping: false,
1640                        vertical: false,
1641                    },
1642                },
1643//                {
1644//                    breakpoint: 767,
1645//                    settings: {
1646//                        slidesToShow: 1,
1647//                        slidesToScroll: 1,
1648//                        centerPadding: "70px",
1649//                    },
1650//                },
1651//                {
1652//                    breakpoint: 576,
1653//                    settings: {
1654//                        slidesToShow: 1,
1655//                        slidesToScroll: 1,
1656//                        centerMode: false,
1657//                        centerPadding: "15px",
1658//                    },
1659//                },
1660            ],
1661            
1662            })
1663            .on('afterChange', onSliderAfterChange)
1664            .on('wheel', onSliderWheel);
1665
1666        function doAnimations(elements) {
1667            var animationEndEvents =
1668                "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";
1669            elements.each(function () {
1670                var $this = $(this);
1671                var $animationDelay = $this.data("delay");
1672                var $animationType = "animated " + $this.data("animation");
1673                $this.css({
1674                    "animation-delay": $animationDelay,
1675                    "-webkit-animation-delay": $animationDelay,
1676                });
1677                $this.addClass($animationType).one(animationEndEvents, function () {
1678                    $this.removeClass($animationType);
1679                });
1680            });
1681        }
1682    }
1683})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.