ADD file via upload

main
ppnhs9f3g 2 months ago
parent 97bf636c08
commit 198867a9c6

@ -0,0 +1,120 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>点名系统</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
text-align: center;
background-color: white;
}
button {
padding: 10px 20px;
background-color: rgb(175, 119, 14);
color: white;
border: none;
cursor: pointer;
margin-top: 20px;
}
button:hover {
background-color: rgb(237, 197, 148);
}
#excelDataDisplay div {
display: flex;
justify-content: space-between;
}
#excelDataDisplay div:not(:first-child) {
border-bottom: 1px solid #000;
}
#excelDataDisplay span {
padding: 5px;
}
.sticky-nav {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background-color: whitesmoke;
z-index: 1000;
}
.nav-tabs {
display: flex;
justify-content: center;
}
/* 设置选项卡背景颜色 */
.nav-link {
background-color: #a3daea;
color: #000000;
}
.nav-link.active {
background-color: #becfe27a;
color: #000000;
}
</style>
</head>
<body>
<!-- 设置选项卡 -->
<div class="sticky-nav">
<ul class="nav nav-tabs justify-content-center" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="page1-tab" data-bs-toggle="tab" data-bs-target="#page1" role="tab"
aria-controls="page1" aria-selected="true">点名</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="page2-tab" data-bs-toggle="tab" data-bs-target="#page2" role="tab"
aria-controls="page2" aria-selected="false">名单</button>
</li>
</ul>
</div>
<div class="container">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="page1" role="tabpanel" aria-labelledby="page1-tab">
<div class="row justify-content-center">
<div class="col-md-6">
<p><input type="file" id="excelFileInput" accept=".xlsx,.xls"></p>
<p><button id="callButton">点名</button></p>
<div id="selectedStudentInfo"></div>
<p>
根据回答情况增加分数:<input type="number" id="addScoreInput" max="3" min="0.5" step="0.1">
<button id="addScoreButton">增加分数</button>
</p>
</div>
</div>
</div>
<div class="tab-pane fade" id="page2" role="tabpanel" aria-labelledby="page2-tab">
<h1>学生名单</h1>
<div id="excelDataDisplay">
<div style="display: flex; justify-content: space-between;">
<span>学号</span>
<span>姓名</span>
<span>积分</span>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<script src="index.js"></script>
</body>
</html>
Loading…
Cancel
Save