diff --git a/_index.html b/_index.html deleted file mode 100644 index c43d4da..0000000 --- a/_index.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - Barrett Ruth - - - - - -
-
- -
-
- Header Text Here -
-
-
-

Here is an equation: \(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)

- -

Projects

- -

Resume

-

Transcript

-
- - - - - - - - - - - - - - - - - - - - - diff --git a/index.html b/index.html index 7473481..cfee339 100644 --- a/index.html +++ b/index.html @@ -24,20 +24,18 @@
@@ -50,5 +48,6 @@ Email + diff --git a/readme.md b/readme.md index cc737d9..d46f2a0 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,7 @@ # barrettruth.com My portfolio website + +## todo + +- mobile support diff --git a/scripts/index.js b/scripts/index.js new file mode 100644 index 0000000..48583e4 --- /dev/null +++ b/scripts/index.js @@ -0,0 +1,21 @@ +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(); +}