1function progress() { 2 3 var windowScrollTop = jQuery(window).scrollTop(); 4 var docHeight = jQuery(document).height(); 5 var windowHeight = jQuery(window).height(); 6 var progress = (windowScrollTop / (docHeight - windowHeight)) * 100; 7 var $bgColor = progress > 99 ? 'var(--wdtPrimaryColor)' : 'var(--wdtPrimaryColor)'; 8 9 jQuery('.wdt-horizontal-progress-bar .progress-bar').width(progress + '%').css({ backgroundColor: $bgColor }); 10} 11 12progress(); 13 14jQuery(document).on('scroll', progress);
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.