PageSourceSearch

https://www.icehouse-aue.de/public/www/themes/frontend/responsive/_public/src/js/slider.js?_=6ac55665c1e53

js icehouse-aue.de collected 2026-10-06 20:13:54 UTC 3,840 bytes, 82 lines download raw bytes

1var SLIDER = {};
2    SLIDER.AnimArray = [];
3    SLIDER.Init = function(){
4        $('.slider').each(function(){
5            if($(this).hasClass('rotation')){
6                SLIDER.AnimArray.push($(this).attr("id"));
7            }
8            $(this).attr('data-time',0);
9            $(this).attr("data-act",0);
10            $(this).find('.slide').fadeOut(0);
11            $(this).find('.slide[data-id="0"]').fadeIn(0).addClass('active');
12            $(this).find('.dots a').bind('click',function(){
13                var SOURCE = $(this).closest('.slider');
14                SOURCE.find('.slide.active').css('z-index',1).fadeOut(500).removeClass('active');
15                SOURCE.find('.slide[data-id="'+$(this).attr("data-id")+'"]').css('z-index',2).fadeIn(500).addClass('active');
16                SOURCE.attr('data-act',$(this).attr("data-id"));
17                SOURCE.attr('data-time',0);
18                SOURCE.find('.dots a.active').removeClass('active');
19                $(this).addClass('active');
20            });
21            $(this).find('.arrow-left').bind('click',function(){
22                var SOURCE = $(this).closest('.slider');
23                var act = parseInt(SOURCE.attr("data-act"));
24                if(act == 0){
25                    act = SOURCE.find('.slide').length - 1;
26                }else{
27                    act = act - 1;
28                }
29                SOURCE.find('.slide.active').css('z-index',1).fadeOut(500).removeClass('active');
30                SOURCE.find('.slide[data-id="'+act+'"]').css('z-index',2).fadeIn(500).addClass('active');
31                SOURCE.find('.dots a.active').removeClass('active');
32                SOURCE.find('.dots a[data-id="'+act+'"]').addClass('active');
33                SOURCE.attr('data-act',act);
34                SOURCE.attr('data-time',0);
35            });
36            $(this).find('.arrow-right').bind('click',function(){
37                var SOURCE = $(this).closest('.slider');
38                var act = parseInt(SOURCE.attr("data-act")) + 1;
39                if(SOURCE.find('.slide[data-id="'+act+'"]').length == 0){
40                    act = 0;
41                }
42                SOURCE.find('.slide.active').css('z-index',1).fadeOut(500).removeClass('active');
43                SOURCE.find('.slide[data-id="'+act+'"]').css('z-index',2).fadeIn(500).addClass('active');
44                SOURCE.find('.dots a.active').removeClass('active');
45                SOURCE.find('.dots a[data-id="'+act+'"]').addClass('active');
46                SOURCE.attr('data-act',act);
47                SOURCE.attr('data-time',0);
48            });
49        });
50        SLIDER.animations();
51    };
52
53    SLIDER.animations = function(){
54        $.each( SLIDER.AnimArray, function( i, l ){
55            var TO = parseInt($('#'+l).attr('data-timeout'));
56            var IS = parseInt($('#'+l).attr('data-time'));
57            if(IS<TO){
58                $('#'+l).attr('data-time',(IS+1));
59            }else{
60                $('#'+l).attr('data-time',0);
61                var act = parseInt($('#'+l).attr("data-act")) + 1;
62                if($('#'+l).find('.slide[data-id="'+act+'"]').length == 0){
63                    act = 0;
64                }
65                var SOURCE = $('#'+l);
66                SOURCE.find('.slide.active').css('z-index',1).fadeOut(500).removeClass('active');
67                SOURCE.find('.slide[data-id="'+act+'"]').css('z-index',2).fadeIn(500).addClass('active');
68                SOURCE.find('.dots a.active').removeClass('active');
69                SOURCE.find('.dots a[data-id="'+act+'"]').addClass('active');
70                SOURCE.attr('data-act',act);
71                SOURCE.attr('data-time',0);
72            }
73            
74        });
75        window.setTimeout(function(){
76            SLIDER.animations();
77        },1000);
78    };
79
80$(document).ready(function(){
81    SLIDER.Init();
82});

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.