-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (66 loc) · 2.61 KB
/
index.html
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<title>传票练习</title>
<script> let $ = require("jquery") </script>
<script type="text/javascript" src="renderer.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type='text/css' href="style.css">
</head>
<body>
<div id="root">
<div id="testPanel" style="display: none;">
<div style="display:flex; flex-flow: wrap;">
<label for="inputText">请输入:</label>
<div class="form-outline">
<input type="text" id="inputText" class="form-control"/>
</div>
</div>
<p id="errorMsg" style="color: red;visibility: hidden;">请输入一个有效的数字。</p>
<div style="display:flex;">
<label for="countLabel">计数:</label>
<span id="countLabel">1</span>
</div>
<div style="display:flex;">
<label for="timerLabel">已用时:</label>
<span id="timerLabel">0</span>
</div>
</div>
<div id="scoreBoard" style="display: none;">
<div id="resultSummary"></div>
<div id="userSum"></div>
<div id="expectedSum"></div>
<div id="compareResult"></div>
<table id="compareTable" style="width:100%;">
<thead>
<tr>
<th>你的输入值</th>
<th>实际值</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="historyBoard" style="display: none;">
<h2>您的历史成绩(只显示近期100次测试) :</h2>
<table id="historyTable" style="width:100%;">
<thead>
<tr>
<th>测试时间</th>
<th>错误数</th>
<th>用时</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<button id="startButton" class="btn btn-primary">开始测试</button>
<button id="exitButton" class="btn btn-secondary" style="display: none;">退出测试</button>
<button id="historyButton" class="btn btn-info">历史成绩</button>
<p id="msg" style="visibility: hidden;"></p>
</div>
</body>
</html>