PageSourceSearch

https://www.malopolskie24info.pl/wp-content/plugins/news-magazine-…/js/newsx-core-pro-public.js?ver=1.1.1

js malopolskie24info.pl collected 2026-10-06 12:54:43 UTC 2,361 bytes, 73 lines download raw bytes

1jQuery( document ).ready(function( $ ) {
2	'use strict';
3
4    /* Post Format Gallery
5    -------------------------------------------------- */
6    var NEWSXGalleryPostFormat =  {
7        init: function() {
8            if ( !$('body').hasClass('single-format-gallery') ) {
9                return;
10            }
11
12            let $swiperWrapper = $('.newsx-single-post-media .format-gallery-wrapper');
13            let $thumbsWrapper = $('.newsx-single-post-media .thumbs-gallery-wrapper');
14
15            if ( $swiperWrapper.length > 0 && $swiperWrapper.find('.swiper').length > 0  )  {
16                let settings = $swiperWrapper.data('newsx-settings');
17
18                const thumbsSwiper = new Swiper($thumbsWrapper.find('.thumbs-gallery')[0], {
19                    slidesPerView: 10,
20                    spaceBetween: 10,
21                    loop: true,
22                    breakpoints: {
23                        0: {
24                            slidesPerView: 5,
25                        },
26                        [NewsxMain.tablet_bp]: {
27                            slidesPerView: 10,
28                        }
29                    },
30                });
31
32                const swiper = new Swiper($swiperWrapper.find('.format-gallery')[0], {
33                    slidesPerView: 1,
34                    loop: true,
35                    thumbs: {
36                        swiper: thumbsSwiper
37                    },
38                    speed: 1000,
39                });
40            }
41        }
42    }
43
44    NEWSXGalleryPostFormat.init();
45
46});
47
48// Resize Function - Debounce
49(function($,sr){
50
51    var debounce = function (func, threshold, execAsap) {
52        var timeout;
53    
54        return function debounced () {
55            var obj = this, args = arguments;
56            function delayed () {
57                if (!execAsap)
58                    func.apply(obj, args);
59                timeout = null;
60            };
61    
62            if (timeout)
63                clearTimeout(timeout);
64            else if (execAsap)
65                func.apply(obj, args);
66    
67            timeout = setTimeout(delayed, threshold || 100);
68        };
69    }
70    // smartresize 
71    jQuery.fn[sr] = function(fn){  return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
72    
73    })(jQuery,'smartresize');

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.