1$(function() { 2 let xs = [] 3 for (var i = 0; i <= 200; i++) { 4 xs.push(i) 5 } 6 7 let t = 0 8 9 function animate() { 10 11 let points = xs.map(x => { 12 13 let y = 10 + 3 * Math.sin((x + t) / 4) 14 15 return [x, y] 16 }) 17 18 let path = "M" + points.map(p => { 19 return p[0] + "," + p[1] 20 }).join(" L") 21 22 $('path').each(function() { 23 $(this).attr('d', path); 24 }) 25 26 t += 0.1 27 28 requestAnimationFrame(animate) 29 } 30 31 animate(); 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.