1// function([string1, string2],target id,[color1,color2]) 2consoleText(['ÐÐТÐÐ', 'ÐÐТÐÐ', 'ÐÐТÐÐ'], 'text',['white','white','white']); 3 4function consoleText(words, id, colors) { 5 if (colors === undefined) colors = ['#fff']; 6 var visible = true; 7 var con = document.getElementById('console'); 8 var letterCount = 1; 9 var x = 1; 10 var waiting = false; 11 var target = document.getElementById(id) 12 target.setAttribute('style', 'color:' + colors[0]) 13 window.setInterval(function() { 14 15 if (letterCount === 0 && waiting === false) { 16 waiting = true; 17 target.innerHTML = words[0].substring(0, letterCount) 18 window.setTimeout(function() { 19 var usedColor = colors.shift(); 20 colors.push(usedColor); 21 var usedWord = words.shift(); 22 words.push(usedWord); 23 x = 1; 24 target.setAttribute('style', 'color:' + colors[0]) 25 letterCount += x; 26 waiting = false; 27 }, 1000) 28 } else if (letterCount === words[0].length + 1 && waiting === false) { 29 waiting = true; 30 window.setTimeout(function() { 31 x = -1; 32 letterCount += x; 33 waiting = false; 34 }, 1000) 35 } else if (waiting === false) { 36 target.innerHTML = words[0].substring(0, letterCount) 37 letterCount += x; 38 } 39 }, 120) 40 window.setInterval(function() { 41 if (visible === true) { 42 con.className = 'console-underscore hidden' 43 visible = false; 44 45 } else { 46 con.className = 'console-underscore' 47 48 visible = true; 49 } 50 }, 400) 51}
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.