添加了内容审核支持防止被ban掉交不了作业

This commit is contained in:
2023-12-17 02:59:53 +00:00
parent eceace3785
commit 9283940259
7 changed files with 197 additions and 15 deletions

View File

@ -98,17 +98,14 @@
var password = document.getElementById("password").value;
var nick_name = document.getElementById("nickname").value;
var ret=await Request("register "+username+" "+password+" "+nick_name);
if(ret=="Invalid")
{
alert("Invalid username or password");
}
else
if(ret=="[empty]")
{
// 删除注册框,在中间显示“注册成功”,三秒后自动跳转到首页
document.querySelector('.register-box').style.display = 'none';
document.querySelector('.content').innerHTML = '<div class="info-box"><h2>Register Success</h2><p>Redirecting to home page in 3 seconds...</p></div>';
setTimeout(function(){window.location.href="/";},3000);
}
else alert("Invalid username or password");
}
</script>
<script src="/sessioninit.js"></script>