PageSourceSearch

https://leonardo.chiariglione.org/wp-content/themes/oceanwp-child/…?ver=2723c21b08fa765b7969c467b72d0f77

js chiariglione.org collected 2026-09-24 08:28:33 UTC 562 bytes, 25 lines download raw bytes

1/*
2* Custom js file to implement functionality to the theme
3*
4*
5*/
6
7// Function to add menu hiding on scroll when on desktop view
8var lastScrollTop = 0;
9
10window.addEventListener(
11  "scroll",
12  function() {
13    var st = window.pageYOffset || document.documentElement.scrollTop;
14
15    if (st > lastScrollTop) {
16
17      document.getElementById("site-header").classList.add("hiding");
18    } else {
19
20      document.getElementById("site-header").classList.remove("hiding");
21    }
22    lastScrollTop = st <= 0 ? 0 : st; // For Mobile or negative scrolling
23  },
24  false
25);

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.