PageSourceSearch

https://www.advacom.nl/vendor/horizontal/horizontal.js

js advacom.nl collected 2026-10-06 07:17:12 UTC 917 bytes, 24 lines download raw bytes

1
2if($(window).width() > 769) {
3  if($('.vakHolder').length > 0) {
4    const spaceHolder = document.querySelector('.vakHolder');
5    const horizontal = document.querySelector('.vakHorizontal');
6    spaceHolder.style.height = `${calcDynamicHeight(horizontal)}px`;
7
8    function calcDynamicHeight(ref) {
9      const vw = window.innerWidth;
10      const vh = window.innerHeight;
11      const objectWidth = ref.scrollWidth;
12      return objectWidth - vw + vh + 150; // 150 is the padding (in pixels) desired on the right side of the .cards container. This can be set to whatever your styles dictate
13    }
14
15    window.addEventListener('scroll', () => {
16      const sticky = document.querySelector('.vakSticky');
17      horizontal.style.transform = `translateX(-${sticky.offsetTop}px)`;
18    });
19
20    window.addEventListener('resize', () => {
21      spaceHolder.style.height = `${calcDynamicHeight(horizontal)}px`;
22    });
23  }
24}

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.