1document.addEventListener( 'DOMContentLoaded', function () { 2 document.querySelectorAll( '.partner-ticker' ).forEach( function ( ticker ) { 3 var track = ticker.querySelector( '.partner-ticker__track' ); 4 var group = ticker.querySelector( '.partner-ticker__group' ); 5 if ( ! track || ! group ) return; 6 7 // ~80px per second; adjust the divisor to taste. 8 var distance = group.scrollWidth; 9 var duration = distance / 80; 10 track.style.animationDuration = duration + 's'; 11 } ); 12} );
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.