changes in the function countdown
This commit is contained in:
parent
60dd9eeeae
commit
9af051f1bc
1 changed files with 3 additions and 2 deletions
|
@ -278,11 +278,12 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
function detectSpaceKey(event) {
|
function detectSpaceKey(event) {
|
||||||
if(event.keyCode == 13) {
|
if(event.keyCode == 13) {
|
||||||
showTime();
|
showTime();
|
||||||
startCountdown();
|
|
||||||
var form = document.createElement("form");
|
var form = document.createElement("form");
|
||||||
form.setAttribute("action", "/");
|
form.setAttribute("action", "/");
|
||||||
form.setAttribute("method", "post");
|
form.setAttribute("method", "post");
|
||||||
}
|
}
|
||||||
|
startCountdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showTime() {
|
function showTime() {
|
||||||
|
@ -309,7 +310,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
if (count <= 0) {
|
if (count <= 0) {
|
||||||
clearInterval(countdownInterval);
|
clearInterval(countdownInterval);
|
||||||
countdownElement.style.display = 'none'; // Hide countdown after it finishes
|
countdownElement.style.display = 'none'; // Hide countdown after it finishes
|
||||||
console.log("Redirecting...");
|
|
||||||
window.location.href = "https://geno.sh/"; // Redirect to the desired URL
|
window.location.href = "https://geno.sh/"; // Redirect to the desired URL
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
Reference in a new issue