-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (46 loc) · 1.57 KB
/
index.html
File metadata and controls
51 lines (46 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>随机点名系统</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<button class="sound-control" id="soundToggle" title="切换声音">🔊</button>
<div class="header">
<h1>🎲 随机点名系统</h1>
</div>
<div class="stats">
<div class="stat-item">
<div class="stat-value" id="totalCount">0</div>
<div class="stat-label">总人数</div>
</div>
<div class="stat-item">
<div class="stat-value" id="remainingCount">0</div>
<div class="stat-label">剩余人数</div>
</div>
<div class="stat-item">
<div class="stat-value" id="selectedCount">0</div>
<div class="stat-label">已点人数</div>
</div>
</div>
<div class="file-controls">
<input type="file" id="fileInput" accept=".json,.txt,.csv" />
<button class="btn btn-small" onclick="document.getElementById('fileInput').click()">📁 导入名单</button>
<button class="btn btn-small" id="exportBtn">💾 导出名单</button>
</div>
<div class="box" id="nameContainer">
<!-- 学生名单将在这里动态生成 -->
</div>
<div class="controls">
<button class="btn btn-primary" id="startBtn">开始点名</button>
<button class="btn btn-danger" id="resetBtn">重置名单</button>
</div>
</div>
<script src="js/script.js"></script>
</body>
</html>