PageSourceSearch

https://protego.legal/wp-content/themes/kadence-child/assets/js/carousel.js?ver=917

js protego.legal collected 2026-09-25 03:24:55 UTC 825 bytes, 28 lines download raw bytes

1jQuery(document).ready(function ($) {
2    const $carousel = $('.wrapper-carousel .wp-block-group__inner-container');
3    const $slides = $('.wrapper-carousel .item-slide');
4    const totalSlides = $slides.length;
5    let currentSlide = 0;
6
7    function updateCarousel() {
8        const offset = -currentSlide * 100;
9        $carousel.css('transform', `translateX(${offset}%)`);
10    }
11
12    $('.slider .wp-block-buttons .wp-block-button a').on('click', function (e) {
13        e.preventDefault();
14
15        const direction = $(this).text().trim() === '<' ? -1 : 1;
16        currentSlide += direction;
17
18        if (currentSlide < 0) {
19            currentSlide = totalSlides - 1;
20        } else if (currentSlide >= totalSlides) {
21            currentSlide = 0;
22        }
23
24        updateCarousel();
25    });
26
27    updateCarousel();
28});

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.