From 26bf9e255891466e540c39794ba30dc663fbbd99 Mon Sep 17 00:00:00 2001 From: thomashorsey Date: Sun, 23 Jun 2024 20:32:28 +0800 Subject: [PATCH] Homepage animation condition changes 5 --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index da4b524..f8e52e2 100644 --- a/js/script.js +++ b/js/script.js @@ -32,7 +32,7 @@ document.addEventListener("DOMContentLoaded", function() { /* Typing animation */ document.addEventListener('DOMContentLoaded', function(event) { - if (window.location.pathname.endsWith("index.html")) { + if (window.location.pathname.endsWith("index")) { // Types out text, calling self until the text is finished function typingAnimation(text, i, fnCallback) { // Check if there are characters left to type