diff --git a/index.html b/index.html index a6a9ba194..0595c9e4e 100755 --- a/index.html +++ b/index.html @@ -65,16 +65,16 @@

version 7.3 / release build

const h1 = document.querySelector(".typewriter"); function type() { - setTimeout(() => { - for (let i = 0; i < text.length; i++) { setTimeout(() => { - h1.textContent += text[i]; - if (i === text.length - 1) { - cursor.style.display = "none"; + for (let i = 0; i < text.length; i++) { + setTimeout(() => { + h1.textContent += text[i]; + if (i === text.length - 1) { + cursor.style.display = "none"; + } + }, i * typingDelay); } - }, i * typingDelay); - } - }, initialDelay); + }, initialDelay); } type();