PageSourceSearch

https://sfdora.org/wp-content/themes/revolution-child/assets/sfdora_custom_slideshow/front.js?ver=1.0.1

js sfdora.org collected 2026-09-24 08:36:38 UTC 1,030 bytes, 31 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    document.querySelectorAll('.sfdora-slideshow').forEach(function(slideshowElement) {
3        const updateHeight = () => {
4            const slide = slideshow.Components.Slides.getAt(slideshow.index).slide;
5            slide.closest('.splide__track').style.height = slide.querySelector('img').offsetHeight + 'px';
6        }    
7        const slideshow = new Splide(slideshowElement, {
8            type: 'loop',
9            perPage: 1,
10            perMove: 1,
11            width: '100%',
12            //heightRatio: 0.5625,
13            autoHeight: true,
14            breakpoints: {
15                640: {
16                    arrows: false,
17                    pagination: false,
18                    padding: '10%',
19                    gap: '5px'
20                }
21            }
22        });
23        slideshow.on('active resized', () => {
24            setTimeout(() => {
25                updateHeight();
26            }, 200);
27        });
28
29        slideshow.mount();
30    });
31});

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.