PageSourceSearch

https://www.fullfabric.com/js/navbar-scroll.js

js fullfabric.com collected 2026-09-24 19:19:07 UTC 608 bytes, 21 lines download raw bytes

1(function() {
2  var navbar = document.querySelector('.navbar');
3  if (!navbar) return;
4  var threshold = 10;
5  var wasTransparent = navbar.classList.contains('is-transparent');
6  function onScroll() {
7    if (window.scrollY > threshold) {
8      navbar.classList.add('is-scrolled');
9      if (wasTransparent) {
10        navbar.classList.remove('is-transparent');
11      }
12    } else {
13      navbar.classList.remove('is-scrolled');
14      if (wasTransparent) {
15        navbar.classList.add('is-transparent');
16      }
17    }
18  }
19  window.addEventListener('scroll', onScroll, { passive: true });
20  onScroll();
21})();

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.