-
Notifications
You must be signed in to change notification settings - Fork 0
/
static_remember.html
321 lines (270 loc) · 14.8 KB
/
static_remember.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
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 必须的 meta 标签 -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap 的 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" >
<title>Document</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" ></script>
<body class="jumbotron container-lg">
<h3>单词列表</h3>
<div class="row ">
<!-- Button trigger modal -->
<div >
<button type="button" class="btn btn-small btn-light px-md-5 mx-2 " data-toggle="modal" data-target="#sist">
<span>sist</span>
<span class="badge badge-light">5</span>
<span class="sr-only">1</span>
</button><button type="button" class="btn btn-small btn-light px-md-5 mx-2 " data-toggle="modal" data-target="#st">
<span>st</span>
<span class="badge badge-light">4</span>
<span class="sr-only">3</span>
</button><button type="button" class="btn btn-small btn-light px-md-5 mx-2 " data-toggle="modal" data-target="#sid">
<span>sid</span>
<span class="badge badge-light">4</span>
<span class="sr-only">4</span>
</button>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="sist" tabindex="-1" role="dialog" aria-hidden="true" aria-labelledby="sist">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="sist">sist =站 引申为 帮助,坚持</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!--内容部分 ---->
<div class="modal-body">
<!-- <h5>123</h5> -->
<span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: ɪnˈsɪst</span></span><br/><span>[vt. 坚持,强调, vi. 坚持,强调]</span>" >insist</button>
<span class="sr-only">10</span>
<audio style="visibility: collapse;">
<source src="audio/sist/insist.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: kənˈsɪst</span></span><br/><span>[vi. 由…组成;在于;符合]</span>" >consist</button>
<span class="sr-only">11</span>
<audio style="visibility: collapse;">
<source src="audio/sist/consist.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: rɪˈzɪst</span></span><br/><span>[vi. 抵抗,抗拒;忍耐, vt. 抵抗;忍耐,忍住, n. [助剂] 抗蚀剂;防染剂]</span>" >resist</button>
<span class="sr-only">12</span>
<audio style="visibility: collapse;">
<source src="audio/sist/resist.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: əˈsɪst</span></span><br/><span>[v. 参加,出席;协助(做一部分工作);(通过提供金钱或信息)帮助;在场(当助手);使便利;(在做某任务中)有助益, n. 帮助;(体育比赛中的)助攻;辅助机械专置]</span>" >assist</button>
<span class="sr-only">13</span>
<audio style="visibility: collapse;">
<source src="audio/sist/assist.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: pərˈsɪst</span></span><br/><span>[vi. 存留,坚持;持续,固执, vt. 坚持说,反复说]</span>" >persist</button>
<span class="sr-only">14</span>
<audio style="visibility: collapse;">
<source src="audio/sist/persist.mp3">
</audio>
</span>
<hr>
</div>
</div>
<div class="modal-footer">
<!--弹出框页脚 -->
<button type="button" class="btn btn-warning" data-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
<div class="modal fade" id="st" tabindex="-1" role="dialog" aria-hidden="true" aria-labelledby="st">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="st">词根st=stand=stant 站</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!--内容部分 ---->
<div class="modal-body">
<!-- <h5>123</h5> -->
<span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: ˈsteɪbl</span></span><br/><span>[adj. 稳定的,牢固的;稳重的,沉稳的;持久的;(化学术语)稳定的, n. 马厩;养马场;(属同一马主或驯马师的)一群赛马;(同一地方工作的)一批人,(同一公司生产的)系列产品;(提供相同训练的)组织,机构, v. 赶入马房,把(马)拴在马厩;(被)关在马厩, n. (Stable) (美、英、法)斯特布尔(人名)]</span>" >stable</button>
<span class="sr-only">15</span>
<audio style="visibility: collapse;">
<source src="audio/st/stable.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: ˈdɪstənt</span></span><br/><span>[adj. 遥远的;冷漠的;远隔的;不友好的,冷淡的]</span>" >distant</button>
<span class="sr-only">16</span>
<audio style="visibility: collapse;">
<source src="audio/st/distant.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: ˈkɑːnstənt</span></span><br/><span>[adj. 不变的;恒定的;经常的, n. [数] 常数;恒量, n. (Constant)人名;(德)康斯坦特]</span>" >constant</button>
<span class="sr-only">17</span>
<audio style="visibility: collapse;">
<source src="audio/st/constant.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: ˈsʌbstəns</span></span><br/><span>[n. 物质;实质;资产;主旨]</span>" >substance</button>
<span class="sr-only">18</span>
<audio style="visibility: collapse;">
<source src="audio/st/substance.mp3">
</audio>
</span>
<hr>
</div>
</div>
<div class="modal-footer">
<!--弹出框页脚 -->
<button type="button" class="btn btn-warning" data-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
<div class="modal fade" id="sid" tabindex="-1" role="dialog" aria-hidden="true" aria-labelledby="sid">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="sid">词根sid=sit 坐</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!--内容部分 ---->
<div class="modal-body">
<!-- <h5>123</h5> -->
<span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: kənˈsɪdər</span></span><br/><span>[vt. 考虑;认为;考虑到;细想, vi. 考虑;认为;细想]</span>" >consider</button>
<span class="sr-only">19</span>
<audio style="visibility: collapse;">
<source src="audio/sid/consider.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: null</span></span><br/><span>[n. 主席;主持者]</span>" >presider</button>
<span class="sr-only">20</span>
<audio style="visibility: collapse;">
<source src="audio/sid/presider.mp3">
</audio>
</span><span>
<button onclick="player(this)" type="button" class="btn btn-sm btn-secondary element m-2"
data-placement="top"
data-trigger="hover focus"
data-html="true" title="<span class=pointerCursor onclick=player(this)><img src=../static/images/audio.png style=display:inline;/><span>英: ˈprezɪdənt</span></span><br/><span>[n. 总统;董事长;校长;主席;总裁]</span>" >president</button>
<span class="sr-only">21</span>
<audio style="visibility: collapse;">
<source src="audio/sid/president.mp3">
</audio>
</span>
<hr>
</div>
</div>
<div class="modal-footer">
<!--弹出框页脚 -->
<button type="button" class="btn btn-warning" data-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
<!--右下角提示-->
<div aria-live="polite" aria-atomic="true" style="position: relative; min-height: 200px;">
<div aria-live="assertive" class="toast" aria-atomic="true" data-delay="10000" style="position: absolute; top: 200%; right: 0;">
<div class="toast-header">
<!-- <img src="..." class="rounded mr-2" alt="..."> -->
<strong class="mr-auto">GoGo</strong>
<small>1 mins ago</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
让我们开始学习吧!
</div>
</div>
</div>
</body>
<style>
.pointerCursor {
cursor: pointer;
}
</style>
<script src="../static/util.js"></script>
<script src="../static/toast.js"></script>
<script src="../static/tooltip.js"></script>
<script>
$(function () {
$('.toast').toast("show")
//$('.element').tooltip('show')
/* $('.element').popover({
container: 'body'
})*/
$('.element').tooltip('show');
$('.element').tooltip('hide');
let date = new Date();
$('.element').on('shown.bs.tooltip', function () {
let endDate = new Date();
if (endDate-date > 1000) {
// do something…
player(this);
}
})
})
function wordType(obj) {
console.log(obj)
}
function player(obj) {
let audio = $(obj).parent().find("audio").get(0);
audio.currentTime = 0;
audio.play();
}
</script>
</html>