PageSourceSearch

https://www.shop-marketplace.com/wp-content/themes/exhibz/assets/js/script.js?ver=3.0.1

js shop-marketplace.com collected 2026-09-26 14:58:18 UTC 6,530 bytes, 188 lines download raw bytes

1jQuery(document).ready(function ($) {
2    "use strict";
3
4    /**-------------------------------------------------
5     *Fixed HEader
6     *----------------------------------------------------**/
7    $(window).on('scroll', function () {
8
9        /**Fixed header**/
10        if ($(window).scrollTop() > 250) {
11            $('.navbar-fixed').addClass('sticky fade_down_effect');
12        } else {
13            $('.navbar-fixed').removeClass('sticky fade_down_effect');
14        }
15    });
16
17
18    /* ----------------------------------------------------------- */
19    /*  Mobile Menu
20    /* ----------------------------------------------------------- */
21    if ($('.navbar').length > 0) {
22        $('.menu-item-has-children').each(function () {
23            $(this).append('<span class="dropdown-menu-toggle"></span>');
24        })
25        $('.dropdown-menu-toggle').on('click', function (e) {
26            var dropdown = $(this).parent('.dropdown');
27            dropdown.find('>.dropdown-menu').slideToggle('show');
28            $(this).toggleClass('opened');
29            return true;
30        });
31        $('.dropdown-toggle').on('click', function () {
32            var location = $(this).attr('href');
33            window.location.href = location;
34            return true;
35        });
36    }
37
38
39    /* ----------------------------------------------------------- */
40    /*  Site search
41    /* ----------------------------------------------------------- */
42
43
44    $('.nav-search').on('click', function () {
45        $('.search-block').fadeIn(350);
46        $('.nav-search').addClass('hide');
47    });
48
49    $('.search-close').on('click', function () {
50        $('.search-block').fadeOut(350);
51        $('.nav-search').removeClass('hide');
52    });
53
54    $(document).on('mouseup', function (e) {
55        var container = $(".nav-search-area");
56
57        if (!container.is(e.target) && container.has(e.target).length === 0) {
58            $('.search-block').fadeOut(350);
59            $('.nav-search').removeClass('hide');
60        }
61
62    });
63
64    /* ----------------------------------------------------------- */
65    /*  Back to top
66    /* ----------------------------------------------------------- */
67
68    $(window).on('scroll', function () {
69        if ($(window).scrollTop() > $(window).height()) {
70            $(".BackTo").fadeIn('slow');
71        } else {
72            $(".BackTo").fadeOut('slow');
73        }
74
75    });
76
77    $("body, html").on("click", ".BackTo", function (e) {
78        e.preventDefault();
79        $('html, body').animate({
80            scrollTop: 0
81        }, 800);
82    });
83
84    /*==========================================================
85             go current section
86    ======================================================================*/
87    $('.scroll a').on('click', function () {
88        $('html, body').animate({ scrollTop: $(this.hash).offset().top - 70 }, 1000);
89        return false;
90    });
91
92    if ($('.box-style').length > 0) {
93        $('.box-style').each(function () {
94            if ($(this).find('.elementor-row').length > 0) {
95                $(this).find('.elementor-row').append('<div class="indicator"></div>')
96            }
97        })
98    }
99    /*==========================================================
100              video popup
101     ======================================================================*/
102    if ($('.video-btn').length > 0) {
103        $('.video-btn').magnificPopup({
104            type: 'iframe',
105            mainClass: 'mfp-with-zoom',
106            zoom: {
107                enabled: true, // By default it's false, so don't forget to enable it
108
109                duration: 300, // duration of the effect, in milliseconds
110                easing: 'ease-in-out', // CSS transition easing function
111
112                opener: function (openerElement) {
113                    return openerElement.is('img') ? openerElement : openerElement.find('img');
114                }
115            }
116        });
117    }
118    /*==========================================================
119              video popup
120     ======================================================================*/
121    if ($('.gallery-popup').length > 0) {
122        $('.gallery-popup').magnificPopup({
123            type: 'inline',
124            mainClass: 'mfp-with-zoom',
125            zoom: {
126                enabled: true, // By default it's false, so don't forget to enable it
127
128                duration: 300, // duration of the effect, in milliseconds
129                easing: 'ease-in-out', // CSS transition easing function
130
131                opener: function (openerElement) {
132                    return openerElement.is('img') ? openerElement : openerElement.find('img');
133                }
134            }
135        });
136    }
137
138    /*==========================================================
139                         Preloader
140    ======================================================================*/
141    $(window).on('load', function () {
142        setTimeout(() => {
143            $('#preloader').addClass('loaded');
144        }, 1000);
145
146    });
147
148    // preloader close
149    $('.preloader-cancel-btn').on('click', function (e) {
150        e.preventDefault();
151        if (!($('#preloader').hasClass('loaded'))) {
152            $('#preloader').addClass('loaded');
153        }
154    });
155
156    // Elementor Background Optomization
157    const loadScripts_PreloadTimer = setTimeout(triggerScriptLoader_Preload, 8e3), userInteractionEvents_Preload = ["mouseover", "keydown", "touchstart", "touchmove", "wheel"];
158    function triggerScriptLoader_Preload() {
159        document.querySelector("html").classList.add("is-active-page"), clearTimeout(loadScripts_PreloadTimer)
160    }
161    userInteractionEvents_Preload.forEach(function (e) {
162        window.addEventListener(e, triggerScriptLoader_Preload, {
163            passive: !0
164        })
165    });
166
167    // if ( fontList ) {
168    //     const observeFontList = fontList.map((fontName) => {
169    //         const observer = new FontFaceObserver(fontName);
170    //         return observer.load();
171    //     });
172
173    //     Promise.all(observeFontList).then(function(){
174    //         document.documentElement.className += " fonts-loaded";
175    //     });
176    // } else {
177    //     const barlowObserver = new FontFaceObserver('Raleway');
178    //     const robotoObserver = new FontFaceObserver('Roboto');
179    //     Promise.all([
180    //         barlowObserver.load(),
181    //         robotoObserver.load()
182    //         ]).then(function(){
183    //         document.documentElement.className += " fonts-loaded";
184    //     });
185    // }
186});
187
188

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.