PageSourceSearch

https://miazebitzlarsen.dk/static/editor-loadable-scripts/headerDynamicBg.js?v=1784612631121

js miazebitzlarsen.dk collected 2026-10-06 13:15:06 UTC 844 bytes, 39 lines download raw bytes

1(() => {
2  const common = window?.brickSite?.common;
3  if (!common) {
4    return;
5  }
6
7  const { getBricksContext } = common;
8
9  var bricks = [];
10  const handleScript = () => {
11    bricks = getBricksContext('.js-brick-header-dynamic-bg');
12
13    if (!bricks || bricks.length === 0) {
14      return;
15    }
16
17    const header = bricks[0];
18
19    header.classList.add('scrollable');
20
21    function handleScroll() {
22      if (window.scrollY > 10) {
23        header.classList.add('scrolled');
24        header.classList.remove('scrollable');
25      } else {
26        header.classList.remove('scrolled');
27        header.classList.add('scrollable');
28      }
29    }
30
31    window.addEventListener('scroll', handleScroll);
32  };
33  setTimeout(() => {
34    handleScript();
35  }, 10);
36  common.document.addEventListener('headerload', () => {
37    handleScript();
38  });
39})();

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.