1var text = document.getElementsByClassName("ticker") 2 3if(text){ 4 const para1 = text[0]; 5 const para2 = text[1]; 6 7 if(para1){ 8 animate(para1); 9 } 10 11 if(para2){ 12 animate(para2); 13 } 14 15 function animate(element) { 16 let elementWidth = element.offsetWidth 17 let parentWidth = element.parentElement.offsetWidth 18 let flag = parentWidth 19 20 setTimeout(() => { 21 element.style.opacity = "1" 22 }, 30) 23 setInterval(() => { 24 element.style.marginLeft = --flag + "px" 25 26 if (elementWidth == -flag) { 27 flag = parentWidth 28 } 29 }, 20); 30 } 31} 32
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.