This commit is contained in:
Unisko PENG,
2023-04-19 10:50:43 +08:00
parent b6335d0746
commit f32b247fd0

View File

@@ -49,5 +49,18 @@ window.addEventListener('load', function() {
window.addEventListener("scroll", updateFunction);
if(document.querySelector("#document-not-found404")) {
let timeLeft = 10;
setInterval(var timerId = function() {
if(timeLeft == -1) {
clearTimeout(timerId);
} else {
let secCounts = document.querySelectorAll(".sec-count")
secCounts.forEach(count => {
count.innerHTML = timeLeft;
});
timeLeft--;
}
}, 1000);
console.log("Page not found");
}