PageSourceSearch

https://www.leistbare-auszeit.at/wp-content/plugins/seocon-elementor/widgets/assets/js/image-carousel.js

js leistbare-auszeit.at collected 2026-10-06 13:03:58 UTC 1,863 bytes, 41 lines download raw bytes

1window.addEventListener('elementor/frontend/init', function() {
2    elementorFrontend.hooks.addAction('frontend/element_ready/seoc-image-gallery.default', function ($scope){
3        var carouselContainer = '.elementor-element-' + $scope.data('id') + ' .image-carousel';
4        var carousel = new Splide(carouselContainer);
5        var carouselNavContainer = document.createElement('div');
6        var carouselNumStart = document.createElement('span');
7        var carouselNumEnd = document.createElement('span');
8        carousel.on('mounted', function() {
9            carouselNavContainer.className = 'carousel-nav';
10            carouselNumStart.className = 'num-start';
11            carouselNumEnd.className = 'num-end';
12            document.querySelector(carouselContainer).appendChild(carouselNavContainer);
13            carouselNavContainer.appendChild(carouselNumStart);
14            carouselNavContainer.appendChild(carouselNumEnd);
15            carouselNumStart.innerText = '01';
16            if(carousel.length < 10) {
17                carouselNumEnd.innerText = '0' + carousel.length;
18            }
19            else {
20                carouselNumEnd.innerText = carousel.length;
21            }
22        });
23        carousel.on('move', function(newIndex) {
24            if(newIndex + 1 < 10) {
25                carouselNumStart.innerText = '0' + (newIndex + 1);
26            }
27            else {
28                carouselNumStart.innerText = newIndex + 1;
29            }
30            document.querySelector(carouselContainer).querySelectorAll('.splide__pagination li').forEach(function(el, index) {
31                if(index <= newIndex) {
32                    el.classList.add('is-active');
33                }
34                else {
35                    el.classList.remove('is-active');
36                }
37            });
38        });
39        carousel.mount();
40    });
41});

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.