diff --git a/static/themes/code/script.js b/static/themes/code/script.js index af74e28..5c2d95d 100644 --- a/static/themes/code/script.js +++ b/static/themes/code/script.js @@ -12,7 +12,11 @@ function typeWriter(elem, delay) { }, 20) } } - setTimeout(nextLetter, delay); + setTimeout(() => { + if (elem.text() == '_'.repeat(elemText.length)) { + nextLetter() + } + }, delay); } $(document).ready(() => {