PageSourceSearch

https://lacortedizizi.it/js/apt-slider.js

js lacortedizizi.it collected 2026-09-27 04:06:22 UTC 1,315 bytes, 44 lines download raw bytes

1/* Apartment Swiper Slider Init */
2document.addEventListener('DOMContentLoaded', function () {
3  var thumbsEl = document.querySelector('.apt-thumbs');
4  var mainEl = document.querySelector('.apt-slider');
5  if (!thumbsEl || !mainEl) return;
6
7  var aptThumbs = new Swiper('.apt-thumbs', {
8    spaceBetween: 8,
9    slidesPerView: 6,
10    freeMode: true,
11    watchSlidesProgress: true,
12    breakpoints: {
13      0:   { slidesPerView: 4, spaceBetween: 4 },
14      480: { slidesPerView: 5, spaceBetween: 6 },
15      768: { slidesPerView: 7, spaceBetween: 8 },
16      1024:{ slidesPerView: 9, spaceBetween: 8 }
17    }
18  });
19
20  var aptSlider = new Swiper('.apt-slider', {
21    spaceBetween: 0,
22    loop: true,
23    autoHeight: true,
24    keyboard: { enabled: true },
25    navigation: {
26      nextEl: '.apt-slider .swiper-button-next',
27      prevEl: '.apt-slider .swiper-button-prev',
28    },
29    pagination: {
30      el: '.apt-slider .swiper-pagination',
31      clickable: true,
32    },
33    thumbs: {
34      swiper: aptThumbs,
35    },
36  });
37
38  /* Click on main slider image opens lightbox */
39  mainEl.querySelectorAll('.swiper-slide img').forEach(function(img) {
40    img.addEventListener('click', function() {
41      if (typeof openLightbox === 'function') openLightbox(this);
42    });
43  });
44});

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.