This repository was archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
170 lines (170 loc) · 7.69 KB
/
index.html
File metadata and controls
170 lines (170 loc) · 7.69 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="背诵,助手,语文背诵">
<meta name="description" content="背诵助手,您短句背诵的好帮手">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>背诵助手</title>
<link rel="shortcut icon" href="Lib/cube.ico" type="image/x-icon">
<link rel="stylesheet" href="Lib/button.css">
<link rel="stylesheet" href="Lib/footer.css">
<link rel="stylesheet" href="Lib/fullscreen.css">
<link rel="stylesheet" href="Lib/file-upload.css">
<link rel="stylesheet" href="Lib/error.css">
<link rel="stylesheet" href="style/frame.css">
<link rel="stylesheet" href="style/recite.css">
<link rel="stylesheet" href="style/result.css">
<link rel="stylesheet" href="style/review.css">
<link rel="stylesheet" href="style/setting.css">
<script src="Lib/jquery-3.6.0.min.js"></script>
<script src="Lib/fastest-levenshtein/mod.min.js"></script>
</head>
<body>
<div id="board" class="section">
<span class="button-i" id="title" contenteditable="true">背诵</span>
<span id="stage">请导入问题</span>
</div>
<div id="nav" class="section">
<button type="button" class="button-d" onclick="start_review();">复习一下</button
><button type="button" class="button-d" onclick="start_recite();">开始背诵</button
><button type="button" class="button-d" onclick="start_task();">设置任务</button
><button type="button" class="button-d" onclick="show('#settings');">常规设置</button><button type="button" class="button-d" onclick="export_rhp();">导出进度</button
>
</div>
<div id="review" class="fullscreen none-display">
<button type="button" class="button-d close-icon-fullscreen"><img src="img/close.svg" alt="关闭" onclick="close_review();"></button>
<h2>复习</h2>
<div id="review-table">
<div id="review-thead">
<div class="rev-tr">
<span>id</span>
<span>问题</span>
<span>标答</span>
<span>积分</span>
<span>统一 考核</span>
<span>已答次数</span>
</div>
</div>
<div id="review-tbody"></div>
</div>
</div>
<div id="recite" class="section none-display">
<h2>背诵</h2>
<div>
<div id="rc-ques"></div>
<div id="rc-note"><span>问题id:<span id="rc-qid">0</span></span><span>当前积分:<span id="rc-scnow">0</span>(<span id="rc-screq">10</span>分通过)</span></div>
</div>
<div>
<textarea id="rc-ans" placeholder="请作答..." tabindex="1"></textarea>
</div>
<p id="rc-submit">
<button type="button" class="button-d" onclick="pause_recite();" tabindex="3">中止 Pause ⏸</button>
<button type="button" class="button-d" onclick="submit_question();" tabindex="2">提交 submit ✔</button>
</p>
</div>
<div id="result" class="section none-display">
<h2>结果</h2>
<div id="rs-simi">
相似度:<span id="rs-simi-ttl" style="color: black">00.00%</span>
<span onclick="see_simi_detail();" id="rs-simi-dswitch" style="--rotate: 0deg;">▶</span>
<span id="rs-simi-detail" class="none-display">
宽松比较(公共字符):<span id="rs-simi-relaxed">00.00%</span>
<br>
严格比较(编辑距离):<span id="rs-simi-strict">00.00%</span>
</span>
</div>
<div id="rs-note">注:下列第一行表示正确答案,即标答(绿色),第二行表示作答</div>
<div id="rs-cor"></div>
<div id="rs-ans"></div>
<div id="rs-score">
评分(最低-10,最高10):<input type="number" min="-10" max="10" step="1" placeholder="算法推荐: 0" id="rs-score-num">
</div>
<div id="rs-pass" class="none-display">
<label for="rs-pass-1">
<input type="radio" name="rs-ifpass" id="rs-pass-1">通过
</label>
<label for="rs-pass-0">
<input type="radio" name="rs-ifpass" id="rs-pass-0">不通过
</label>
</div>
<div id="rs-next-btn"><button type="button" class="button-d" onclick="submit_result();">下一题 Next ➡</button></div>
</div>
<div id="task" class="fullscreen none-display">
<button type="button" class="button-d close-icon-fullscreen"><img src="img/close.svg" alt="关闭" onclick="close_task();"></button>
<h2>任务设置</h2>
<div class="file-upload">
<input type="file" id="file-upload-file" multiple accept=".txt,.rhp" onchange="file_upload_change();">
<div class="file-upload-icon">
<img src="img/upload.svg" alt="上传">
<span id="file-upload-filename">未选择文件</span>
</div>
<div class="file-upload-content">
点击这里上传文件或将文件拖动到虚线框内。
<br>
支持txt(纯文本)和rhp(背诵存档)文件格式。
</div>
</div>
<div id="task-reading">
<span id="task-reading-process" style="color: black">请导入</span>
<button type="button" id="task-upload-confirm" class="button-d" onclick="file_upload_confirm();">确定导入</button>
</div>
<div id="task-export">
<button type="button" class="button-d" onclick="clear_questions();">清空进度</button>
<button type="button" class="button-d" onclick="export_rhp();">导出进度为rhp文件</button>
<button type="button" class="button-d" onclick="export_txt();">导出为txt文件</button>
</div>
<div id="task-setq">
<div id="task-setq-num">
当前共 <span id="task-qnum">0</span> 个问题
</div>
<div id="task-setq-head">
<div class="task-setq-r">
<span>id</span>
<span>问题</span>
<span>标答</span>
<span>操作</span>
</div>
</div>
<div id="task-setq-body"></div>
<div id="task-setq-addq">
<button type="button" class="button-d" onclick="task_addq();">新增问题 +</button>
</div>
</div>
</div>
<div id="stat" class="section none-display">
<h2>统计</h2>
</div>
<div id="settings" class="fullscreen none-display">
<button type="button" class="button-d close-icon-fullscreen"><img src="img/close.svg" alt="关闭" onclick="hide('#settings')"></button>
<h2>设置</h2>
<div title="请输入一个整数。默认为15,最少为1。解释:普遍测试时,回答一次最多加10分,每个问题达到该分数后才会进入统一测试。详见使用说明。">
<span>普遍测试所需分数:</span>
<input type="number" id="set-crscore" min="1" step="1" onchange="set_crScore(parseInt($('#set-crscore').val()), true, true);">
</div>
<div title="请输入一个整数。默认为60,至少为1,至多为99。解释:普遍测试时,以是否达到此分数为标准确定算法推荐得分的正负,并据此计算出具体数值。详见使用说明。">
<span>期望正确率:</span>
<input type="number" id="set-exsimi" min="1" step="1" max="99" onchange="set_exSimi(parseInt($('#set-exsimi').val()), true, true);">
</div>
<div title="请输入一个整数。默认为5,最小为0,最大为10。解释:计算总相似度时,会依照此数对宽松算法和严格算法加权平均,越小越趋向于宽松,越大越趋向于严格。详见使用说明。">
<span>相似度算法偏好:</span>
<span><span id="set-prs-num">5</span>宽松(0)<input type="range" id="set-prstrict" min="0" max="10" step="1" oninput="set_prStrict(parseInt($('#set-prstrict').val()), true, true);">严格(10)</span>
</div>
</div>
<div id="__error"></div>
<footer></footer>
<script src="Lib/footer.js"></script>
<script src="Lib/error.js"></script>
<script src="dist/init.js"></script>
<script src="dist/similarity.js"></script>
<script src="dist/display.js"></script>
<script src="dist/question.js"></script>
<script src="dist/convert.js"></script>
<script src="dist/config.js"></script>
<script src="dist/task.js"></script>
<script src="dist/file.js"></script>
<script src="dist/review.js"></script>
<script src="dist/recite.js"></script>
</body>
</html>