PageSourceSearch

https://www.rvk.de/_assets/1a8928fdc39ef5ad6c940ba6ed344c80/JavaScript/scrollTop.js?1789118170

js rvk.de collected 2026-09-24 09:34:37 UTC 1,094 bytes, 31 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2    const btn = document.getElementById("scrollToTop");
3
4    window.onscroll = function () {
5        if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
6            btn.style.display = "flex";
7        } else {
8            btn.style.display = "none";
9        }
10    };
11
12    btn.onclick = function () {
13        window.scrollTo({ top: 0, behavior: 'smooth' });
14    };
15
16    const toggleLink = document.querySelector('.show-my-journey');
17    const menu = document.getElementById('after-login-menu');
18    const showMyJourney = document.getElementById('show-my-journey');
19
20    if (toggleLink && menu && showMyJourney) {
21        toggleLink.addEventListener('click', function () {
22            if (menu.style.display === 'none' || menu.style.display === '') {
23                menu.style.display = 'flex';
24                showMyJourney.classList.add('show');
25            } else {
26                menu.style.display = 'none';
27                showMyJourney.classList.remove('show');
28            }
29        });
30    }
31});

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.