This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLibEditor.html
58 lines (58 loc) · 2.34 KB
/
LibEditor.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
<title>题海题库编辑器</title>
<link rel="shortcut icon" href="./icon.ico">
</head>
<body>
<div id="info">
<span id="main">当前编辑器版本:1.0.0(8)</span><br>
</div>
<div id="editArea">
<div>
<span>题库名称:</span>
<input type="text" id="name">
</div>
<div>
<span>题库代号:</span>
<input type="text" id="libName">
</div>
<div>
<span>代码作者:</span>
<input type="text" id="author">
</div>
<div>
<span>题库描述:</span>
<input type="text" id="desc" placeholder="可以为空">
</div>
<div>
<span>题库版本名:</span>
<input type="text" id="versionName" placeholder="可以随便取">
</div>
<div>
<span>题库版本号:</span>
<input type="text" id="versionCode" placeholder="更新时版本号大的会覆盖小的">
</div>
<div>
<textarea id="data" cols="50" rows="5" placeholder="问题,正确答案,选项1[,选项2,选项3...] 正确答案不需要包含在选项中,选项可以添加多个,但至少要有1个 换行以添加多个问题"></textarea>
</div>
<div>
<span>正确提示:</span>
<input type="text" id="correct">
</div>
<div>
<span>错误提示:</span>
<input type="text" id="wrong">
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/json5/2.2.3/index.min.js"></script>
<script src="./src/generate.js"></script>
<button id="submit" onclick="generate();">生成题库</button>
<div>
<span>读取题库:</span>
<input id="upload" type="file" accept=".json5" onchange="readLib();">
</div>
</div>
</body>
</html>