PageSourceSearch

https://www.kanoslalom.nl/media/templates/site/cassiopeia_theme/js/user.js?943b57

js kanoslalom.nl collected 2026-10-02 22:33:40 UTC 1,303 bytes, 42 lines download raw bytes

1// Add a class if the navbar is sticking to the top of the screen
2checkPosition = () => {
3
4    // Create an element to watch
5    const containerNav = document.querySelector('.container-header');
6    const scrollWatcher = document.createElement('div');
7
8    scrollWatcher.setAttribute('data-scroll-watcher', '');
9    containerNav.before(scrollWatcher);
10
11    const navObserver = new IntersectionObserver((entries) => {
12        containerNav.classList.toggle('sticking', !entries[0].isIntersecting);
13    }, {rootMargin: (containerNav.offsetHeight + 10) + 'px'}); // Uncomment to wait 100px after sticky to add effect
14
15    navObserver.observe(scrollWatcher);
16}
17
18// Make tables responsive
19respTables = () => {
20    // element that will be wrapped
21    let table = document.querySelector('table');
22
23    if (table) {
24        table.classList.add('table');
25
26        // create wrapper container
27        let wrapper = document.createElement('div');
28        wrapper.classList.add('table-responsive');
29
30
31        // insert wrapper before table in the DOM tree
32        table.parentNode.insertBefore(wrapper, table);
33
34        // move table into wrapper
35        wrapper.appendChild(table);
36    }
37}
38
39window.addEventListener('load', () => {
40    checkPosition();
41    respTables();
42})

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.