1(function($) { 2 'use strict'; 3 4 jQuery(document).on('ready', function() { 5 var counted = 0; 6 7 $(window).scroll(function() { 8 var $counter = $('.counter'); 9 10 if ($counter.length === 0) { 11 return; 12 } 13 14 var oTop = $counter.offset().top - window.innerHeight; 15 16 if (counted === 0 && $(window).scrollTop() > oTop) { 17 $('.counter__number').each(function() { 18 var $this = $(this), 19 countTo = $this.attr('data-count'); 20 21 $({ countNum: $this.text() }).animate( 22 { 23 countNum: countTo 24 }, 25 { 26 duration: 2000, 27 easing: 'swing', 28 step: function() { 29 $this.text(Math.floor(this.countNum)); 30 }, 31 complete: function() { 32 $this.text(this.countNum); 33 } 34 } 35 ); 36 }); 37 counted = 1; 38 } 39 }); 40 }); 41})(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.