Merge pull request 'changes in the function countdown' (#2) from nitishkumar/geno.sh-thirappu-vizha:master into master

Reviewed-on: #2
This commit is contained in:
Aravinth Manivannan 2024-03-20 13:34:31 +05:30
commit 97d6d3cd46

View file

@ -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);