1jQuery(window).on("elementor/frontend/init", function () { 2 elementorFrontend.hooks.addAction( 3 "frontend/element_ready/rkit-counter.default", 4 function ($scope, $) { 5 const counterContainer = $scope.find(".rkit-counter"); 6 const counter = counterContainer.find(".odometer"); 7 let config = counter.data("config"); 8 let counterEl = counter[0]; 9 let opt = { 10 root: null, 11 rootMargin: "0px", 12 threshold: 0.75, 13 }; 14 15 let odo = new Odometer({ 16 el: counterEl, 17 value: config.start_number, 18 format: config.format, 19 duration: config.duration, 20 theme: "minimal", 21 }); 22 23 const callback = (entries, observer) => { 24 entries.forEach(function (entry) { 25 if (entry.isIntersecting) { 26 odo.update(config.end_number); 27 observer.unobserve(entry.target); 28 } 29 }); 30 }; 31 let observ = new IntersectionObserver(callback, opt); 32 observ.observe(counterEl); 33 } 34 ); 35});
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.