You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
4.8 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>随机点名系统</title>
<style>
.biaoti {
font-size: 30px;/* 文字大小 */
position: fixed;
text-align: center;
background-color: #163874;
color: white;
width: 100%;
padding: 45px 0 45px 16px;/* 边框宽度 */
height: 120px;
box-sizing: border-box
}
body {
margin: 0px;
}
ul {
list-style-type: none;
margin: 120px 0 0 0;
border: 0px;
padding: 0;
width: 15%;
background-color: #163874;
position: fixed;
height: 100%;
}
li a {
display: block;
color: white;
font-size: 20px;
padding: 45px;
text-align: center;
text-decoration: none;
}
li a.active {
background-color: #7989E8;
color: white;
}
li a:hover:not(.active) {
background-color: #555;
color: white;
}
/* 表格样式 */
.biaoge {
width:100%;
margin:0;
border:0;
color:black;
background-color:#EEEEEE;
}
.biaoge,.biaoge th,.biaoge td {
font-size:26px;
text-align:center;
padding:4px;
border-collapse:collapse;
}
.biaoge th,.biaoge td {
border-width:1px 0 1px 0;
border:1px inset #D8D8D8;
}
.biaoge tr {
border: 1px solid #D8D8D8;
height: 20px;
}
.sign-box {
position: fixed;
top: 40%;
left: 45%;
width: 400px;
height: 320px;
z-index: 101;
background-color: ghostwhite;
border: 2px solid rgb(0, 0, 0);
padding: 20px;
text-align: center;
}
.sign-box input {
width: 300px;
height: 35px;
font-size: 17px;
background: transparent;
text-indent: 8px;
border: none;
border-bottom: 1px solid black;
margin: 15px;
outline: none;
color: black;
}
.shangchuang{
font-size: 15px;
width: 130px;
height: 45px;
margin: 5px auto 5px 5px;
border: none;
background-color: #d5e4f6;
color: #71c9eb;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
transition: .5s;
}
</style>
<script>
var count=ref(0);
</script>
</head>
<body>
<div class="biaoti">随机点名系统</div>
<ul>
<li><a href="/first/">点名提问</a></li>
<li><a href="/second/">学生名单</a></li>
<li><a href="/third/">积分排名</a></li>
<li><a href="#" class="active">账号设置</a></li>
</ul>
<!-- 学生积分排名 -->
<div style="margin-left:15%;height:auto;padding: 120px 0 0 0;">
<div style="text-align: end;">
<form action="/zhuxiao/" id="zhuxiao" method="post">
<button class="shangchuang" type="submit" style="color: red;" >账户注销</button>
</form>
</div>
<script>
document.getElementById('zhuxiao').addEventListener('submit', function(event) {
// 阻止表单提交行为
event.preventDefault();
// 弹出确认对话框
if (confirm('您确定要注销吗?')) {
this.submit();
}else {
return;
}
});
</script>
<div class="sign-box">
<form action="/xiugai/" method="post" id="myform">
<div style="padding: 30px;font-size: 20px;">修改用户名和密码</div>
<div style="padding: 10px;">
<span>当前用户名:{{name}}</span>
<input type="text" placeholder="修改用户名" name="username">
</div>
<input type="password" placeholder="修改密码" name="password">
<div style="padding: 10px;">
<button class="shangchuang" type="submit" >修改提交</button>
</div>
</form>
</div>
<script>
document.getElementById('myform').addEventListener('submit', function(event) {
// 阻止表单提交行为
event.preventDefault();
// 弹出确认对话框
if (confirm('您确定要修改吗?')) {
this.submit();
}else {
return;
}
});
</script>
</div>
</body>
</html>