PageSourceSearch

https://www.thueringens-sueden.de/wp-content/plugins/akt-slider/slider.js

js thueringens-sueden.de collected 2026-10-05 21:49:07 UTC 2,357 bytes, 79 lines download raw bytes

1jQuery(document).ready(function($) {
2    var sliderWrapper = $('.akt-personenslider');
3    var slides = sliderWrapper.children();
4    var currentIndex = 0;
5    var slideWidth = 33.333; // Percentage width of each slide
6    var isMobile = false;
7
8    function showSlides() {
9        var maxIndex = isMobile ? slides.length - 1 : slides.length - 3;
10        if (currentIndex > maxIndex) currentIndex = maxIndex;
11        sliderWrapper.css('transform', 'translateX(' + (-slideWidth * currentIndex) + '%)');
12    }
13
14    $('.slider-nav .next').click(function() {
15        var maxIndex = isMobile ? slides.length - 1 : slides.length - 3;
16        if (currentIndex < maxIndex) {
17            currentIndex++;
18            showSlides();
19        }
20    });
21
22    $('.slider-nav .prev').click(function() {
23        if (currentIndex > 0) {
24            currentIndex--;
25            showSlides();
26        }
27    });
28
29    function adjustSlideWidth() {
30        if ($(window).width() <= 1250) {
31            slideWidth = 100;
32            isMobile = true;
33        } else {
34            slideWidth = 33.333;
35            isMobile = false;
36        }
37        showSlides();
38    }
39
40    adjustSlideWidth();
41    $(window).resize(adjustSlideWidth);
42
43    // Weiterlesen Funktionalität
44    /*
45    $('.slide-content').each(function() {
46        var $content = $(this);
47        var $desc = $content.find('.company-description');
48        var $readMore = $content.find('.company-read-more');
49        
50        function checkOverflow() {
51            var descHeight = $desc[0].scrollHeight;
52            var contentHeight = $content.height() - $readMore.outerHeight(true);
53            
54            if (descHeight > contentHeight) {
55                $readMore.show();
56                $content.removeClass('expanded');
57            } else {
58                $readMore.hide();
59                $content.addClass('expanded');
60            }
61        }
62
63        // Initial check
64        setTimeout(checkOverflow, 0);
65
66        $readMore.click(function() {
67            $content.toggleClass('expanded');
68            if ($content.hasClass('expanded')) {
69                $readMore.text('Weniger anzeigen');
70            } else {
71                $readMore.text('Weiterlesen');
72                $content.scrollTop(0);
73            }
74            checkOverflow();
75        });
76
77        $(window).resize(checkOverflow);
78    });*/
79});

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.