1let scrollTimeout; 2let $marqueeContent = $('.marquee-content'); 3 4$(function () { 5 controlAnnouncement(); 6}); 7function controlAnnouncement() { 8 const marqueeSpeed = (parseInt($marqueeContent.css(`padding-left`)) + $marqueeContent.width()) / 60; 9 $marqueeContent.css('animation-duration', `${marqueeSpeed}s`); 10 $(`.marquee`).bind('click', function () { 11 $(`#announcementModal`).modal('show'); 12 }); 13 $(window).on('scroll', handleScroll); 14} 15function handleScroll() { 16 $marqueeContent.css('animation-play-state', 'paused'); 17 if (scrollTimeout) { 18 clearTimeout(scrollTimeout); 19 } 20 scrollTimeout = setTimeout(function () { 21 $marqueeContent.css('animation-play-state', ''); 22 }, 200); 23}
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.