PageSourceSearch

https://iterable.com/wp-content/themes/iterable/assets/js/header-scroll.js?ver=1790761647

js iterable.com collected 2026-10-01 09:02:24 UTC 506 bytes, 23 lines download raw bytes

1(function () {
2	const header =
3		document.querySelector('header.wp-block-template-part') ||
4		document.querySelector('.wp-site-blocks > .wp-block-template-part:first-child');
5
6	if (!header) {
7		return;
8	}
9
10	const scrolledClass = 'is-scrolled';
11	const threshold = 8;
12
13	function update() {
14		if (window.scrollY > threshold) {
15			header.classList.add(scrolledClass);
16		} else {
17			header.classList.remove(scrolledClass);
18		}
19	}
20
21	update();
22	window.addEventListener('scroll', update, { passive: true });
23})();

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.