21 lines
355 B
JavaScript
21 lines
355 B
JavaScript
var time = 5;
|
|
|
|
function redirect() {
|
|
window.location.replace("https://archblox.com");
|
|
}
|
|
|
|
function remove(el) {
|
|
var element = el;
|
|
element.remove();
|
|
}
|
|
|
|
function countdown() {
|
|
if (time > 0) {
|
|
time--;
|
|
document.getElementById('timeElement').innerHTML = time;
|
|
console.log(time);
|
|
}
|
|
}
|
|
|
|
setInterval(countdown, 1000);
|
|
setTimeout(redirect, 5000); |