1document.addEventListener('DOMContentLoaded', function () { 2 const tracks = {}; 3 document.querySelectorAll('[data-card-track]').forEach(function (track) { 4 tracks[track.getAttribute('data-card-track')] = track; 5 }); 6 7 if (Object.keys(tracks).length === 0) { 8 return; 9 } 10 11 document.querySelectorAll('[data-card-scroll]').forEach(function (button) { 12 button.addEventListener('click', function () { 13 const trackName = button.getAttribute('data-card-track'); 14 const track = trackName ? tracks[trackName] : null; 15 if (!track) { 16 return; 17 } 18 19 const direction = button.getAttribute('data-card-scroll') === 'prev' ? -1 : 1; 20 track.scrollBy({ 21 left: Math.max(320, Math.floor(track.clientWidth * 0.85)) * direction, 22 behavior: 'smooth' 23 }); 24 }); 25 }); 26});
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.