PageSourceSearch

https://heseemsnice.com/wp-content/themes/infinity-mag/assets/twp/…?ver=7.0.6'%20defer='defer'%20defer='defer

js heseemsnice.com collected 2026-09-27 07:53:06 UTC 15,228 bytes, 427 lines download raw bytes

1window.addEventListener("load", function () {
2    jQuery(document).ready(function ($) {
3        "use strict";
4        $("body").addClass("page-loaded");
5    });
6});
7(function (e) {
8    "use strict";
9    var n = window.TWP_JS || {};
10    n.stickyMenu = function () {
11        if (e(window).scrollTop() > 350) {
12            e("#masthead").addClass("nav-affix");
13        } else {
14            e("#masthead").removeClass("nav-affix");
15        }
16    };
17    n.mobileMenu = {
18        init: function () {
19            this.toggleMenu();
20            this.menuMobile();
21            this.menuArrow();
22        },
23        toggleMenu: function () {
24            e('#masthead').on('click', '.toggle-menu', function (event) {
25                e(this).closest('.main-navigation').toggleClass('menu-active');
26                var ethis = e('.main-navigation .menu .menu-mobile');
27                if (ethis.css('display') == 'block') {
28                    ethis.slideUp('300');
29                } else {
30                    ethis.slideDown('300');
31                }
32                e('.ham').toggleClass('exit');
33            });
34            e('#masthead .main-navigation ').on('click', '.menu-mobile a i', function (event) {
35                event.preventDefault();
36                var ethis = e(this),
37                    eparent = ethis.closest('li'),
38                    esub_menu = eparent.find('> .sub-menu');
39                if (esub_menu.css('display') == 'none') {
40                    esub_menu.slideDown('300');
41                    ethis.addClass('active');
42                } else {
43                    esub_menu.slideUp('300');
44                    ethis.removeClass('active');
45                }
46                return false;
47            });
48        },
49        menuMobile: function () {
50            if (e('.main-navigation .menu > ul').length) {
51                var ethis = e('.main-navigation .menu > ul'),
52                    eparent = ethis.closest('.main-navigation'),
53                    pointbreak = eparent.data('epointbreak'),
54                    window_width = window.innerWidth;
55                if (typeof pointbreak == 'undefined') {
56                    pointbreak = 991;
57                }
58                if (pointbreak >= window_width) {
59                    ethis.addClass('menu-mobile').removeClass('menu-desktop');
60                    e('.main-navigation .toggle-menu').css('display', 'block');
61                } else {
62                    ethis.addClass('menu-desktop').removeClass('menu-mobile').css('display', '');
63                    e('.main-navigation .toggle-menu').css('display', '');
64                }
65            }
66            e('.skip-link-menu-start').focus(function () {
67                e('#primary-menu li:last-child a').focus();
68            });
69            e('.skip-link-menu-end').focus(function () {
70                e('.toggle-menu').focus();
71            });
72            // Action On Esc Button
73            e(document).keyup(function (j) {
74                if (j.key === "Escape") { // escape key maps to keycode `27`
75                    if (e('.main-navigation').hasClass('menu-active')) {
76                        e('.main-navigation').toggleClass('menu-active');
77                        var ethis = e('.main-navigation .menu .menu-mobile');
78                        if (ethis.css('display') == 'block') {
79                            ethis.slideUp('300');
80                        } else {
81                            ethis.slideDown('300');
82                        }
83                        e('.ham').toggleClass('exit');
84                        setTimeout(function () {
85                            e('.toggle-menu').focus();
86                        }, 300);
87                    }
88                }
89            });
90        },
91        menuArrow: function () {
92            if (e('#masthead .main-navigation div.menu > ul').length) {
93                e('#masthead .main-navigation div.menu > ul .sub-menu').parent('li').find('> a').append('<i class="fa fa-angle-down">');
94            }
95        }
96    };
97    n.TwpReveal = function () {
98        e('.icon-search').on('click', function (event) {
99            e('html').attr('style', 'overflow-y: scroll; position: fixed; width: 100%; left: 0px; top: 0px;');
100            e('body').toggleClass('reveal-search');
101            setTimeout(function () {
102                e('a.close-popup').focus();
103            }, 300);
104        });
105        e('.close-popup').on('click', function (event) {
106            e('body').removeClass('reveal-search');
107            e('html').attr('style', '');
108            setTimeout(function () {
109                e('.icon-search').focus();
110            }, 300);
111        });
112        e('.search-focus-active').on('focus', function () {
113            if (e('body').hasClass('reveal-search')) {
114                e('.popup-search .search-field').focus();
115            }
116        });
117        e('.skip-link-search-start').on('focus', function () {
118            e('a.close-popup').focus();
119        });
120        // Action On Esc Button
121        e(document).keyup(function (j) {
122            if (j.key === "Escape") { // escape key maps to keycode `27`
123                if (e('body').hasClass('reveal-search')) {
124                    e('body').removeClass('reveal-search');
125                    e('html').attr('style', '');
126                    setTimeout(function () {
127                        e('.icon-search').focus();
128                    }, 300);
129                }
130            }
131        });
132    };
133    n.TwpWidgetsNav = function () {
134        if (e("body").hasClass("rtl")) {
135            e('#widgets-nav').sidr({
136                name: 'sidr-nav',
137                side: 'right'
138            });
139        } else {
140            e('#widgets-nav').sidr({
141                name: 'sidr-nav',
142                side: 'left'
143            });
144        }
145        e('.sidr-class-sidr-button-close').click(function () {
146            e.sidr('close', 'sidr-nav');
147            e('html').attr('style', '');
148            setTimeout(function () {
149                e('a#widgets-nav').focus();
150            }, 300);
151        });
152        e('#widgets-nav').click(function () {
153            e('html').attr('style', 'margin: 0; height: 100%; overflow: hidden');
154            setTimeout(function () {
155                e('a.sidr-class-sidr-button-close').focus();
156            }, 300);
157        });
158        e('input, a, button').on('focus', function () {
159            if (e('body').hasClass('sidr-nav-open')) {
160                if (!e(this).parents('#sidr-nav').length) {
161                    e('a.sidr-class-sidr-button-close').focus();
162                }
163            }
164        });
165        // Action On Esc Button
166        e(document).keyup(function (j) {
167            if (j.key === "Escape") { // escape key maps to keycode `27`
168                e.sidr('close', 'sidr-nav');
169                e('html').attr('style', '');
170                if (e('body').hasClass('sidr-nav-open')) {
171                    setTimeout(function () {
172                        e('a#widgets-nav').focus();
173                    }, 300);
174                }
175            }
176        });
177        e('.skip-link-offcanvas-end-2').focus(function () {
178            e('.sidr-class-sidr-button-close').focus();
179        });
180        e('.skip-link-offcanvas-start').focus(function () {
181            e('.skip-link-offcanvas-end-1').focus();
182        });
183    };
184    n.DataBackground = function () {
185        var pageSection = e(".data-bg");
186        pageSection.each(function (indx) {
187            if (e(this).attr("data-background")) {
188                e(this).css("background-image", "url(" + e(this).data("background") + ")");
189            }
190        });
191        e('.bg-image').each(function () {
192            var src = e(this).children('img').attr('src');
193            if (src) {
194                e(this).css('background-image', 'url(' + src + ')').children('img').hide();
195            }
196        });
197    };
198    n.InnerBanner = function () {
199        var pageSection = e(".data-bg");
200        pageSection.each(function (indx) {
201            if (e(this).attr("data-background")) {
202                e(this).css("background-image", "url(" + e(this).data("background") + ")");
203            }
204        });
205    };
206    var rtled = false;
207    if (e('body').hasClass('rtl')) {
208        rtled = true;
209    }
210    n.SlickCarousel = function () {
211        e(".featured-slider").slick({
212            slidesToShow: 7,
213            slidesToScroll: 1,
214            speed: 8000,
215            autoplay: true,
216            autoplaySpeed: 0,
217            cssEase: 'linear',
218            focusOnSelect: true,
219            arrows: false,
220            responsive: [
221                {
222                    breakpoint: 1699,
223                    settings: {
224                        slidesToShow: 5
225                    }
226                },
227                {
228                    breakpoint: 1599,
229                    settings: {
230                        slidesToShow: 4
231                    }
232                },
233                {
234                    breakpoint: 992,
235                    settings: {
236                        slidesToShow: 3
237                    }
238                },
239                {
240                    breakpoint: 768,
241                    settings: {
242                        slidesToShow: 2
243                    }
244                },
245                {
246                    breakpoint: 640,
247                    settings: {
248                        slidesToShow: 1
249                    }
250                }
251            ]
252        });
253        e(".mainbanner-jumbotron-1").slick({
254            slidesToShow: 1,
255            slidesToScroll: 1,
256            fade: true,
257            autoplay: true,
258            autoplaySpeed: 8000,
259            infinite: true,
260            nextArrow: '<i class="slide-icon slide-next fa fa-angle-right"></i>',
261            prevArrow: '<i class="slide-icon slide-prev fa fa-angle-left"></i>',
262            dots: true
263        });
264        e(".mainbanner-jumbotron-2").slick({
265            slidesToShow: 3,
266            slidesToScroll: 1,
267            centerMode: true,
268            centerPadding: '60px',
269            autoplay: true,
270            autoplaySpeed: 12000,
271            infinite: true,
272            nextArrow: '<i class="slide-icon slide-next fa fa-angle-right"></i>',
273            prevArrow: '<i class="slide-icon slide-prev fa fa-angle-left"></i>',
274            responsive: [
275                {
276                    breakpoint: 1024,
277                    settings: {
278                        slidesToShow: 2
279                    }
280                },
281                {
282                    breakpoint: 678,
283                    settings: {
284                        slidesToShow: 2
285                    }
286                },
287                {
288                    breakpoint: 480,
289                    settings: {
290                        slidesToShow: 1
291                    }
292                }
293            ]
294        });
295        e(".twp-slider-widget").each(function () {
296            e(this).slick({
297                slidesToShow: 1,
298                slidesToScroll: 1,
299                fade: true,
300                autoplay: true,
301                autoplaySpeed: 8000,
302                infinite: true,
303                nextArrow: '<i class="slide-icon slide-next fa fa-angle-right"></i>',
304                prevArrow: '<i class="slide-icon slide-prev fa fa-angle-left"></i>'
305            });
306        });
307        e(".twp-carousal-widget").each(function () {
308            e(this).slick({
309                slidesToShow: 4,
310                slidesToScroll: 4,
311                focusOnSelect: true,
312                dots: true,
313                arrows: false,
314                responsive: [
315                    {
316                        breakpoint: 1599,
317                        settings: {
318                            slidesToShow: 3,
319                            slidesToScroll: 3
320                        }
321                    },
322                    {
323                        breakpoint: 992,
324                        settings: {
325                            slidesToShow: 2,
326                            slidesToScroll: 2
327                        }
328                    },
329                    {
330                        breakpoint: 480,
331                        settings: {
332                            slidesToShow: 1,
333                            slidesToScroll: 1
334                        }
335                    }
336                ]
337            });
338        });
339        e("figure.wp-block-gallery.has-nested-images.columns-1, .wp-block-gallery.columns-1 ul.blocks-gallery-grid, .gallery-columns-1").each(function () {
340            e(this).slick({
341                slidesToShow: 1,
342                slidesToScroll: 1,
343                fade: true,
344                autoplay: true,
345                autoplaySpeed: 8000,
346                infinite: true,
347                nextArrow: '<i class="slide-icon slide-next fa fa-angle-right"></i>',
348                prevArrow: '<i class="slide-icon slide-prev fa fa-angle-left"></i>',
349                dots: true,
350                rtl: rtled
351            });
352        });
353    };
354    n.MagnificPopup = function () {
355        e('.widget .gallery, .entry-content .gallery, .wp-block-gallery').magnificPopup({
356            delegate: 'a',
357            type: 'image',
358            closeOnContentClick: false,
359            closeBtnInside: false,
360            mainClass: 'mfp-with-zoom mfp-img-mobile',
361            image: {
362                verticalFit: true,
363                titleSrc: function (item) {
364                    return item.el.attr('title');
365                }
366            },
367            gallery: {
368                enabled: true
369            },
370            zoom: {
371                enabled: true,
372                duration: 300,
373                opener: function (element) {
374                    return element.find('img');
375                }
376            }
377        });
378    };
379    n.InnerBanner = function () {
380        var pageSection = e(".data-bg");
381        pageSection.each(function (indx) {
382            if (e(this).attr("data-background")) {
383                e(this).css("background-image", "url(" + e(this).data("background") + ")");
384            }
385        });
386    };
387    n.twp_matchheight = function () {
388        e('.widget-area').theiaStickySidebar({
389            additionalMarginTop: 30
390        });
391    };
392    n.show_hide_scroll_top = function () {
393        if (e(window).scrollTop() > e(window).height() / 2) {
394            e("#scroll-up").fadeIn(300);
395            e('body').addClass('theme-floatingbar-active');
396        } else {
397            e("#scroll-up").fadeOut(300);
398            e('body').removeClass('theme-floatingbar-active');
399        }
400    };
401    n.scroll_up = function () {
402        e("#scroll-up").on("click", function () {
403            e("html, body").animate({
404                scrollTop: 0
405            }, 800);
406            return false;
407        });
408    };
409    e(document).ready(function () {
410        n.mobileMenu.init();
411        n.TwpReveal();
412        n.TwpWidgetsNav();
413        n.DataBackground();
414        n.InnerBanner();
415        n.SlickCarousel();
416        n.MagnificPopup();
417        n.twp_matchheight();
418        n.scroll_up();
419    });
420    e(window).scroll(function () {
421        n.stickyMenu();
422        n.show_hide_scroll_top();
423    });
424    e(window).resize(function () {
425        n.mobileMenu.menuMobile();
426    });
427})(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.