1jQuery( document ).ready(function($) { 2 3 console.log( 'w3_ticker ready' ); 4 5 // FROM: https://stackoverflow.com/questions/5525071/how-to-wait-until-an-element-exists#answer-61511955 6 function waitForElm(selector) { 7 return new Promise(resolve => { 8 if (document.querySelector(selector)) { 9 return resolve(document.querySelector(selector)); 10 } 11 12 const observer = new MutationObserver(mutations => { 13 if (document.querySelector(selector)) { 14 observer.disconnect(); 15 resolve(document.querySelector(selector)); 16 } 17 }); 18 19 observer.observe(document.body, { 20 childList: true, 21 subtree: true 22 }); 23 }); 24 } 25 26 waitForElm('#w3_bottom_ticker ul').then(() => { 27 // FROM: https://www.cssscript.com/smooth-marquee-like-scroller-pure-javascript-marquee3000/ 28 Marquee3k.init(); 29 }); 30 31 32}); 33
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.