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.
64 lines
2.5 KiB
64 lines
2.5 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>课堂随机点名系统</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>🎯 课堂随机点名系统</h1>
|
|
</header>
|
|
|
|
<div class="main-content">
|
|
<!-- 点名显示区域 -->
|
|
<div class="display-area">
|
|
<div id="studentDisplay" class="student-display">
|
|
<div class="placeholder">等待点名...</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 控制按钮 -->
|
|
<div class="control-buttons">
|
|
<button id="randomBtn" class="btn btn-primary">随机点名</button>
|
|
<button id="sequentialBtn" class="btn btn-secondary">顺序点名</button>
|
|
</div>
|
|
|
|
<!-- 积分操作 -->
|
|
<div class="score-controls" id="scoreControls" style="display: none;">
|
|
<h3>积分操作</h3>
|
|
<div class="score-buttons">
|
|
<button class="btn btn-success" onclick="updateScore(1)">准时到课 +1分</button>
|
|
<button class="btn btn-warning" onclick="updateScore(0.5)">重复问题 +0.5分</button>
|
|
<button class="btn btn-info" onclick="updateScore(2)">回答正确 +2分</button>
|
|
<button class="btn btn-danger" onclick="updateScore(-1)">回答错误 -1分</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 文件导入 -->
|
|
<div class="file-import">
|
|
<h3>导入学生名单</h3>
|
|
<input type="file" id="excelFile" accept=".xlsx">
|
|
<button id="importBtn" class="btn btn-outline">导入Excel</button>
|
|
<div id="importMessage"></div>
|
|
</div>
|
|
|
|
<!-- 数据导出和排名 -->
|
|
<div class="data-actions">
|
|
<button id="exportBtn" class="btn btn-outline">导出数据</button>
|
|
<button id="rankingBtn" class="btn btn-outline">查看排名</button>
|
|
</div>
|
|
|
|
<!-- 排名显示 -->
|
|
<div id="rankingDisplay" class="ranking-display" style="display: none;">
|
|
<h3>积分排名TOP 10</h3>
|
|
<div id="rankingList"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
|
</body>
|
|
</html> |