Skip to content

Commit

Permalink
Homepage animation condition changes 4
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashorsey committed Jun 23, 2024
1 parent 170e072 commit 7a6b15d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ document.addEventListener("DOMContentLoaded", function() {
/* Typing animation */

document.addEventListener('DOMContentLoaded', function(event) {
var suffixes = ["tomhorsey.com", "index", "index.html"]
if (window.location.pathname.endsWithAny(str, suffixes)) {
if (window.location.pathname.endsWith("index.html")) {
// Types out text, calling self until the text is finished
function typingAnimation(text, i, fnCallback) {
// Check if there are characters left to type
Expand Down

0 comments on commit 7a6b15d

Please sign in to comment.