1(function(){ 2 'use strict'; 3 4 function initAOS(){ 5 var nodes = document.querySelectorAll('.ccb[data-aos]'); 6 if (!nodes.length) return; 7 8 if ('IntersectionObserver' in window) { 9 var io = new IntersectionObserver(function(entries){ 10 entries.forEach(function(entry){ 11 if (entry.isIntersecting) { 12 entry.target.classList.add('aos-animate'); 13 io.unobserve(entry.target); 14 } 15 }); 16 }, { threshold: 0.15 }); 17 18 nodes.forEach(function(n){ io.observe(n); }); 19 } else { 20 // Fallback: animate immediately 21 nodes.forEach(function(n){ n.classList.add('aos-animate'); }); 22 } 23 } 24 25 function initPulseButtons(){ 26 var btns = document.querySelectorAll('.cb-btn[data-pulse="yes"]'); 27 btns.forEach(function(btn){ 28 btn.classList.add('cb-btn--pulse'); 29 }); 30 } 31 32 if (document.readyState === 'loading') { 33 document.addEventListener('DOMContentLoaded', function(){ 34 initAOS(); 35 initPulseButtons(); 36 }); 37 } else { 38 initAOS(); 39 initPulseButtons(); 40 } 41})();
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.