PageSourceSearch

https://stropdomkrat.ru/kernel/js/fixedHeader.js

js stropdomkrat.ru collected 2026-10-04 00:12:41 UTC 411 bytes, 14 lines download raw bytes

1'use strict';
2
3const fixedHeader = document.querySelector('.fixed');
4const fixedPlaceholder = document.querySelector('.fixed-placeholder');
5
6window.addEventListener('scroll', () => {
7    const rect = fixedPlaceholder.getBoundingClientRect();
8
9    if (rect.top < 0) {
10        fixedHeader.classList.add('fixed--active');
11    } else {
12        fixedHeader.classList.remove('fixed--active');
13    }
14});

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.