PageSourceSearch

https://meta.mk/wp-content/themes/metamk2025/js/home.js

js meta.mk collected 2026-10-02 04:25:41 UTC 762 bytes, 25 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2  const el = document.querySelector('.home-swiper');
3  if (typeof Swiper === 'undefined' || !el) return; // guard
4
5  const swiper = new Swiper(el, {
6    slidesPerView: 1,
7    loop: true,
8    spaceBetween: 0,
9    speed: 600,
10    autoplay: {
11      delay: 4000,                 // 4 seconds
12      disableOnInteraction: false  // keep playing after swipe/click
13    },
14    navigation: {
15      nextEl: '.home-swiper-next',
16      prevEl: '.home-swiper-prev'
17    },
18    keyboard: { enabled: true },
19    a11y: { enabled: true }
20  });
21
22  // (optional) pause on hover for desktop
23  el.addEventListener('mouseenter', () => swiper.autoplay.stop());
24  el.addEventListener('mouseleave', () => swiper.autoplay.start());
25});

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.