-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (84 loc) · 4.48 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<title>Dictation Generator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="js/FileSaver.js"></script>
<script src="js/七上.js"></script>
<script src="js/jspdf.umd.js"></script>
</head>
<body>
<div class="container contentFrom">
<h2>宝宝爱你哟 亲亲</h2>
<div class="form-group">
<input type="file" id="files" style="display:none" onchange="importFile();" />
<button type="button" class="btn btn-primary importLibrary" onclick="javascript:importLibrary();">导入库</button>
<div hidden>
<input type="button" id="import" value="导入" />
</div>
<button type="button" class="btn btn-primary exportLibrary mx-3" onclick="javascript:exportLibrary();">导出库</button>
<button type="button" class="btn btn-primary removeContent float-right" onclick="javascript:removeContent();">清空库</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">添加诗词</button>
<!-- <button type="button" class="btn btn-primary addContent" onclick="javascript:addContent();">添加</button> -->
<button type="button" class="btn btn-primary createProblem mx-3" onclick="javascript:createProblem();">创建题目并下载</button>
<button type="button" class="btn btn-primary downloadProblem mx-3" onclick="javascript:downloadProblem();">下载</button>
<a class="btn btn-primary mx-3" href="库/Library.json" download="Library.json">模板</a>
</div>
<div>
<div class="form-group">
<label for="title">题目数量:</label>
<input class="form-control problemNumber" type="text" value="20">
</div>
</div>
<div class="contentBody" contenteditable="true"></div>
</div>
<div class="container">
<div class="renderPdf" id="renderPdf" style="background-color: white;color: black;font-size: 30px; padding-left: 25px; padding-right: 25px;">
<div class="problemBody" contenteditable="true"></div>
</div>
</div>
<!-- 模态框 -->
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<!-- 模态框头部 -->
<div class="modal-header">
<h4 class="modal-title">模态框头部</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<!-- 模态框主体 -->
<div class="modal-body">
<div class="form-group">
<label for="title">标题:</label>
<input type="text" class="form-control" id="title" placeholder="标题">
</div>
<div class="form-group">
<label for="author">作者:</label>
<input type="text" class="form-control" id="author" placeholder="作者">
</div>
<div class="form-group">
<label for="years">年代:</label>
<input type="text" class="form-control" id="years" placeholder="年代">
</div>
<div class="form-group">
<label for="content">内容:</label>
<textarea type="text" class="form-control" id="content" placeholder="内容" rows="5"></textarea>
</div>
</div>
<!-- 模态框底部 -->
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="javascript:addContent();">提交</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="./js/html2canvas.js"></script>
<script type="text/javascript" src="./js/jsPdf.debug.js"></script>
<script type="text/javascript" src="./js/scriptUnite.js"></script>
</body>
</html>