1// Set animation duration for all "ticker" class elements based on width 2 3function SetTickerDurations() { 4 Ticker_Elements = document.getElementsByClassName("Ticker") 5 for (var i = 0; i < Ticker_Elements.length; i++) { 6 try { 7 var duration = (Ticker_Elements.item(i).firstElementChild.firstElementChild.offsetWidth-Ticker_Elements.item(i).firstElementChild.offsetWidth)*20 8 if (duration < 1000) {duration = 1000} 9 Ticker_Elements.item(i).style.animationDuration = `${duration}ms` 10 } 11 catch { 12 console.log('failed to set animation duration') 13 } 14 } 15} 16 17SetTickerDurations()
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.