From 4a09ec59332b5297885c394703c351e273ee1529 Mon Sep 17 00:00:00 2001 From: Juan Francisco Schallibaum Date: Sat, 6 Jan 2024 19:12:33 -0300 Subject: [PATCH] prueba redireccion a 404 --- src/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.js b/src/index.js index 49b432c..a5af387 100644 --- a/src/index.js +++ b/src/index.js @@ -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({