-
Notifications
You must be signed in to change notification settings - Fork 6
/
flash.php
259 lines (259 loc) · 17 KB
/
flash.php
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?php
include_once 'includes/db_connect.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Flashcards</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<link rel="stylesheet" type="text/css" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-toggle.min.css">
<!--[if IE]>
<script src="https://stephenmccready.asia/html5shiv.min.js"></script>
<![endif]-->
</head>
<body onload="init()" scroll="no">
<div id="overlayHelp" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeHelp()">×</a>
<div class="overlay-content">
<h4>Help</h4>
<p><h5>Search</h5>
You can search by 汉字 (Hanzi), English word(s), Pīnyīn or Pinyin+number<br/>
e.g. <b>下, xià, xia4, fall</b><br/>
<span class="glyphicon glyphicon-exclamation-sign"></span> To wildcard search pinyin number, use Pinyin+'<b>9</b>' e.g. <b>xia9</b>. This will return all words that contain the pinyin xia1, xia2, xia3, xia4 and xia5</p>
<p><h5>Radicals</h5>
If you click or tap <span class="glyphicon glyphicon-list"></span> beside a radical, all the characters containing that radical will be listed</p>
<p><h5>Miscellaneous</h5>
<span class="glyphicon glyphicon-random"></span> Displays the cards in random order<br/>
<span class="glyphicon glyphicon-copy"></span> Copy the Hanzi to the clipboard<br/>
<span class="glyphicon glyphicon-pushpin"></span> Add/remove the card from your review list<br/>
</p>
</div>
</div>
<div class="wrapper">
<header>
<div class="btn-group" id="navbar">
<button id="dispHSK" type="button" class="btn btn-primary" onclick="$('#divLesson,#divSearch,#divSettings').slideUp();$('#divHSK').slideToggle();"></button>
<button id="dispLesson" type="button" class="btn btn-primary" onclick="$('#divHSK,#divSearch,#divSettings').slideUp();$('#divLesson').slideToggle();"></button>
<button type="button" class="btn btn-primary" onclick="$('#divHSK,#divLesson,#divSearch,#divSettings').slideUp();LoadFlashCards();">
<span id="refreshButton" class="glyphicon glyphicon-refresh"></span></button>
<button type="button" class="btn btn-primary" onclick="$('#divHSK,#divLesson,#divSettings').slideUp();$('#divSearch').slideToggle();$('#txtsearch').focus();">
<span class="glyphicon glyphicon-search"></span></button>
<button type="button" class="btn btn-primary" onclick="$('#divHSK,#divLesson,#divSearch').slideUp();$('#divSettings').slideToggle();">
<span class="glyphicon glyphicon-cog"></span></button>
<button id="toggleCARDLIST" type="button" class="btn btn-primary">
<span id="listButton" class="glyphicon glyphicon-list"></span>
<span id="cardButton" class="glyphicon glyphicon-file"></span></button>
</div>
<input type="text" id="holdHSK">
<input type="text" id="holdLesson">
</header>
<div id="divHSK" class="clearfix well well-sm">
<h4>HSK Level</h4>
<div class="clearfix btn-group" data-toggle="buttons">
<label id="labHSK1" class="btn btn-gender btn-default active"><input type="radio" name="radHSK" value="1">1</label>
<label id="labHSK2" class="btn btn-gender btn-default"><input type="radio" name="radHSK" value="2">2</label>
<label id="labHSK3" class="btn btn-gender btn-default"><input type="radio" name="radHSK" value="3">3</label>
<label id="labHSK4" class="btn btn-gender btn-default"><input type="radio" name="radHSK" value="4">4</label>
<label id="labHSK5" class="btn btn-gender btn-default"><input type="radio" name="radHSK" value="5">5</label>
<label id="labHSK6" class="btn btn-gender btn-default"><input type="radio" name="radHSK" value="6">6</label>
<label id="labHSKAll" class="btn btn-gender btn-default"><input type="radio" name="radHSK" value="All">All</label>
</div>
<div class="clearfix divclose">
<button class="btn btn-default closeButton" onclick="$('#divHSK').slideUp();">
<span class="glyphicon glyphicon-chevron-up"></span></button>
</div>
</div>
<div id="divLesson" class="clearfix well well-sm">
<h4>Lesson</h4>
<div class="clearfix btn-group" data-toggle="buttons">
<label id="labLess01" class="btn btn-gender btn-default active"><input type="radio" name="radLesson" value="1"> 1</label>
<label id="labLess02" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="2"> 2</label>
<label id="labLess03" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="3"> 3</label>
<label id="labLess04" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="4"> 4</label>
<label id="labLess05" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="5"> 5</label>
<label id="labLess06" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="6"> 6</label>
<label id="labLess07" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="7"> 7</label>
<label id="labLess08" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="8"> 8</label>
<label id="labLess09" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="9"> 9</label>
<label id="labLess10" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="10"> 10</label>
<label id="labLess11" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="11"> 11</label>
<label id="labLess12" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="12"> 12</label>
<label id="labLess13" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="13"> 13</label>
<label id="labLess14" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="14"> 14</label>
<label id="labLess15" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="15"> 15</label>
<label id="labLess16" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="16"> 16</label>
<label id="labLess17" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="17"> 17</label>
<label id="labLess18" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="18"> 18</label>
<label id="labLess19" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="19"> 19</label>
<label id="labLess20" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="20"> 20</label>
<label id="labLessAll" class="btn btn-gender btn-default"><input type="radio" name="radLesson" value="All"> All</label>
<label id="labLessAdjectives" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Adjectives"> Adjectives</label>
<label id="labLessAdverbs" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Adverbs"> Adverbs</label>
<label id="labLessMeasureWords" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Measure Words"> Measure Words</label>
<label id="labLessModals" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Modals"> Modals</label>
<label id="labLessNouns" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Nouns"> Nouns</label>
<label id="labLessNumbers" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Numbers"> Numbers</label>
<label id="labLessParticles" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Particles"> Particles</label>
<label id="labLessPronouns" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Pronouns"> Pronouns</label>
<label id="labLessProperNouns" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Proper Nouns"> Proper Nouns</label>
<label id="labLessRadicals" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Radicals"> Radicals</label>
<label id="labLessVerbs" class="btn btn-gender btn-default">
<input type="radio" name="radLesson" value="Verbs"> Verbs</label>
<label id="labLessReview" class="btn btn-gender btn-warning">
<input type="radio" name="radLesson" value="Review">
<span class="glyphicon glyphicon-pushpin"></span> Review</label>
</div>
<div class="clearfix divclose">
<button class="btn btn-default closeButton" onclick="$('#divLesson').slideUp();">
<span class="glyphicon glyphicon-chevron-up"></span></button></div>
</div>
<div class="clearfix well well-sm" id="divSearch">
<h4>Search in 汉字, Pinyin or English</h4>
<div>
<div id="searchbox">
<input type="search" id="txtsearch" name="txtsearch" aria-label="Search" placeholder="e.g. 天,tian1 or sky"/>
<button id="btn-clearsearch" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-remove"></span></button>
</div>
<div id="searchbtnbox">
<button id="btn-search" type="button" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
</div>
</div>
<div class="checkboxLabel">Exact match </div>
<div class="toggleBox"><p><input id="toggleEXACTMATCH" type="checkbox" data-toggle="toggle" data-on="On" data-off="Off" data-onstyle="success" data-offstyle="danger"></p></div>
<div class="checkboxLabel">Case sensitive </div>
<div class="toggleBox"><p><input id="toggleMATCHCASE" type="checkbox" data-toggle="toggle" data-on="On" data-off="Off" data-onstyle="success" data-offstyle="danger"></p></div>
<div class="divclose"><button class="btn btn-default closeButton" onclick="$('#divSearch').slideUp();"><span class="glyphicon glyphicon-chevron-up"></span></button></div>
</div>
<div class="clearfix well well-sm" id="divSettings">
<form id="myform2" class="form-inline">
<h4>Settings</h4>
<div class="checkboxLabel">Display label language </div>
<div class="toggleBox"><p><input id="toggleLANGUAGE" type="checkbox" data-toggle="toggle" data-on="Hanzi" data-off="English" data-onstyle="default" data-offstyle="default" data-width="100"></p></div>
<div class="checkboxLabel"><p>Audio only on card display </div>
<div class="toggleBox"><p><input id="toggleSOUND" type="checkbox" data-toggle="toggle" data-on="On" data-off="Off" data-onstyle="success" data-offstyle="danger"></p></div>
<h5>Stroke Test:</h5>
<div class="checkboxLabel">Display outline </div>
<div class="toggleBox"><p><input id="toggleSHOWOUTLINE" type="checkbox" data-toggle="toggle" data-on="On" data-off="Off" data-onstyle="success" data-offstyle="danger"></p></div>
<div class="checkboxLabel">Display stroke hint after x number of misses </div>
<div class="toggleBox">
<p><select class="form-control" id="selQuizMisses">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected="selected">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select></p>
</div>
</form>
<div class="divclose"><button class="btn btn-default closeButton" onclick="$('#divSettings').slideUp();"><span class="glyphicon glyphicon-chevron-up"></span></button></div>
</div>
<div class="clearfix" id="divOptions">
<form id="myform1" class="form-inline" autocomplete="off">
<input id="toggleSTROKEQUIZ" type="checkbox" data-toggle="toggle"
data-off="<span class='eng'>Stroke Test</span><span class='han'>Stroke Quiz</span>"
data-on="<span class='eng'>Stroke Test Off</span><span class='han'>Stroke Quiz Off</span>"
data-size="small" data-onstyle="default" data-offstyle="default">
<input id="togglePINYIN" type="checkbox" data-toggle="toggle"
data-off="<span class='eng'>Show Pinyin</span><span class='han'>显示拼音</span>"
data-on="<span class='eng'>Hide Pinyin</span><span class='han'>隐藏拼音</span>"
data-size="small" data-onstyle="default" data-offstyle="default">
<input id="toggleENGLISH" type="checkbox" data-toggle="toggle"
data-off="<span class='eng'>Show English</span><span class='han'>显示英语</span>"
data-on="<span class='eng'>Hide English</span><span class='han'>隐藏英语</span>"
data-size="small" data-onstyle="default" data-offstyle="default">
</form>
</div>
<div id="copied-container"><div id="copied"></div></div>
<div class="main clearfix">
<div class="loader">Loading</div>
<div id="List" class="clearfix">
<table id="listTab" class="table table-responsive table-condensed table-hover table-striped table-borderless"><tbody></tbody></table>
<span id="wordcount" class="posTab"></span><span id="wordcountsuffix" class="posTab"></span><br/><br/>
</div>
<div id="Card" class="flex-container">
<div id="animation" class="clearfix">
<div id="random-container"><span id="random-glyph" class="glyphicon glyphicon-random random-off"></span><span id="copy-glyph" class="glyphicon glyphicon-copy"></span><span id="review-glyph" class="glyphicon glyphicon-pushpin review-off"></span></div>
<div id="ani-container" class="clearfix"><div id="HanziAni0" class="ani" lang="zh"></div><div id="HanziAni1" class="ani" lang="zh"></div><div id="HanziAni2" class="ani" lang="zh"></div><div id="HanziAni3" class="ani" lang="zh"></div><div id="HanziAni4" class="ani" lang="zh"></div></div>
</div>
<div id="animation-buttons" class="clearfix">
<div id="div-ani0" class="div-btn"><button id="btn-ani0" type="button" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></button></div>
<div id="div-ani1" class="div-btn"><button id="btn-ani1" type="button" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></button></div>
<div id="div-ani2" class="div-btn"><button id="btn-ani2" type="button" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></button></div>
<div id="div-ani3" class="div-btn"><button id="btn-ani3" type="button" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></button></div>
<div id="div-ani4" class="div-btn"><button id="btn-ani4" type="button" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></button></div>
</div>
<div class="clearfix" id="Audio"></div>
<div id="audio_player_container"></div>
<div class="clearfix" id="Views"></div>
<div id="Pinyin-container" class="clearfix">
<div id="Pinyin">
<span id="Pinyin0"></span><span id="Pinyin1"></span><span id="Pinyin2"></span><span id="Pinyin3"></span><span id="Pinyin4"></span>
</div>
</div>
<div id="PartofSpeech-container" class="clearfix">
<div id="divRadicalBtn"><button id="btn-rad" class="btn btn-default"></button></div>
<div class="pos" id="PartofSpeech"></div>
</div>
<div id="English-container" class="clearfix">
<div id="English"></div>
</div>
<input type="text" hidden id="DBID"/>
<input type="text" hidden id="HSK"/>
<div class="clearfix fgroup">
<div id="footCardNav">
<div class="btn-group">
<button type="button" class="btn btn-primary" onclick="dispCard('first');">
<span class="glyphicon glyphicon-fast-backward"></span></button>
<button type="button" class="btn btn-primary" onclick="dispCard('prev');">
<span class="glyphicon glyphicon-backward"></span></button>
<button type="button" class="btn btn-primary" onclick="">
<span id="footCenter"></span></button>
<button type="button" class="btn btn-primary" onclick="dispCard('next');">
<span class="glyphicon glyphicon-forward"></span></button>
<button type="button" class="btn btn-primary" onclick="dispCard('last');">
<span class="glyphicon glyphicon-fast-forward"></span></button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix footer" id="fCard">
<div class="btn-group" id="bottomBtnContainer">
<button type="button" class="btn btn-default" onclick="openHelp();">
<span class="glyphicon glyphicon-info-sign text-success"></span></button>
<button class="btn btn-default" onclick="$('#animation').toggle();$('#animation-buttons').toggle();">
<span class="han">汉字</span><span class="eng">Han</span></button>
<button class="btn btn-default" onclick="$('#Pinyin').toggle();">
<span class="han">拼音</span><span class="eng">Pyn</span></button>
<button class="btn btn-default" onclick="$('#English').toggle();$('#PartofSpeech').toggle();">
<span class="han">英语</span><span class="eng">Eng</span></button>
<button class="btn btn-default" onclick="dispCard();">
<span class="glyphicon glyphicon-remove text-danger"></span></button>
<button class="btn btn-default" onclick="knowIt();">
<span class="glyphicon glyphicon-ok text-success"></span></button>
</div>
</div>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.2.min.js"></script>
<script async src="js/flash.js"></script>
<script async src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script async src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js"></script>
<script async src="js/bootstrap-toggle.min.js"></script>
<script async src="js/hanzi-writer.min.js"></script>
<script async src="js/clipboard.min.js"></script>
</body>
</html>