From 653c4869ac417c665460ce4566b668560752ef8b Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 7 Jun 2024 22:31:28 -0500 Subject: [PATCH] fix: inline script --- index.html | 24 +++++++++++++++++++++++- scripts/index.js | 21 --------------------- 2 files changed, 23 insertions(+), 22 deletions(-) delete mode 100644 scripts/index.js diff --git a/index.html b/index.html index cfee339..c80bfe9 100644 --- a/index.html +++ b/index.html @@ -48,6 +48,28 @@ Email - + diff --git a/scripts/index.js b/scripts/index.js deleted file mode 100644 index 48583e4..0000000 --- a/scripts/index.js +++ /dev/null @@ -1,21 +0,0 @@ -function typechars(e, url = "wip.html") { - e.preventDefault(); - - const text = ` ${e.target.textContent.toLowerCase()}/`; - const terminalPrompt = document.querySelector(".prompt"); - let i = 0; - - function typechar() { - if (i < text.length) { - terminalPrompt.innerHTML += text.charAt(i); - i++; - setTimeout(typechar, 1000 / text.length); - } else { - setTimeout(() => { - window.location.href = url; - }, 500); - } - } - - typechar(); -}