1(function( $ ) { 2 'use strict'; 3 4 // The DOM needs to be fully loaded (including graphics, iframes, etc) 5 $(window).load(function() { 6 7 // Maximum value for the progressbar 8 var winHeight = $(window).height(), 9 docHeight = $(document).height(); 10 var max = docHeight - winHeight; 11 $('.catchProgressbar').attr('max', max); 12 13 // Inital value (if the page is loaded within an anchor) 14 var value = $(window).scrollTop(); 15 $('.catchProgressbar').attr('value', value); 16 // Maths & live update of progressbar value 17 $(document).on('scroll', function() { 18 value = $(window).scrollTop(); 19 $('.catchProgressbar').attr('value', value); 20 }); 21 }); 22 23})( 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.