1window.onload = function () { 2 const counter = document.querySelectorAll(".block-counter .number"); 3 4 const options = { 5 root: null, 6 rootMargin: "0px", 7 threshold: 0.5, 8 }; 9 10 const observer = new IntersectionObserver(function (entries, observer) { 11 entries.forEach(function (entry) { 12 if (entry.isIntersecting) { 13 const el = entry.target; 14 const number = el.getAttribute("data-to"); 15 const decimals = el.getAttribute("data-decimals"); 16 const duration = el.getAttribute("data-speed"); 17 18 var numAnim = new countUp.CountUp(el, number, { 19 startVal: 0, 20 enableScrollSpy: true, 21 scrollSpyOnce: true, 22 duration: duration, 23 decimalPlaces: decimals, 24 smartEasingThreshold: 10000, 25 }); 26 27 numAnim.start(); 28 observer.unobserve(el); 29 } 30 }); 31 }, options); 32 33 counter.forEach(function (el) { 34 observer.observe(el); 35 }); 36};
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.