From 4eff3c17402c63cd60bd86ab8d214156eac96472 Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 18 Dec 2023 10:42:32 -0500 Subject: [PATCH] Bug Fixes --- scripts/Scrolling.js | 1 + scripts/TextAnimation.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Scrolling.js b/scripts/Scrolling.js index b855a05..cb3f39a 100644 --- a/scripts/Scrolling.js +++ b/scripts/Scrolling.js @@ -75,6 +75,7 @@ const UpdateSlides = (SlideNumb) => { } const SetYearsCoded = (i) => { setTimeout(() => { + if (i < 0) return; document.getElementById("Counter").innerHTML = ((new Date().getFullYear() - 2016) - i).toString() + "+" SetYearsCoded(--i); }, 200); diff --git a/scripts/TextAnimation.js b/scripts/TextAnimation.js index ee46013..5597285 100644 --- a/scripts/TextAnimation.js +++ b/scripts/TextAnimation.js @@ -1,4 +1,4 @@ -let TextTags = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "li", "em", "strong", "a", "code", "span"] +let TextTags = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "li", "em", "strong", "a", "code"] let ReplacementLetters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" function GetElements() {