mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-03-14 03:10:44 +08:00
Updated.
This commit is contained in:
parent
029b55d0b5
commit
14d8180519
@ -54,6 +54,8 @@ if(document.querySelector("#document-not-found404")) {
|
||||
var timerId = setInterval(() => {
|
||||
if(timeLeft == -1) {
|
||||
clearTimeout(timerId);
|
||||
let siteRoot = window.location.origin;
|
||||
window.location.replace(siteRoot);
|
||||
} else {
|
||||
let secCounts = document.querySelectorAll(".sec-count")
|
||||
secCounts.forEach(count => {
|
||||
@ -62,5 +64,4 @@ if(document.querySelector("#document-not-found404")) {
|
||||
timeLeft--;
|
||||
}
|
||||
}, 1000);
|
||||
console.log("Page not found");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user