1document.addEventListener('DOMContentLoaded', () => { 2 3 // 1. Setup the "Observer" (The security camera) 4 const observer = new IntersectionObserver((entries) => { 5 entries.forEach(entry => { 6 if (entry.isIntersecting) { 7 // It's on screen! Show it. 8 entry.target.classList.add('is-visible'); 9 observer.unobserve(entry.target); // Stop watching it 10 } 11 }); 12 }); 13 14 // 2. Tell the observer what to watch 15 // It looks for anything with data-animate="..." 16 const targets = document.querySelectorAll('[data-animate]'); 17 targets.forEach(target => { 18 observer.observe(target); 19 }); 20});
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.