1jQuery(window).on("elementor/frontend/init", function () { 2 elementorFrontend.hooks.addAction( 3 "frontend/element_ready/rkit-progress-bar.default", 4 function ($scope, $) { 5 const container = $scope.find(".rkit-progress")[0]; 6 if (!container) return; 7 8 const resizeobserver = new ResizeObserver((entries) => { 9 for (const entry of entries) { 10 const height = entry.contentRect.height; 11 $scope.css("height", height + "px"); 12 // console.log("Height synced:", height); 13 } 14 }); 15 16 resizeobserver.observe(container); 17 const observer = new IntersectionObserver((entries, observer) => { 18 entries.forEach((entry) => { 19 if (entry.isIntersecting) { 20 $(entry.target).addClass("rkit-progress-animation"); 21 observer.unobserve(entry.target); 22 } 23 }); 24 }); 25 26 $scope.find(".circular-progress").each(function () { 27 observer.observe(this); 28 }); 29 $scope.find(".progress-value").each(function () { 30 observer.observe(this); 31 }); 32 $scope.find(".progress-bar").each(function () { 33 observer.observe(this); 34 }); 35 $scope.find(".half-circular-progress").each(function () { 36 observer.observe(this); 37 }); 38 }, 39 ); 40});
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.