PageSourceSearch

https://www.rpp-institut.com/wp-content/themes/rppinstitut/assets/js/rpp-bottom-bar.js

js rpp-institut.com collected 2026-10-02 05:18:46 UTC 1,410 bytes, 60 lines download raw bytes

1/*
2
3  ID für Hide on Scroll / Show on Scroll:
4
5  #divibar-6240
6
7*/
8
9
10var swapDist = 700;
11var existsNow = false;
12var isTop = true;
13var currentDist;
14var isFading = false;
15var lastFade = Date.now();
16
17
18
19jQuery(document).ready(function(){
20  //Exists Check
21  existsNow = document.getElementById("divibar-6240") ? true : false;
22  console.log("existsNow: " + existsNow);
23});
24
25jQuery(window).scroll(function(e){
26  SetDisplayStatus();
27});
28
29function GetDistance() {
30  return jQuery(window).scrollTop();
31}
32
33function SetDisplayStatus() {
34  if (existsNow) {
35    currentDist = GetDistance();
36    if ((lastFade + 1100) < Date.now()) {
37      isFading = false;
38    }
39
40    if (!isFading) {
41      //console.log("not fading: " + lastFade + " " + Date.now());
42      if (currentDist > swapDist && isTop) //Below swap distance
43      {
44        isFading = true;
45        lastFade = Date.now();
46        isTop = false;
47        document.getElementById("divibar-6240").style.opacity = "1";
48        document.getElementById("divibar-6240").style.visibility = "visible";
49      } else if (currentDist <= swapDist && !isTop) { //Above swap distance
50        isTop = true;
51        lastFade = Date.now();
52        isFading = true;
53        document.getElementById("divibar-6240").style.opacity = "0";
54        setTimeout(function() {
55          document.getElementById("divibar-6240").style.visibility = "hidden";
56        }, 1000);
57      }
58    }
59  }
60}

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.