PageSourceSearch

https://marsview.ai/js/custom.js

js marsview.ai collected 2026-10-05 12:13:55 UTC 22,081 bytes, 752 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10"use strict";
11
12$(document).ready(function() {
13
14    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
15        AOS Animation Activation
16    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
17    AOS.init();
18    window.addEventListener("load", AOS.refresh);
19    AOS.init({
20        once: true
21    })
22
23    /*Mesonary active*/
24
25
26    var $grid = $('.iso-grid-wrap');
27    $grid.packery({
28        // options
29        itemSelector: '.isotope-item',
30        // gutter: 15,
31        resize: true
32    });
33    $grid.imagesLoaded().progress(function() {
34        $grid.packery('layout');
35    });
36
37
38    var $gridMas = $('.iso-mas-grid-wrap');
39    $gridMas.packery({
40        // options
41        itemSelector: '.isotope-mas-item',
42        // gutter: 15,
43        resize: true
44    });
45    $gridMas.imagesLoaded().progress(function() {
46        $gridMas.packery('layout');
47    });
48
49
50    // filter functions
51    var filterFns = {
52        // show if number is greater than 50
53        numberGreaterThan50: function() {
54            var number = $(this).find('.number').text();
55            return parseInt(number, 10) > 50;
56        },
57        // show if name ends with -ium
58        ium: function() {
59            var name = $(this).find('.name').text();
60            return name.match(/ium$/);
61        }
62    };
63
64    // bind filter button click
65    $('#isotope-filters').on('click', 'a', function() {
66        var filterValue = $(this).attr('data-filter');
67        // use filterFn if matches value
68        filterValue = filterFns[filterValue] || filterValue;
69        $grid.isotope({
70            filter: filterValue
71        });
72    });
73    // bind filter button click
74    $('#isotope-mas-filters').on('click', 'a', function() {
75        var filterValue = $(this).attr('data-filter');
76        // use filterFn if matches value
77        filterValue = filterFns[filterValue] || filterValue;
78        $gridMas.isotope({
79            filter: filterValue
80        });
81    });
82
83    // change is-checked class on buttons
84    $('.isotope-nav').each(function(i, buttonGroup) {
85        var $buttonGroup = $(buttonGroup);
86        $buttonGroup.on('click', 'a', function() {
87            $buttonGroup.find('.active').removeClass('active');
88            $(this).addClass('active');
89        });
90    });
91
92    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
93         Landing 2 Testimonial
94     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
95
96    if (jQuery(".testimonial-slider-l2-1").length > 0) {
97        $('.testimonial-slider-l2-1').slick({
98
99            slidesToShow: 3,
100            slidesToScroll: 1,
101            // autoplay: true,
102            swipe: true,
103            infinite: true,
104            autoplaySpeed: 2000,
105            appendArrows: '.l2-slider-arrow-1',
106            prevArrow: $('.prevl2'),
107            nextArrow: $('.nextl2'),
108            responsive: [{
109                    breakpoint: 1199,
110                    settings: {
111                        centerPadding: '10%',
112                        slidesToShow: 2
113                    }
114                },
115                {
116                    breakpoint: 767,
117                    settings: {
118                        centerPadding: '20px',
119                        slidesToShow: 1
120                    }
121                }
122
123            ]
124        });
125    }
126
127
128    /*l2 Testimonial slider button active*/
129
130    $(document).ready(function() {
131        $('.l2-slider-arrow-1 i').click(function() {
132            $('.l2-slider-arrow-1 i').removeClass("slick-active");
133            $(this).addClass("slick-active");
134        });
135    });
136
137    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
138        Landing 5 Product Slider
139    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
140    if (jQuery(".product-slider-l5").length > 0) {
141        $('.product-slider-l5').slick({
142
143            slidesToShow: 3,
144            slidesToScroll: 1,
145            // autoplay: true,
146            swipe: true,
147            infinite: true,
148            autoplaySpeed: 2000,
149            appendArrows: '.l5-product-slider',
150            prevArrow: $('.prev5-1'),
151            nextArrow: $('.next5-1'),
152            responsive: [{
153                    breakpoint: 1199,
154                    settings: {
155                        centerPadding: '10%',
156                        slidesToShow: 2
157                    }
158                },
159                {
160                    breakpoint: 767,
161                    settings: {
162                        centerPadding: '20px',
163                        slidesToShow: 1
164                    }
165                }
166
167            ]
168        });
169    }
170
171
172    /* Landing 5 Product Slider button active*/
173
174    $(document).ready(function() {
175        $('.l5-product-slider i').click(function() {
176            $('.l5-product-slider i').removeClass("slick-active");
177            $(this).addClass("slick-active");
178        });
179    });
180
181
182
183    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
184        Landing 7 Hero slider
185    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
186    if (jQuery(".hero-l7-slider").length > 0) {
187        $('.hero-l7-slider').slick({
188            //  autoplay: true,
189            slidesToShow: 1,
190            slidesToScroll: 1,
191            dots: true,
192            swipe: true,
193            infinite: true,
194            appendArrows: '.testimonial-one-button',
195            prevArrow: '<button type="button" class="slick-prev"><i class="icon icon-minimal-left"></i></button>',
196            nextArrow: '<button type="button" class="slick-next"><i class="icon icon-minimal-right"></i></button>',
197            autoplaySpeed: 2000,
198            responsive: [{
199                    breakpoint: 1199,
200                    settings: {
201                        centerPadding: '10%',
202                        slidesToShow: 1
203                    }
204                },
205                {
206                    breakpoint: 767,
207                    settings: {
208                        centerPadding: '20px',
209                        slidesToShow: 1
210                    }
211                }
212
213            ]
214        });
215    }
216
217
218
219
220
221
222
223    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
224          Counter Up Activation
225    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
226    $('.counter').counterUp({
227        delay: 100,
228        time: 2000
229    });
230
231
232
233
234
235    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
236           Sticky Header
237    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
238    window.onscroll = function() {
239        scrollFunction();
240    };
241
242    function scrollFunction() {
243        if (
244            document.body.scrollTop > 50 ||
245            document.documentElement.scrollTop > 50
246        ) {
247            $(".site-header--sticky").addClass("scrolling");
248        } else {
249            $(".site-header--sticky").removeClass("scrolling");
250        }
251        if (
252            document.body.scrollTop > 700 ||
253            document.documentElement.scrollTop > 700
254        ) {
255            $(".site-header--sticky.scrolling").addClass("reveal-header");
256        } else {
257            $(".site-header--sticky.scrolling").removeClass("reveal-header");
258        }
259    }
260
261
262    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
263           Prcing Dynamic Script
264    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
265    $('#table-price-value .toggle-btn').on("click", function(e) {
266        console.log($(e.target).parent().parent().hasClass("monthly-active"));
267        $(e.target).toggleClass("clicked");
268        if ($(e.target).parent().parent().hasClass("monthly-active")) {
269            $(e.target).parent().parent().removeClass("monthly-active").addClass("yearly-active");
270        } else {
271            $(e.target).parent().parent().removeClass("yearly-active").addClass("monthly-active");
272        }
273    });
274
275    $("[data-pricing-trigger]").on("click", function(e) {
276        $(e.target).addClass("active").siblings().removeClass("active");
277        var target = $(e.target).attr("data-target");
278        console.log($(target).attr("data-value-active") == "monthly");
279        if ($(target).attr("data-value-active") == "monthly") {
280            $(target).attr("data-value-active", "yearly");
281        } else {
282            $(target).attr("data-value-active", "monthly");
283        }
284    });
285
286
287    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
288           Smooth Scroll
289    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
290
291    $(".goto").on("click", function(event) {
292        if (this.hash !== "") {
293            event.preventDefault();
294            var hash = this.hash;
295            $("html, body").animate({
296                    scrollTop: $(hash).offset().top,
297                },
298                2000,
299                function() {
300                    window.location.hash = hash;
301                }
302            );
303        } // End if
304    });
305
306
307
308    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
309          Preloader Activation
310    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
311
312    $(window).load(function() {
313        setTimeout(function() {
314            $("#loading").fadeOut(500);
315        }, 500);
316        setTimeout(function() {
317            $("#loading").remove();
318        }, 500);
319    });
320
321
322
323
324    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
325          Home-2- testimonial  Slider Appex
326    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
327    var slickContentslide = {
328        infinite: true,
329        speed: 300,
330        slidesToShow: 1,
331        asNavFor: '.l2-testimonial-image-slider',
332        adaptiveHeight: false,
333        prevArrow: $('.prev3'),
334        nextArrow: $('.next3'),
335        fade: true,
336        cssEase: 'linear'
337    }
338
339    var slickImgslide2 = {
340        infinite: true,
341        speed: 300,
342        slidesToShow: 1,
343        adaptiveHeight: false,
344        asNavFor: '.l2-testimonial-text-slider',
345        prevArrow: $('.prev3'),
346        nextArrow: $('.next3'),
347        fade: true,
348        cssEase: 'linear'
349    }
350
351
352    $('.l2-testimonial-image-slider').slick(slickImgslide2);
353    $('.l2-testimonial-text-slider').slick(slickContentslide);
354
355    /*l2 Testimonial slider button active*/
356
357    $(document).ready(function() {
358        $('.next-prev-btn3 span').click(function() {
359            $('.next-prev-btn3 span').removeClass("active");
360            $(this).addClass("active");
361        });
362    });
363
364
365
366    /*----------------------------------------
367            Accordian Plugin
368        ----------------------------------------*/
369
370    (function($) {
371        $('.accordion > li:eq(0) a').addClass('active').next().slideDown();
372
373        $('.accordion a').click(function(j) {
374            var dropDown = $(this).closest('li').find('p');
375
376            $(this).closest('.accordion').find('p').not(dropDown).slideUp();
377
378            if ($(this).hasClass('active')) {
379                $(this).removeClass('active');
380            } else {
381                $(this).closest('.accordion').find('a.active').removeClass('active');
382                $(this).addClass('active');
383            }
384
385            dropDown.stop(false, true).slideToggle();
386
387            j.preventDefault();
388        });
389    })(jQuery);
390
391
392    /*Accordian L-12 li active shade*/
393
394    $(document).ready(function() {
395        $('.faq-l-12-1 li').click(function() {
396            $('.faq-l-12-1 li').removeClass("active");
397            $(this).addClass("active");
398        });
399    });
400
401
402    /*FAQ TAB li active*/
403
404    $(document).ready(function() {
405        $('.faq-main-tab-area li').click(function() {
406            $('.faq-main-tab-area li').removeClass("active");
407            $(this).addClass("active");
408        });
409    });
410
411    /*Pagination active*/
412
413    $(document).ready(function() {
414        $('.shop-pagination a').click(function() {
415            $('.shop-pagination a').removeClass("active");
416            $(this).addClass("active");
417        });
418    });
419
420
421    $(document).ready(function() {
422        $('.blog-pagination a').click(function() {
423            $('.blog-pagination a').removeClass("active");
424            $(this).addClass("active");
425        });
426    });
427
428    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
429          Landing 11 Testimonial Slider
430      <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
431
432    if (jQuery(".testimonial-slider-l-11").length > 0) {
433        $(".testimonial-slider-l-11").slick({
434            dots: false,
435            arrows: true,
436            infinite: true,
437            speed: 500,
438            slidesToShow: 2,
439            slidesToScroll: 2,
440            prevArrow: '<div class="l-11-slide-btn slick-prev focus-reset"><img loading="lazy" src="https://d1sv72xa22bi8g.cloudfront.net/assets_four_zero/l2/long-arrow-left.png" alt=""></div>',
441            nextArrow: '<div class="l-11-slide-btn slick-next focus-reset"><img loading="lazy" src="https://d1sv72xa22bi8g.cloudfront.net/assets_four_zero/l2/long-arrow-right.png" alt=""></div>',
442            responsive: [{
443                breakpoint: 992,
444                settings: {
445                    slidesToShow: 1,
446                    slidesToScroll: 1,
447                },
448            }, ],
449        });
450    }
451
452
453    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
454         Landing 12 Testimonial Slider
455     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
456
457    if (jQuery(".testimonial-slider-l-12").length > 0) {
458        $('.testimonial-slider-l-12').slick({
459
460            slidesToShow: 3,
461            slidesToScroll: 1,
462            // autoplay: true,
463            swipe: true,
464            infinite: true,
465            autoplaySpeed: 2000,
466            appendArrows: '.l-12-slider-arrow-1',
467            prevArrow: $('.prev9'),
468            nextArrow: $('.next9'),
469            responsive: [{
470                    breakpoint: 1199,
471                    settings: {
472                        centerPadding: '10%',
473                        slidesToShow: 2
474                    }
475                },
476                {
477                    breakpoint: 767,
478                    settings: {
479                        centerPadding: '20px',
480                        slidesToShow: 1
481                    }
482                }
483
484            ]
485        });
486    }
487
488    /*Landing 12 Testimonial slider arrow active*/
489
490    $(document).ready(function() {
491        $('.l-12-slider-arrow-1 i').click(function() {
492            $('.l-12-slider-arrow-1 i').removeClass("slick-active");
493            $(this).addClass("slick-active");
494        });
495    });
496
497
498    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
499         Landing 16 Screenshot Slider
500     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
501
502    if (jQuery(".screenshot-slider").length > 0) {
503
504        $('.screenshot-slider').slick({
505            slidesToShow: 5,
506            slidesToScroll: 1,
507            dots: true,
508            arrows: true,
509            prevArrow: '<button class="l-16-slide-btn slick-prev focus-reset "><i class="icon icon-stre-right"></i></button>',
510            nextArrow: '<button class="l-16-slide-btn active slick-next focus-reset"><i class="icon icon-stre-left"></i></button>',
511            centerMode: true,
512            centerPadding: '130px',
513            autoplay: true,
514            autoplaySpeed: 3000,
515            infinite: true,
516            easing: 'linear',
517            speed: 800,
518            appendDots: ".screenshots-dots-l-16",
519            responsive: [{
520                    breakpoint: 1800,
521                    settings: {
522                        slidesToShow: 5,
523                        centerPadding: '100px',
524
525                    }
526                },
527                {
528                    breakpoint: 1750,
529                    settings: {
530                        slidesToShow: 5,
531                        centerPadding: '20px',
532
533                    }
534                },
535                {
536                    breakpoint: 1670,
537                    settings: {
538                        slidesToShow: 4,
539                        centerPadding: '60px',
540
541                    }
542                },
543                {
544                    breakpoint: 1640,
545                    settings: {
546                        slidesToShow: 3,
547                        centerPadding: '20px',
548
549                    }
550                },
551                {
552                    breakpoint: 1550,
553                    settings: {
554                        slidesToShow: 3,
555                        centerPadding: '30px',
556
557                    }
558                },
559                {
560                    breakpoint: 1450,
561                    settings: {
562                        slidesToShow: 3,
563                        centerPadding: '10px',
564
565                    }
566                },
567                {
568                    breakpoint: 1350,
569                    settings: {
570                        slidesToShow: 3,
571                        centerPadding: '20px',
572
573                    }
574                },
575                {
576                    breakpoint: 1250,
577                    settings: {
578                        slidesToShow: 3,
579                        centerPadding: '10px',
580
581                    }
582                },
583                {
584                    breakpoint: 1150,
585                    settings: {
586                        slidesToShow: 3,
587                        centerPadding: '0px',
588
589                    }
590                },
591                {
592                    breakpoint: 1050,
593                    settings: {
594                        slidesToShow: 3,
595                        centerPadding: '10px',
596
597                    }
598                },
599                {
600                    breakpoint: 950,
601                    settings: {
602                        slidesToShow: 1,
603                        centerPadding: '0',
604
605                    }
606                },
607                {
608                    breakpoint: 850,
609                    settings: {
610                        slidesToShow: 1,
611                        centerPadding: '20px',
612                    }
613                },
614                {
615                    breakpoint: 750,
616                    settings: {
617                        slidesToShow: 1,
618                        centerPadding: '20px',
619                    }
620                },
621                {
622                    breakpoint: 650,
623                    settings: {
624                        slidesToShow: 1,
625                        centerPadding: '10px',
626                    }
627                },
628                {
629                    breakpoint: 515,
630                    settings: {
631                        slidesToShow: 1,
632                        autoplay: true,
633                        centerPadding: '0px',
634                    }
635                },
636                {
637                    breakpoint: 480,
638                    settings: {
639                        slidesToShow: 1,
640                        autoplay: true,
641                        centerPadding: '0px',
642                        arrows: false,
643                    }
644                }
645
646            ]
647        });
648    }
649
650    /*Landing L-16 slider arrow active*/
651
652    $(document).ready(function() {
653        $('.l-16-slide-btn').click(function() {
654            $('.l-16-slide-btn').removeClass("active");
655            $(this).addClass("active");
656        });
657    });
658
659    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
660           Landing 16 testimonial Slider
661       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
662
663
664    if (jQuery(".testimonial-slider-l-16").length > 0) {
665        $(".testimonial-slider-l-16").slick({
666            dots: false,
667            arrows: true,
668            infinite: true,
669            speed: 500,
670            slidesToShow: 2,
671            slidesToScroll: 2,
672            responsive: [{
673                breakpoint: 992,
674                settings: {
675                    slidesToShow: 1,
676                    slidesToScroll: 1,
677                },
678            }, ],
679        });
680    }
681
682    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
683            Landing 18 testimonial Slider
684        <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
685
686    if (jQuery(".testimonial-card-slider-l-18").length > 0) {
687        $(".testimonial-card-slider-l-18").slick({
688            dots: true,
689            arrows: false,
690            infinite: true,
691            speed: 500,
692            slidesToShow: 1,
693            slidesToScroll: 1,
694            responsive: [{
695                breakpoint: 992,
696                settings: {
697                    slidesToShow: 1,
698                    slidesToScroll: 1,
699                },
700            }, ],
701        });
702    }
703
704
705    /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>      
706         Product Details SLider portfolio-details-3
707    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
708
709    if (jQuery(".product-details-vertical-slider").length > 0) {
710        $('.product-details-vertical-slider').slick({
711            dots: false,
712            infinite: true,
713            speed: 500,
714            slidesToShow: 3,
715            slidesToScroll: 1,
716            arrows: false,
717            focusOnSelect: true,
718            vertical: true,
719            asNavFor: '.product-details-slider',
720            responsive: [{
721                    breakpoint: 768,
722                    settings: {
723                        vertical: false
724                    }
725                },
726                {
727                    breakpoint: 575,
728                    settings: {
729                        vertical: false
730                    }
731                }
732            ]
733        });
734    }
735
736    if (jQuery(".product-details-slider").length > 0) {
737        $('.product-details-slider').slick({
738            dots: false,
739            infinite: true,
740            speed: 500,
741            slidesToShow: 1,
742            slidesToScroll: 1,
743            arrows: false,
744            fade: true,
745            asNavFor: '.product-details-vertical-slider'
746        });
747    }
748
749
750
751});
752}

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.