mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-22 14:13:28 +08:00
Updated.
This commit is contained in:
@@ -49,5 +49,18 @@ window.addEventListener('load', function() {
|
|||||||
window.addEventListener("scroll", updateFunction);
|
window.addEventListener("scroll", updateFunction);
|
||||||
|
|
||||||
if(document.querySelector("#document-not-found404")) {
|
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");
|
console.log("Page not found");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user