1( function( $ ) { 2 "use strict"; 3 var PXLCounterOldHandler = function( $scope, $ ) { 4 setTimeout(function(){ 5 elementorFrontend.waypoint( $scope.find('.pxl-counter-number-value'), function () { 6 var $number = $(this), 7 data = $number.data(); 8 var decimalDigits = data.toValue.toString().match(/\.(.*)/); 9 10 if (decimalDigits) { 11 data.rounding = decimalDigits[1].length; 12 } 13 $number.numerator(data); 14 }, { 15 offset: '95%', 16 triggerOnce: true 17 }); 18 }, 150); 19 }; 20 21 // Make sure you run this code under Elementor. 22 $( window ).on( 'elementor/frontend/init', function() { 23 elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_counter.default', PXLCounterOldHandler ); 24 // elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_pie_chart.default', PXLCounterOldHandler ); 25 } ); 26} )( jQuery );
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.