1// frage-button.js 2(function(){ 3// Alle Blöcke mit class 'prompt-wrap' auf der Seite erkennen 4const blocks = document.querySelectorAll('.prompt-wrap'); 5 6blocks.forEach(block => { 7// Frage aus data-attribute ziehen 8const phrases = block.dataset.phrases ? [block.dataset.phrases] : ["Frage nicht gesetzt"]; 9 10const typingEl = block.querySelector('.typing'); 11const typeSpeed = 20; 12 13let ci = 0; 14const text = phrases[0]; 15let forward = true; 16 17function tick(){ 18if(forward){ 19ci++; 20typingEl.textContent = text.slice(0,ci); 21if(ci >= text.length){ 22forward = false; 23return; 24} 25} 26setTimeout(tick, typeSpeed); 27} 28 29const cursor = document.createElement('span'); 30cursor.className = 'cursor'; 31typingEl.appendChild(cursor); 32 33setTimeout(tick, 300); 34}); 35})();
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.