var count = 8; // Number of remaining seconds.
var counter; // Handle for the countdown event.
function start() {
counter = setInterval(timer, 1000);
}
function timer() {
// Show the number of remaining seconds on the web page.
var output = document.getElementById("displaySeconds");
output.innerHTML = count;
// Decrease the remaining number of seconds by one.
count--;
// Check if the counter has reached zero.
if (count < 0) { // If the counter has reached zero...
// Stop the counter.
clearInterval(counter);
// Start the download.
window.location.href = "https://drive.google.com/file/d/1GzQqLFUthvxSCsUgdQ6H01si3bJSQ09W/view?usp=sharing";
return;
}
}
// Start the countdown timer when the page loads.
window.addEventListener("load", start, false);
Your download will begin in 8 seconds.
Click here if your download does not begin.
Post a Comment