Skip to content

Commit

Permalink
prueba redireccion a 404
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnFScha committed Jan 6, 2024
1 parent 86de0c1 commit 4a09ec5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ window.onload = () => {
init.style.display = "none";
};

const timeout = setTimeout(() => {
window.location.href = "/404.html"; // Adjust the path as needed
}, 10000); // 10 seconds in milliseconds

// Clear the timeout if the content loads before the timeout triggers
window.addEventListener("load", () => {
clearTimeout(timeout);
});

/* ********* Timeline ********* */

const mainTimeline = gsap.timeline({
Expand Down

0 comments on commit 4a09ec5

Please sign in to comment.