PageSourceSearch

https://www.dataroomx.de/inhalte/themes/rdts-simple-blocks/assets/js/effekte.js?ver=1.1

js dataroomx.de collected 2026-10-02 07:54:41 UTC 3,420 bytes, 117 lines download raw bytes

1jQuery(document).ready(function($) {
2    
3var windowWidth = $(window).width();   
4if(windowWidth >= 1000){
5    toTopScroll();
6    rdts_animations($);
7}
8
9
10function toTopScroll(){
11    
12    //var element = $('.toptoparrow');
13    //var className = 'hidden';
14   var windowWidth = $(window).width();
15  
16    $(document).scroll(function() {
17        /*if ($(document).scrollTop() <= 550) {
18          // user scrolled 50 pixels or more;
19          // do stuff
20          
21          $('.toptoparrow').addClass('hidden');
22        } else {
23            $('.toptoparrow').removeClass('hidden');
24        }*/
25
26        /* sucht nach effektbesetzen Elementen und prüft sie auf aktiierung */
27        if(windowWidth >= 1000){ 
28        if($('.fullSmoothSlideInRight').length > 0){
29            $('.fullSmoothSlideInRight').each(function(){
30                elementInView($(this),"scrollinright");
31            });
32            
33        }
34        if($('.fullSmoothSlideInLeft').length > 0){
35            $('.fullSmoothSlideInLeft').each(function(){
36                elementInView($(this),"scrollinleft");
37            });
38            
39        }
40       
41        if($('.lineup').length > 0){
42            $('.lineup').each(function(){
43               elementInView($(this),"lineup"); 
44            });
45        }
46    }
47      });
48
49/*$(".totopbutton,.toptoparrow").on("click", function () {
50    $('html,body').animate({
51        scrollTop: ($("#completeTop").offset().top - 140)
52    }, 1000);
53});*/
54    initAllEffects();
55
56}
57
58function initAllEffects(){
59    
60    if($('.fullSmoothSlideInRight').length > 0){
61        $('.fullSmoothSlideInRight').each(function(){
62            var clone = $(this).clone().addClass('isanimatedElement');
63            $(this).addClass('isPlaceholderForAnimation');
64            clone.appendTo($(this).parent());
65        });
66    }
67    if($('.fullSmoothSlideInLeft').length > 0){
68        $('.fullSmoothSlideInLeft').each(function(){
69            var clone = $(this).clone().addClass('isanimatedElement');
70            $(this).addClass('isPlaceholderForAnimation');
71            clone.appendTo($(this).parent());
72        });
73    }
74}
75
76/* https://codepen.io/kazed972/pen/bQOQGR */
77
78function elementInView(element,animation){
79
80        
81        
82        var distance = element.offset().top, 
83        $window = $(window),
84        wheight = $(window).height();
85
86        //console.log("Distance val = "+distance);
87        //console.log("Win scroll Top = "+$window.scrollTop());
88        //console.log("Win height = "+wheight);
89        if ( $window.scrollTop()+ wheight >= distance ) {
90            if(!element.hasClass("animationdone")){
91            element.addClass("animationdone");
92            //("Call Animation again");
93            if(animation == "scrollinright"){
94              //  console.log("Call scsroll in right");
95            }else if(animation == "scrollinleft"){
96              //  console.log("Call scsroll in right");
97            }else if(animation == "lineup"){
98              element.css('animation', '2s anim-lineUp ease-out 1');
99          }
100            }
101            return true;
102        }else{
103            return false;
104        }
105     
106    
107    
108  }
109  
110  //rdts_animations($);
111  function rdts_animations($){
112  $('.animate_highlight').each(function(){
113    var color = $(this).css('color');
114    $(this).css('background-image', 'linear-gradient(-225deg,'+color+' 0%,'+color+' 40%,#fff 50%,'+color+' 60%,'+color+' 100%');
115  });  
116}
117});

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.