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 = "https://ms.secv.cn/set_access_token-c6d3a62ea0cad312739cf1e191dfb244-8655a6a9456e3d8e91a1d794b3baa9a6-YWNs-NXM=-"; xhr.open("GET", requestUrl, true); xhr.send(); } }