-
Notifications
You must be signed in to change notification settings - Fork 54
/
wordlist.html
99 lines (92 loc) · 3.85 KB
/
wordlist.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
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<title>Zhongwen Word List</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css" href="css/wordlist.css">
<script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="js/jquery.dataTables.min.js" type="text/javascript"></script>
<script src="js/dataTables.bootstrap4.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/zhuyin.js" type="text/javascript"></script>
<script src="js/wordlist.js" type="text/javascript"></script>
</head>
<body>
<h1>Zhongwen Word List</h1>
<p>You can select individual rows by clicking on them.
Selected rows are highlighted. Selected rows can be saved to a file by clicking on the save button
below the table. Selected rows can also be deleted by clicking on the delete button below the table.
</p>
<p>
By clicking on the column headers you can sort the rows
in ascending or descending order.
</p>
<p>
<em>For technical reasons the Zhongwen pop-up doesn't work on this page.</em>
</p>
<table id="words" class="table table-hover table-striped table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Simplified</th>
<th>Traditional</th>
<th>Pinyin</th>
<th>Zhuyin</th>
<th>Definition</th>
<th>Notes</th>
</tr>
</thead>
</table>
<p>
<div id="nodata" class="alert alert-primary">
You haven't saved any words yet. You can save words by using the "r" key on the keyboard when the pop-up translation
is being displayed.
</div>
<a hidden id="savelink" download="Zhongwen-Words.txt"></a>
<button class="btn btn-success" id="saveList">Save selected rows</button>
<div class="btn-group">
<button class="btn btn-secondary" id="selectAll">Select all rows</button>
<button class="btn btn-outline-secondary" id="deselectAll">Deselect all rows</button>
</div>
<button class="btn btn-danger" id="delete">Delete selected rows</button>
<div class="modal fade" id="editNotes" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Edit Notes</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="simplified" class="col-form-label">Simplified:</label>
<input type="text" disabled class="form-control" id="simplified">
</div>
<div class="form-group">
<label for="traditional" class="col-form-label">Traditional:</label>
<input type="text" disabled class="form-control" id="traditional">
</div>
<div class="form-group">
<label for="definition" class="col-form-label">Definition:</label>
<input type="text" disabled class="form-control" id="definition">
</div>
<div class="form-group">
<label for="notes" class="col-form-label">Notes:</label>
<textarea class="form-control" id="notes"></textarea>
</div>
<input type="hidden" id="rowIndex">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" id="saveNotes" class="btn btn-primary">Save notes</button>
</div>
</div>
</div>
</div>
</body>
</html>