const text = "AD not found (captcha2)"; let index = 0; const typingTextElement = document.getElementById("typing-text"); function type() { if (index < text.length) { typingTextElement.textContent += text.charAt(index); index++; setTimeout(type, 50); // Задержка между буквами } } type(); // Стартуем набор текста