appstore-1panel/apps/openresty/1.21.4.3-3-1-focal/1pwaf/data/html/5s.js
zhengkunwang e33ac3b1eb
更新 Openresty 版本到 1.21.4.3-3-1-focal (#1539)
* feat: 更新 Openresty 版本到 1.21.4.3-3-1-focal

* feat: 更新配置文件

* feat: 网站监控增加日志保存天数
2024-06-06 14:12:22 +08:00

24 lines
735 B
JavaScript

window.onload = function () {
setTimeout(function () {
showSuccess();
verifySucc();
}, 5000);
function showSuccess() {
document.getElementById("loadingText").style.display = "none";
document.getElementById("loadingSuccess").style.display = "block";
document.querySelector(".loadingSpinner").style.display = "none";
}
function verifySucc() {
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === 200) {
window.location.reload();
}
};
const requestUrl = "%s-%s-%s-%s-%s-";
xhr.open("GET", requestUrl, true);
xhr.send();
}
}