PageSourceSearch

https://globalnyt.dk/wp-content/plugins/globalnyt-seneste/js/slider-latest.js?ver=1.0

js globalnyt.dk collected 2026-10-02 04:47:20 UTC 940 bytes, 42 lines download raw bytes

1function initBasicSwiper() {
2  if (typeof Swiper === 'undefined') {
3    console.error('Swiper library is not loaded');
4    return;
5  }
6
7  try {
8    const swiper = new Swiper("#kort-nyt .swiper", {
9      slidesPerView: 1,
10      spaceBetween: 20,
11      slidesPerGroup: 1,
12      navigation: {
13        nextEl: ".swiper-button-next",
14        prevEl: ".swiper-button-prev",
15      },
16      breakpoints: {
17        768: {
18          slidesPerView: 3,
19          slidesPerGroup: 1,
20        },
21        1240: {
22          slidesPerView: 4,
23          slidesPerGroup: 1,
24        },
25      },
26    });
27  } catch (error) {
28    console.error('Error initializing Swiper:', error);
29  }
30}
31
32// Wait for both DOM and Swiper to be ready
33function initWhenReady() {
34  if (typeof Swiper !== 'undefined') {
35    initBasicSwiper();
36  } else {
37    // Try again in 100ms
38    setTimeout(initWhenReady, 100);
39  }
40}
41
42document.addEventListener("DOMContentLoaded", initWhenReady);

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.