PageSourceSearch

https://www.sofofa.cl/wp-content/plugins/galeria-slider/js/slider.js

js sofofa.cl collected 2026-10-02 04:41:09 UTC 1,025 bytes, 27 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2    if (typeof GLightbox !== 'undefined') {
3        GLightbox({ selector: '.glightbox' });
4    }
5
6    if (typeof Swiper !== 'undefined') {
7        document.querySelectorAll('.mi-slider').forEach(function (sliderEl) {
8            const autoplay = sliderEl.dataset.autoplay === 'true';
9            const delay = parseInt(sliderEl.dataset.delay) || 3000;
10
11            new Swiper(sliderEl, {
12                loop: true,
13                navigation: {
14                    nextEl: sliderEl.querySelector('.swiper-button-next'),
15                    prevEl: sliderEl.querySelector('.swiper-button-prev')
16                },
17                pagination: {
18                    el: sliderEl.querySelector('.swiper-pagination'),
19                    clickable: true
20                },
21                slidesPerView: 1,
22                spaceBetween: 10,
23                autoplay: autoplay ? { delay: delay, disableOnInteraction: false } : false
24            });
25        });
26    }
27});

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.