PageSourceSearch

https://express-circuits.co.uk/wp-content/themes/finbuzz/assets/js/main.js?ver=2.1.0

js express-circuits.co.uk collected 2026-10-06 02:07:06 UTC 34,954 bytes, 1,005 lines download raw bytes

1jQuery(document).ready(function ($) {
2    "use strict";
3    var $grid;
4
5    $('a[href=\\#]').on('click', function (e) {
6        e.preventDefault();
7    });
8    /*ISOTOPE HTML END*/
9
10    /* Theia Side Bar */
11    if (typeof ($.fn.theiaStickySidebar) !== "undefined") {
12        $('.has-sidebar .fixed-bar-coloum').theiaStickySidebar({'additionalMarginTop': 150});
13        $('.shop-page .fixed-bar-coloum').theiaStickySidebar({'additionalMarginTop': 150});
14    }
15
16    /* Header Search */
17    $('a[href="#header-search"]').on("click", function (event) {
18        event.preventDefault();
19        $("#header-search").addClass("open");
20        $('#header-search > form > input[type="search"]').focus();
21    });
22
23    $("#header-search, #header-search button.close").on("click keyup", function (
24        event
25    ) {
26        if (
27            event.target === this ||
28            event.target.className === "close" ||
29            event.keyCode === 27
30        ) {
31            $(this).removeClass("open");
32        }
33    });
34
35    /* Scroll to top */
36    $('.scrollup').on('click', function () {
37        $('html, body').animate({scrollTop: 0}, 800);
38        return false;
39    });
40
41    $(window).on('scroll', function () {
42        if ($(window).scrollTop() > 200) {
43            $('.scrollup').addClass('back-top');
44        } else {
45            $('.scrollup').removeClass('back-top');
46        }
47    });
48
49    /* Mobile menu */
50    $(window).on('scroll', function () {
51        if ($(this).scrollTop() > 100) {
52            $("body").addClass("not-top");
53            $("body").removeClass("top");
54        } else {
55            $("body").addClass("top");
56            $("body").removeClass("not-top");
57        }
58    });
59
60    /* Search Box */
61    $(".search-box-area").on('click', '.search-button, .search-close', function (event) {
62        event.preventDefault();
63        if ($('.search-text').hasClass('active')) {
64            $('.search-text, .search-close').removeClass('active');
65        } else {
66            $('.search-text, .search-close').addClass('active');
67        }
68        return false;
69    });
70
71
72    $(".additional-menu-area").on('click', function () {    
73        $("body").toggleClass("side-trigger-class");
74    });
75
76    var menuArea = $('.additional-menu-area');
77    menuArea.on('click', '.side-menu-trigger', function (e) {
78        e.preventDefault();
79        var self = $(this);
80        if (self.hasClass('side-menu-open')) {
81            $('.sidenav').css('transform', 'translateX(0%)');
82            if (!menuArea.find('> .rt-cover').length) {
83                menuArea.append("<div class='rt-cover'></div>");
84            }
85            self.removeClass('side-menu-open').addClass('side-menu-close');
86        }
87    });
88
89    function closeMenuArea() {
90        var trigger = $('.side-menu-trigger', menuArea);
91        trigger.removeClass('side-menu-close').addClass('side-menu-open');
92        if (menuArea.find('> .rt-cover').length) {
93            menuArea.find('> .rt-cover').remove();
94        }
95        $('.sidenav').css('transform', 'translateX(100%)');
96    }
97
98    menuArea.on('click', '.closebtn', function (e) {
99        e.preventDefault();
100        closeMenuArea();
101    });
102
103    $(document).on('click', '.rt-cover', function () {
104        closeMenuArea();
105    });
106
107    /*-------------------------------------
108    MeanMenu activation code
109    --------------------------------------*/
110    var a = $('.offscreen-navigation .menu');
111    if (a.length) {
112        $(".menu-item-has-children").append("<span></span>");
113        $(".page_item_has_children").append("<span></span>");
114
115        a.children("li").addClass("menu-item-parent");
116
117        $('.menu-item-has-children > span').on('click', function () {
118            var _self = $(this),
119                sub_menu = _self.parent().find('>.sub-menu');
120            if (_self.hasClass('open')) {
121                sub_menu.slideUp();
122                _self.removeClass('open');
123            } else {
124                sub_menu.slideDown();
125                _self.addClass('open');
126            }
127        });
128        $('.page_item_has_children > span').on('click', function () {
129            var _self = $(this),
130                sub_menu = _self.parent().find('>.children');
131            if (_self.hasClass('open')) {
132                sub_menu.slideUp();
133                _self.removeClass('open');
134            } else {
135                sub_menu.slideDown();
136                _self.addClass('open');
137            }
138        });
139    }
140
141    $('.mean-bar .sidebarBtn').on('click', function (e) {
142        e.preventDefault();
143        $('body').toggleClass('slidemenuon');
144    });
145
146    $(window).on("scroll", function () {
147        if ($(".rt-header-style11").hasClass("sticky-on")) {
148            let stickyPlaceHolder = $("#sticky-placeholder"),
149                menu = $("#navbar-wrap"),
150                menuH = menu.outerHeight(),
151                topbarH = $("#topbar-wrap").outerHeight() || 0,
152                targrtScroll = topbarH,
153                header = $(".rt-header-style11");
154            if ($(window).scrollTop() > targrtScroll) {
155                header.addClass("sticky");
156                stickyPlaceHolder.height(menuH);
157            } else {
158                header.removeClass("sticky");
159                stickyPlaceHolder.height(0);
160            }
161        }
162    });
163
164    $(window).on("scroll", function () {
165        if ($("#header-12").hasClass("header-area")) {
166            let stickyPlaceHolder = $("#sticky-placeholder"),
167                menu = $("#navbar-wrap"),
168                menuH = menu.outerHeight(),
169                topbarH = $("#topbar-wrap").outerHeight() || 0,
170                targrtScroll = topbarH,
171                header = $("#header-12");
172            if ($(window).scrollTop() > targrtScroll) {
173                header.addClass("sticky");
174                stickyPlaceHolder.height(menuH);
175            } else {
176                header.removeClass("sticky");
177                stickyPlaceHolder.height(0);
178            }
179        }
180    });
181    
182    /*Header and mobile menu stick*/
183    $(window).on('scroll', function () {
184        if ($('body').hasClass('sticky-header')) {
185
186            // Sticky header
187            var stickyPlaceHolder = $("#rt-sticky-placeholder"),
188                menu = $("#header-menu"),
189                menuH = menu.outerHeight(),
190                topHeaderH = $('#tophead').outerHeight() || 0,
191                middleHeaderH = $('#middleHeader').outerHeight() || 0,
192                targrtScroll = topHeaderH + middleHeaderH;
193            if ($(window).scrollTop() > targrtScroll) {
194                menu.addClass('rt-sticky');
195                stickyPlaceHolder.height(menuH);
196            } else {
197                menu.removeClass('rt-sticky');
198                stickyPlaceHolder.height(0);
199            }
200
201            // Sticky mobile header
202            var stickyPlaceHolder = $("#mobile-sticky-placeholder"),
203                menubar = $("#mobile-men-bar"),
204                menubarH = menubar.outerHeight(),
205                topHeaderH = $('#mobile-top-fix').outerHeight() || 0,
206                total_height =topHeaderH;
207            if ($(window).scrollTop() > total_height) {
208                $("#meanmenu").addClass('mobile-sticky');
209                stickyPlaceHolder.height(menubarH);
210            } else {
211                $("#meanmenu").removeClass('mobile-sticky');
212                stickyPlaceHolder.height(0);
213            }
214
215        }
216    });
217
218    /*=============================
219// video pop up 
220===============================*/
221
222    let videoPopUp = $(".play-btn");
223    if (videoPopUp.length) {
224        videoPopUp.magnificPopup({
225            type: "iframe",
226            iframe: {
227                markup:
228                    '<div class="mfp-iframe-scaler">' +
229                    '<div class="mfp-close"></div>' +
230                    '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' +
231                    "</div>",
232                patterns: {
233                    youtube: {
234                        index: "youtube.com/",
235                        id: "v=",
236                        src: "https://www.youtube.com/embed/%id%?autoplay=1",
237                    },
238                    vimeo: {
239                        index: "vimeo.com/",
240                        id: "/",
241                        src: "//player.vimeo.com/video/%id%?autoplay=1",
242                    },
243                    gmaps: {
244                        index: "//maps.google.",
245                        src: "%id%&output=embed",
246                    },
247                },
248                srcAction: "iframe_src",
249            },
250        });
251    }
252
253    /* Woocommerce Shop change view */
254    $('#shop-view-mode li a').on('click', function () {
255        $('body').removeClass('product-grid-view').removeClass('product-list-view');
256
257        if ($(this).closest('li').hasClass('list-view-nav')) {
258            $('body').addClass('product-list-view');
259            Cookies.set('shopview', 'list');
260        } else {
261            $('body').addClass('product-grid-view');
262            Cookies.remove('shopview');
263        }
264        return false;
265    });
266
267    // Popup - Used in video
268    if (typeof $.fn.magnificPopup == 'function') {
269        $('.rt-video-popup').magnificPopup({
270            type: 'iframe',
271            mainClass: 'mfp-fade',
272            removalDelay: 160,
273            preloader: false,
274            fixedContentPos: false,
275        });
276    }
277    if (typeof $.fn.magnificPopup == 'function') {
278        if ($('.zoom-gallery').length) {
279            $('.zoom-gallery').each(function () { // the containers for all your galleries
280                $(this).magnificPopup({
281                    delegate: 'a.finbuzz-popup-zoom', // the selector for gallery item
282                    type: 'image',
283                    gallery: {
284                        enabled: true
285                    }
286                });
287            });
288        }
289    }
290     /* when product quantity changes, update quantity attribute on add-to-cart button */
291     $("form.cart").on("change", "input.qty", function () {
292        if (this.value === "0")
293            this.value = "1";
294
295        $(this.form).find("button[data-quantity]").data("quantity", this.value);
296    });
297
298    /* remove old "view cart" text, only need latest one thanks! */
299    $(document.body).on("adding_to_cart", function () {
300        $("a.added_to_cart").remove();
301    });
302
303    /*variable ajax cart end*/
304
305
306    // Quantity
307    $(document).on('click', '.quantity .input-group-btn .quantity-btn', function () {
308        var $input = $(this).closest('.quantity').find('.input-text');
309
310        if ($(this).hasClass('quantity-plus')) {
311            $input.trigger('stepUp').trigger('change');
312        }
313
314        if ($(this).hasClass('quantity-minus')) {
315            $input.trigger('stepDown').trigger('change');
316        }
317    });
318    
319
320    if( $('.header-shop-cart').length ){
321        $( document ).on('click', '.remove-cart-item', function(){
322          var product_id = $(this).attr("data-product_id");
323          var loader_url = $(this).attr("data-url");
324          var main_parent = $(this).parents('li.menu-item.dropdown');
325          var parent_li = $(this).parents('li.cart-item');
326          parent_li.find('.remove-item-overlay').css({'display':'block'});
327          $.ajax({
328            type: 'post',
329            dataType: 'json',
330            url: finbuzzObj.ajaxURL,
331            data: { action: "neeon_product_remove",
332                product_id: product_id
333            },success: function(data){
334              main_parent.html( data["mini_cart"] );
335              $( document.body ).trigger( 'wc_fragment_refresh' );
336            },error: function(xhr, status, error) {
337              $('.header-shop-cart').children('ul.minicart').html('<li class="cart-item"><p class="cart-update-pbm text-center">'+ finbuzzObj.cart_update_pbm +'</p></li>');
338            }
339          });
340          return false;
341        });
342    }
343    // Wishlist
344    $(document).on('click', '.rdtheme-wishlist-icon', function () {
345        if ($(this).hasClass('rdtheme-add-to-wishlist') && typeof yith_wcwl_l10n != "undefined") {
346            var $obj = $(this),
347                productId = $obj.data('product-id'),
348                afterTitle = $obj.data('title-after');
349            var data = {
350                'action': 'finbuzz_add_to_wishlist',
351                'context': 'frontend',
352                'nonce': $obj.data('nonce'),
353                'add_to_wishlist': productId
354            };
355
356            $.ajax({
357                url: yith_wcwl_l10n.ajax_url,
358                type: 'POST',
359                data: data,
360                success: function success(data) {
361                    if (data['result'] != 'error') {
362                        $obj.removeClass('ajaxloading');
363                        $obj.find('.wishlist-icon').removeClass('fa fa-heart').addClass('fas fa-heart').show();
364                        $obj.removeClass('rdtheme-add-to-wishlist').addClass('rdtheme-remove-from-wishlist');
365                        $obj.find('span').html(afterTitle);
366                        $('body').trigger('rt_added_to_wishlist', [productId]);
367                    } else {
368                        console.log(data['message']);
369                    }
370                }
371            });
372
373            return false;
374        }
375    });
376});
377
378//function Load
379function finbuzz_content_load_scripts() {
380    var $ = jQuery;
381    //Preloader
382
383    $('#preloader').fadeOut('slow', function () {
384        $(this).remove();
385    });
386
387
388     /*-------------------------------------
389    Slick Slider
390    -------------------------------------*/
391    $('.slick-carousel').each(function() {
392        $('.slick-carousel').not('.slick-initialized').slick();
393    });
394
395    /*---------------------------------------
396      Background Parallax
397      --------------------------------------- */
398      if ($(".rt-parallax-bg-yes").length) {
399        $(".rt-parallax-bg-yes").each(function () {
400            var speed = $(this).data('speed');
401            $(this).parallaxie({
402                speed: speed ? speed : 0.5,
403                offset: 0,
404            });
405        })
406    }
407
408    //button hover
409
410    $(".button-arrow").hover(function () {
411        $(".button-arrow").removeClass("active");
412        $(this).addClass("active");
413    });
414
415    /*===================================
416	// Main Banner
417    =====================================*/
418    $('.main-banner-slider').each(function() {
419            var $this = $(this);
420            var settings = $(this).data('options');
421            var autoplayconditon = settings['auto'];
422            var $pagination = $this.find('.swiper-pagination')[0];
423            var $next = $this.find('.swiper-button-next')[0];
424            var $prev = $this.find('.swiper-button-prev')[0];
425        var mainSlider = new Swiper(this, {
426            slidesPerView: 1,
427            loop: settings['loop'],
428            slideToClickedSlide: true,
429            effect: "fade",
430            autoplay:autoplayconditon ? {delay:settings['autoplay']['delay']}:false,
431            speed:settings['speed'],
432            navigation: {
433            nextEl: $next,
434            prevEl: $prev,
435            },
436            pagination: {
437                el: $pagination,
438                type: 'bullets',
439                clickable:'true',
440            },
441            on: {
442                slideChange: function () {
443                    $('.rt-video-popup').magnificPopup({
444                        type: 'iframe',
445                        mainClass: 'mfp-fade',
446                        removalDelay: 160,
447                        preloader: false,
448                        fixedContentPos: false,
449                    });
450                },
451            },
452        });
453        mainSlider.init();
454
455    });
456
457    /*===================================
458	// Main Banner
459    =====================================*/
460    $('.main-banner-slider3').each(function() {
461        var $this = $(this);
462        var settings = $(this).data('options');
463        var autoplayconditon = settings['auto'];
464        var $next = $this.find('.swiper-button-next')[0];
465        var $prev = $this.find('.swiper-button-prev')[0];
466        var mainSlider3 = new Swiper(this, {
467            slidesPerView: 1,
468            loop: settings['loop'],
469            slideToClickedSlide: true,
470            autoplay:autoplayconditon,
471            autoplayTimeout:settings['autoplay']['delay'],
472            speed:settings['speed'],
473            navigation: {
474                nextEl: $next,
475                prevEl: $prev,
476            },
477        });
478    mainSlider3.init();
479
480    });
481
482
483    //Horizontal Thumbnail slider 
484
485    $('.finbuzz-horizontal-slider').each(function(){
486        var slider_wrap = $(this);
487        var $pagination = slider_wrap.find('.swiper-pagination')[0];
488        var $next = slider_wrap.find('.swiper-button-next')[0];
489        var $prev = slider_wrap.find('.swiper-button-prev')[0];
490        var target_thumb_slider = slider_wrap.find('.horizontal-thumb-slider');
491        var thumb_slider = null;
492        if(target_thumb_slider.length){
493            var settings = target_thumb_slider.data('xld');
494            var autoplayconditon= settings['auto'];
495            thumb_slider = new Swiper(target_thumb_slider[0],
496                {
497                autoplay:   autoplayconditon,
498                autoplayTimeout: settings['autoplay']['delay'],
499                speed: settings['speed'],
500                loop:  settings['loop'],
501                spaceBetween:  settings['spaceBetween'],
502                breakpoints: {
503                    0: {
504                        slidesPerView: settings['breakpoints']['0']['slidesPerView'],
505                    },
506                    576: {
507                        slidesPerView: settings['breakpoints']['576']['slidesPerView'],
508                    },
509                    768: {
510                        slidesPerView: settings['breakpoints']['768']['slidesPerView'],
511                    },
512                    992: {
513                        slidesPerView: settings['breakpoints']['992']['slidesPerView'],
514                    },
515                    1200: {
516                        slidesPerView:  settings['breakpoints']['1200']['slidesPerView'],
517                    },            
518                },
519                pagination: {
520                    el: $pagination,
521                    type: "progressbar",
522                },
523                
524            });
525        }
526
527        var target_slider = slider_wrap.find('.horizontal-slider');
528        if(target_slider.length){
529            var settings = target_slider.data('xld');
530            new Swiper(target_slider[0], {
531                autoplay:  settings && settings['auto'],
532                autoplayTimeout: settings['autoplay']['delay'],
533                speed: settings && settings['speed'],
534                loop:  settings && settings['loop'],
535                effect: settings && settings['effect'],
536                thumbs: {
537                  swiper: thumb_slider,
538                },
539                navigation: {
540                    nextEl: $next,
541                    prevEl: $prev,
542                },
543            });
544        }
545    });
546
547    /*===================================
548	 // Section background image
549	====================================*/
550    imageFunction();
551
552    function imageFunction() {
553        $("[data-bg-image]").each(function () {
554        let img = $(this).data("bg-image");
555        $(this).css({
556            backgroundImage: "url(" + img + ")",
557        });
558        });
559    }
560
561
562
563    /*=================================
564   // counter up
565   ==================================*/
566
567   let counter=true;
568   $(".counter-appear").appear();
569   $(".counter-appear").on("appear", function () {
570    if (counter) {
571        // Only number counter
572            $(".counterUp").each(function () {
573                var $this = $(this);
574                let duration=$(this).data('duration');
575                jQuery({
576                    Counter: 0,
577                }).animate(
578                    {
579                    Counter: $this.attr("data-counter"),
580                    },
581                    {
582                    duration: duration,
583                    easing: "swing",
584                    step: function () {
585                        var num = Math.ceil(this.Counter).toString();
586                        if (Number(num) > 99999) {
587                        while (/(\d+)(\d{3})/.test(num)) {
588                            num = num.replace(/(\d+)(\d{3})/, "");
589                        }
590                        }
591                        $this.html(num);
592                    },
593                    }
594                );
595            });
596
597            // pie chart
598        $(".chart-bar").each(function(){
599            let circleSettings=$(this).data('circle-options');
600            $(this).easyPieChart({
601                barColor: circleSettings.fg_color,
602                trackColor: circleSettings.bg_color,
603                scaleColor: false,
604                lineWidth: circleSettings.circle_border_size,
605                size: circleSettings.circle_size,
606                lineCap: "square",
607                animate: circleSettings.animation_speed,
608            });
609        });
610        counter = false;
611        }
612   });
613
614    //initialize swiper when document ready
615    $('.rt-swiper-container').each(function () {
616        var swiper = $(this),
617            autoplay = swiper.data('autoplay'),
618            autoplayDelay = swiper.data('autoplay-timeout') || '',
619            speed = swiper.data('speed') || '',
620            loop = swiper.data('loop') || true,
621            slidesPerView = swiper.data('slides-per-view') || 1,
622            spaceBetween = swiper.data('space-between'),
623            centeredSlides = swiper.data('centered-slides'),
624            rXsmall = swiper.data("r-x-small"),
625            rSmall = swiper.data("r-small"),
626            rMedium = swiper.data("r-medium"),
627            rLarge = swiper.data("r-large"),
628            rXlarge = swiper.data("r-x-large");
629        var $swiper = new Swiper('.rt-swiper-container', {
630            // Optional parameters
631            autoplay: autoplay ? {delay:autoplayDelay} : false,
632            speed: speed ? speed : 2000,
633            loop: loop ? true : false,
634            slidesPerView: slidesPerView ? slidesPerView : 1,
635            spaceBetween: spaceBetween ? spaceBetween : 10,
636            centeredSlides: centeredSlides ? true : false,
637            pagination: {
638                el: '.swiper-pagination',
639                clickable: true,
640            },
641            navigation: {
642                nextEl: '.swiper-button-next',
643                prevEl: '.swiper-button-prev',
644            },
645            breakpoints: {
646                0: {
647                    slidesPerView: rXsmall ? rXsmall : 1,
648                },
649                576: {
650                    slidesPerView: rSmall ? rSmall : 2,
651                },
652                768: {
653                    slidesPerView: rMedium ? rMedium : 3,
654                },
655                992: {
656                    slidesPerView: rLarge ? rLarge : 4,
657                },
658                1200: {
659                    slidesPerView: rXlarge ? rXlarge : 1,
660                }
661            }
662        });
663    });
664
665    $('.rt-related-slider').each(function() {
666        var $this = $(this);
667        var settings = $this.data('xld');
668        var autoplayconditon= settings['auto'];
669        var $pagination = $this.find('.swiper-pagination')[0];
670        var $next = $this.find('.swiper-button-next')[0];
671        var $prev = $this.find('.swiper-button-prev')[0];
672        var swiper = new Swiper( this, {
673                autoplay:   autoplayconditon,
674                autoplayTimeout: settings['autoplay']['delay'],
675                speed: settings['speed'],
676                loop:  settings['loop'],
677                pauseOnMouseEnter :true,
678                slidesPerView: settings['slidesPerView'],
679                spaceBetween:  settings['spaceBetween'],
680                centeredSlides:  settings['centeredSlides'],
681                slidesPerGroup: settings['slidesPerGroup'] ? settings['slidesPerGroup']:1,
682                pagination: {
683                    el: $pagination,
684                    clickable: true,
685                    type: 'bullets',
686                },
687                navigation: {
688                    nextEl: $next,
689                    prevEl: $prev,
690                },
691                breakpoints: {
692                0: {
693                    slidesPerView: settings['breakpoints']['0']['slidesPerView'],
694                },
695                576: {
696                    slidesPerView: settings['breakpoints']['576']['slidesPerView'],
697                },
698                768: {
699                    slidesPerView: settings['breakpoints']['768']['slidesPerView'],
700                },
701                992: {
702                    slidesPerView: settings['breakpoints']['992']['slidesPerView'],
703                },
704                1200: {
705                    slidesPerView:  settings['breakpoints']['1200']['slidesPerView'],
706                },
707                1600: {
708                    slidesPerView: settings['breakpoints']['1600']['slidesPerView'],
709                },
710            },
711        });
712        swiper.init();
713    });
714
715    //portfolio 9 slider coverflow effect
716    $('.portfolio-coverflow-slider').each(function() {
717        var $this = $(this);
718        var settings = $this.data('xld');
719        var autoplayconditon= settings['auto'];
720        let portfolioSlider2 = new Swiper(".portfolio-coverflow-slider", {
721            autoplay:   autoplayconditon,
722            autoplayTimeout: settings['autoplay']['delay'],
723            speed: settings['speed'],
724            loop:  settings['loop'],
725            spaceBetween: 1,
726            slidesPerView: 4,
727            centeredSlides: true,
728            roundLengths: true,
729            loopAdditionalSlides: 0,
730            breakpoints: {
731                0: {
732                    slidesPerView: settings['breakpoints']['0']['slidesPerView'],
733                },
734                768: {
735                    //slidesPerView: 1.5,
736                    slidesPerView: settings['breakpoints']['768']['slidesPerView'],
737                },
738                992: {
739                    //slidesPerView: 2,
740                    slidesPerView: settings['breakpoints']['992']['slidesPerView'],
741                },
742                1200: {
743                    //slidesPerView: 3.1,
744                    slidesPerView:  settings['breakpoints']['1200']['slidesPerView'],
745                },
746            },
747        });
748    });
749
750    //mousewheel slider
751    $('.rt-mousewheel-slider').each(function() {
752        var swiper = new Swiper('.rt-mousewheel-slider', {
753            slidesPerView: 1,
754            mousewheel: true,
755            breakpoints: {
756                0: {
757                    slidesPerView: 1,
758                    direction: 'horizontal',
759                },
760                768: {
761                    slidesPerView: 1,
762                    direction: 'horizontal',
763                },
764                992: {
765                    slidesPerView: 1,
766                    direction: 'horizontal',
767                },
768                1200: {
769                    slidesPerView: 1,
770                    direction: 'vertical',
771                },
772            },
773            pagination: {
774                el: '.swiper-pagination',
775                clickable: true,
776            },
777        });
778    });
779
780    //coverflow effect slider 2
781    $('.rt-coverflow-slider2').each(function() {
782        var $this = $(this);
783        var settings = $this.data('xld');
784        var autoplayconditon= settings['auto'];
785        let rt_coverflow_slider2 = new Swiper(".rt-coverflow-slider2", {
786            loop:  settings['loop'],
787            centeredSlides:  settings['centeredSlides'],
788            slidesPerView: 'auto',
789            spaceBetween:  settings['spaceBetween'],
790            autoHeight: true,
791            autoplay:   autoplayconditon,
792            autoplayTimeout: settings['autoplay']['delay'],
793            speed: settings['speed'],
794            pagination: {
795                el: ".swiper-pagination",
796                type: "bullets",
797                clickable: "true",
798            },
799            breakpoints: {
800                0: {
801                    slidesPerView: 1,
802                },
803                768: {
804                    slidesPerView: settings['breakpoints']['768']['slidesPerView'],
805                },
806                992: {
807                    slidesPerView: settings['breakpoints']['992']['slidesPerView'],
808                },
809                1200: {
810                    slidesPerView:  settings['breakpoints']['1200']['slidesPerView'],
811                },
812                1600: {
813                    slidesPerView: settings['breakpoints']['1600']['slidesPerView'],
814                },
815            },
816        });
817    });
818
819
820    //tab
821
822
823
824    // pricing swithces
825    var pricingWrapper = $(".pricing-wrapper");
826    if (pricingWrapper) {
827        $(".pricing-wrapper").each(function () {
828            $(".pricing-switch-container").on("click", function () {
829                $(".pricing-switch")
830                .parents(".price-switch-box")
831                .toggleClass("price-switch-box--active"),
832                $(".pricing-switch").toggleClass("pricing-switch-active"),
833                $(".price-box").toggleClass("price-box-show price-box-hide");
834            });
835        });
836    }
837
838    let testimonialSlider5 = new Swiper(".rt-fin-testimonial-slider-wrap", {
839        loop: true,
840        spaceBetween : 24,
841        // autoplay: {
842        // delay: 5000,
843        // speed: 800,
844        // },
845      
846        breakpoints: {
847        0: {
848          slidesPerView: 1,
849        },
850        768: {
851          slidesPerView: 1,
852        },
853        992: {
854          slidesPerView: 1,
855        },
856        1200: {
857          slidesPerView: 1,
858        },
859        },
860        navigation: {
861          nextEl: ".swiper-button-next",
862          prevEl: ".swiper-button-prev",
863        },
864      });
865
866    /*-------------------------------------
867	  Intersection Observer
868	  -------------------------------------*/
869	  if (!!window.IntersectionObserver) {
870		let observer = new IntersectionObserver((entries, observer) => {
871		  entries.forEach(entry => {
872			if (entry.isIntersecting) {
873			  entry.target.classList.add("active-animation");
874			  observer.unobserve(entry.target);
875			}
876		  });
877		}, {
878		  rootMargin: "0px 0px -100px 0px"
879		});
880		document.querySelectorAll('.has-animation').forEach(block => {
881		  observer.observe(block)
882		});
883	  } else {
884		document.querySelectorAll('.has-animation').forEach(block => {
885		  block.classList.remove('has-animation')
886		});
887	  }
888
889    /*-------------------------------------
890        Masonry
891    -------------------------------------*/
892
893    var galleryIsoContainer = $(".rt-portfolio-masonary");
894    if (galleryIsoContainer.length) {
895        var imageGallerIso = galleryIsoContainer.imagesLoaded(function () {
896            imageGallerIso.isotope({
897                itemSelector: ".rt-portfolio-item",
898                percentPosition: true,
899                isAnimated: true,
900                masonry: {
901                    columnWidth: ".rt-portfolio-item",
902                },
903                animationOptions: {
904                    duration: 700,
905                    easing: 'linear',
906                        queue: false
907                }
908            });
909        });
910    }
911
912    /* Wow Js Init */
913    var wow = new WOW({
914        boxClass: 'wow',
915        animateClass: 'animated',
916        offset: 0,
917        mobile: false,
918        live: true,
919        scrollContainer: null,
920    });
921
922    new WOW().init();
923
924    /**Load More Portfolio Button */
925    var page = 2;
926    $('#loadMore').click(function(){
927        let main = $(this).data('port-items');
928        var $container = jQuery('.portfolio-items');
929        $.ajax({
930            type : "post",
931            url : finbuzzObj.ajaxURL,
932            data : {
933                action: "loadmore_ajax",
934                postitem : main['item'],
935                postcat:main['cat'],
936                colclass:main['col_class'],
937                excerptDisplay:main['excerpt_display'],
938                excerptCount:main['excerpt_count'],
939                portSerDisplay:main['port_serial_dis'],
940                titleCount:main['title_count'],
941                catDisplay:main['cat_display'],
942                readMore:main['read_more_btn_dis'],
943                pageNumber: page
944            },
945            success    : function(html){
946                var $data = jQuery(html);
947                if ($data.length) {
948                  $container.append( html );
949                    jQuery('#loadMore').removeClass('loading-lazy');
950                } else {
951                  jQuery("#loadMore").html("No More Portfolio");
952                  jQuery('#loadMore').removeClass('loading-lazy');
953                }
954                setTimeout( function() {
955                  revealPosts();
956                }, 500);
957            },
958
959         });
960         page++;
961
962    });
963
964    function revealPosts(){
965        var posts = $('.single-grid-item:not(.reveal)');
966        var i = 0;
967        setInterval( function(){
968          if ( i >= posts.length) return false;
969          var el = posts[i];
970          $(el).addClass('reveal');
971          i++
972        }, 100);
973    }
974
975
976}
977
978(function ($) {
979    "use strict";
980
981    // Window Load+Resize
982    $(window).on('load resize', function () {
983
984        // Define the maximum height for mobile menu
985        var wHeight = $(window).height();
986        wHeight = wHeight - 50;
987        $('.mean-nav > ul').css('max-height', wHeight + 'px');
988
989    });
990
991    // Elementor Frontend Load
992    $(window).on('elementor/frontend/init', function () {
993        if (elementorFrontend.isEditMode()) {
994            elementorFrontend.hooks.addAction('frontend/element_ready/widget', function () {
995                finbuzz_content_load_scripts();
996            });
997        }
998    });
999
1000    // Window Load
1001    $(window).on('load', function () {
1002        finbuzz_content_load_scripts();
1003    });
1004
1005})(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.