Revert site back to normal, add memory lane
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
window.onload = function () {
|
||||
const element = document.getElementById("WelcomeMessage");
|
||||
element.style.display = "none"; // Trigger reflow
|
||||
element.offsetHeight; // Force reflow
|
||||
element.style.display = ""; // Restore the original display
|
||||
typeText("#WelcomeMessage", "Today, October 2nd, marks the 5th anniversary of the day I was sealed for time and all eternity to my wonderful wife. She's the kindest, sweetest, funniest, most beautiful woman I've ever met. I love you Morgan 💖");
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
element.style.display = "none"; // Trigger reflow
|
||||
element.offsetHeight; // Force reflow
|
||||
element.style.display = ""; // Restore the original display
|
||||
typeText("#WelcomeMessage", "Today, October 2nd, marks the 5th anniversary of the day I was sealed for time and all eternity to my wonderful wife. She's the kindest, sweetest, funniest, most beautiful woman I've ever met. I love you Morgan 💖");
|
||||
typeText("#WelcomeMessage", "Hey, you found me...!?``````````````````````No that's stupid````````````````Just````uhhhh`````Hello! My name is Josh. I'm a software engineer, and I try to have a lot of fun with what I do. While I have your attention, why don't I tell you more about myself?");
|
||||
}
|
||||
@@ -29,7 +29,10 @@ function changeIntervalTime(element, text) {
|
||||
function simulateTyping(element, text, speed = 50) {
|
||||
intervalId = setInterval(() => {
|
||||
if (index < text.length) {
|
||||
currentText += text.charAt(index);
|
||||
if (text.charAt(index) === '`')
|
||||
currentText = currentText.slice(0, -1);
|
||||
else
|
||||
currentText += text.charAt(index);
|
||||
changeIntervalTime(element, text);
|
||||
index++;
|
||||
element.textContent = currentText;
|
||||
|
||||
Reference in New Issue
Block a user