From 9af051f1bcc65c66806d89b5fe9f0d00607ca451 Mon Sep 17 00:00:00 2001 From: nitishkumar Date: Wed, 20 Mar 2024 13:29:25 +0530 Subject: [PATCH] changes in the function countdown --- src/open.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/open.html b/src/open.html index 117e16b..65d45db 100644 --- a/src/open.html +++ b/src/open.html @@ -278,11 +278,12 @@ SPDX-License-Identifier: AGPL-3.0-or-later function detectSpaceKey(event) { if(event.keyCode == 13) { showTime(); - startCountdown(); + var form = document.createElement("form"); form.setAttribute("action", "/"); form.setAttribute("method", "post"); } + startCountdown(); } function showTime() { @@ -309,7 +310,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later if (count <= 0) { clearInterval(countdownInterval); countdownElement.style.display = 'none'; // Hide countdown after it finishes - console.log("Redirecting..."); + window.location.href = "https://geno.sh/"; // Redirect to the desired URL } }, 1000);