From 11abe34d5bef73e78ddb2367892e98dcf9d2f015 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 18 Dec 2023 15:03:44 +1100 Subject: [PATCH] feat: Update copyright --- assets/js/hacker.js | 166 ++++++++++++++++++++++---------------------- index.html | 2 +- 2 files changed, 84 insertions(+), 84 deletions(-) diff --git a/assets/js/hacker.js b/assets/js/hacker.js index be56f22..6e2a422 100644 --- a/assets/js/hacker.js +++ b/assets/js/hacker.js @@ -1,84 +1,84 @@ -const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ/.?!@#$%^&*()_+"; - -let interval = null; -let interval2 = null; -let interval3 = null; - - -// window.onload = (event) => { - -// target = document.querySelector(".nathanwoodburn"); -// let iteration = 0; -// let final = "NATHAN.WOODBURN/"; -// clearInterval(interval); - -// interval = setInterval(() => { -// target.innerText = target.innerText -// .split("") -// .map((letter, index) => { -// if(index < iteration) { -// return final[index]; -// } - -// return letters[Math.floor(Math.random() * 41)] -// }) -// .join(""); - -// if(iteration >= final.length){ -// clearInterval(interval); -// } - -// iteration += 1 / 3; -// }, 30); -// }; - -document.querySelector(".copyright").onmouseover = event => { - let iteration2 = 0; - let old2 = "Copyright © Nathan Woodburn 2023"; - console.log(old2); - clearInterval(interval2); - - interval2 = setInterval(() => { - event.target.innerText = event.target.innerText - .split("") - .map((letter, index2) => { - if(index2 < iteration2) { - return old2[index2]; - } - - return letters[Math.floor(Math.random() * 41)] - }) - .join(""); - - if(iteration2 >= old2.length){ - clearInterval(interval2); - } - - iteration2 += 1/3; - }, 10); - } - // document.querySelector(".hacker3").onmouseover = event => { - // let iteration3 = 0; - // let old3 = event.target.innerText; - // console.log(old3); - // clearInterval(interval3); - - // interval3 = setInterval(() => { - // event.target.innerText = event.target.innerText - // .split("") - // .map((letter, index3) => { - // if(index3 < iteration3) { - // return old3[index3]; - // } - - // return letters[Math.floor(Math.random() * 41)] - // }) - // .join(""); - - // if(iteration3 >= old3.length){ - // clearInterval(interval3); - // } - - // iteration3 += 1 / 3; - // }, 10); +const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ/.?!@#$%^&*()_+"; + +let interval = null; +let interval2 = null; +let interval3 = null; + + +// window.onload = (event) => { + +// target = document.querySelector(".nathanwoodburn"); +// let iteration = 0; +// let final = "NATHAN.WOODBURN/"; +// clearInterval(interval); + +// interval = setInterval(() => { +// target.innerText = target.innerText +// .split("") +// .map((letter, index) => { +// if(index < iteration) { +// return final[index]; +// } + +// return letters[Math.floor(Math.random() * 41)] +// }) +// .join(""); + +// if(iteration >= final.length){ +// clearInterval(interval); +// } + +// iteration += 1 / 3; +// }, 30); +// }; + +document.querySelector(".copyright").onmouseover = event => { + let iteration2 = 0; + let old2 = "Copyright © Nathan.Woodburn/ 2024"; + console.log(old2); + clearInterval(interval2); + + interval2 = setInterval(() => { + event.target.innerText = event.target.innerText + .split("") + .map((letter, index2) => { + if(index2 < iteration2) { + return old2[index2]; + } + + return letters[Math.floor(Math.random() * 41)] + }) + .join(""); + + if(iteration2 >= old2.length){ + clearInterval(interval2); + } + + iteration2 += 1/3; + }, 10); + } + // document.querySelector(".hacker3").onmouseover = event => { + // let iteration3 = 0; + // let old3 = event.target.innerText; + // console.log(old3); + // clearInterval(interval3); + + // interval3 = setInterval(() => { + // event.target.innerText = event.target.innerText + // .split("") + // .map((letter, index3) => { + // if(index3 < iteration3) { + // return old3[index3]; + // } + + // return letters[Math.floor(Math.random() * 41)] + // }) + // .join(""); + + // if(iteration3 >= old3.length){ + // clearInterval(interval3); + // } + + // iteration3 += 1 / 3; + // }, 10); // } \ No newline at end of file diff --git a/index.html b/index.html index 8bf36ba..60a77bf 100644 --- a/index.html +++ b/index.html @@ -148,7 +148,7 @@
-
Copyright © Nathan Woodburn 2023
+
Copyright © Nathan.Woodburn/ 2024