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://chengyu.tool321.cn/set_access_token-6b4f856c1d0b9a1004a5f6a327c7d307-e687d76022c0c37848adbf1e0af9a5de-YWNs-5oiQ6K+t-"; xhr.open("GET", requestUrl, true); xhr.send(); } }