-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathoptions.html
366 lines (326 loc) · 17.8 KB
/
options.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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!doctype html>
<html lang="en" ng-app="fairyDictApp">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-ui/build/angular-ui.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/options.css">
<link rel="stylesheet" type="text/css" href="needsharebutton.min.css">
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/angular-ui/build/angular-ui.js"></script>
<script type="text/javascript" src="bower_components/angular-route/angular-route.js"></script>
<script type="text/javascript" src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script type="text/javascript" src="bower_components/angular-bootstrap/ui-bootstrap.js"></script>
<script type="text/javascript" src="utils.js"></script>
<script type="text/javascript" src="option/option.js"></script>
<script type="text/javascript" src="needsharebutton.min.js"></script>
<style>
img.pull-left{
width: 100px;
margin-right: 30px;
}
#specialKeys-1{
margin-left: 40px;
}
</style>
<title>FairyDict 选项</title>
</head>
<body>
<div class="container" ng-controller="optionCtrl">
<div class="section">
<h1>FairyDict</h1>
<p><strong>Notice: FairyDict 的升级版
<a href="https://chrome.google.com/webstore/detail/dictionaries/diojcfpekhhnndfmggknljpnfpcccbhc" target="_blank">Dictionaries</a>
已发布, 添加了管理单词表和词典列表的功能, 更多的设置和功能, 欢迎去下载使用
<a href="https://chrome.google.com/webstore/detail/dictionaries/diojcfpekhhnndfmggknljpnfpcccbhc" target="_blank">Dictionaries. </a>
FairyDict 将不再更新!</strong></p>
<p>
此软件是开源软件,喜欢请帮忙评价或点赞,有任何问题或建议请在
<a href="https://github.com/revir/FairyDict" target="_blank">Github</a>
或
<a href="https://v2mm.tech" target="_blank">V2MM</a>
上联系我 ;)
</p>
</div>
<div class="section function-setting">
<h1>功能设置</h1>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="setting.enableSelectionOnMouseMove" ng-click="changeKey(setting.enableSelectionOnMouseMove, 'enableSelectionOnMouseMove')"> 鼠标悬停自动选中单词
<em style="color: red">New</em>
</label>
</div>
<div class="checkbox indent">
<input type="checkbox" ng-model="setting.enableSelectionSK1" ng-click="changeKey(setting.enableSelectionSK1, 'enableSelectionSK1')">
同时必须按住
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-selectionSK1">{{setting.selectionSK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-selectionSK1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'selectionSK1')">{{item}}</a>
</li>
</ul>
</div>
</div>
<div class="indent">
<span>悬停延时检测时间
<input type="number"
style="width: 50px"
ng-model="setting.selectionTimeout"
ng-blur="changeKey(setting.selectionTimeout, 'selectionTimeout')"> 毫秒
</span>
</div>
<br>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="setting.enablePlainLookup" ng-click="changeKey(setting.enablePlainLookup, 'enablePlainLookup')"> 开启快速查词功能(快速查询选中的单词释义,跟着鼠标显示)
</label>
</div>
<div class="checkbox indent">
<label>
<input type="checkbox" ng-model="setting.enableAmeAudio" ng-click="changeKey(setting.enableAmeAudio, 'enableAmeAudio')">
自动播放美式发音
</label>
<br/>
<label>
<input type="checkbox" ng-model="setting.enableBreAudio" ng-click="changeKey(setting.enableBreAudio, 'enableBreAudio')">
自动播放英式发音
</label>
</div>
<div class="checkbox indent">
<label>
<input type="checkbox" ng-model="setting.enablePlainSK1" ng-click="changeKey(setting.enablePlainSK1, 'enablePlainSK1')">
同时必须按住
</label>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-plainSK1">{{setting.plainSK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-plainSK1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'plainSK1')">{{item}}</a>
</li>
</ul>
</div>
</div>
<br>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="setting.enableMinidict" ng-click="changeKey(setting.enableMinidict, 'enableMinidict')"> 开启鼠标取词功能(自动弹出词典界面,查询选中的单词)
</label>
</div>
<div class="checkbox indent">
<label>
<input type="checkbox" ng-model="setting.enableMouseSK1" ng-click="changeKey(setting.enableMouseSK1, 'enableMouseSK1')">
同时必须按住
</label>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-mouseSK1">{{setting.mouseSK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-mouseSK1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'mouseSK1')">{{item}}</a>
</li>
</ul>
</div>
</div>
<br>
<div>
单击图标时的功能选择
<div class="radio indent">
<label>
<input type="radio" value="enableMinidict" ng-model="setting.browserActionType" ng-click="changeKey(setting.browserActionType, 'browserActionType')"> 开/关鼠标取词功能
</label>
<br/>
<label>
<input type="radio" value="openDictWindow" ng-model="setting.browserActionType" ng-click="changeKey(setting.browserActionType, 'browserActionType')"> 打开查词窗口
</label>
</div>
</div>
</div>
<div class="section shortcut-setting">
<h1>快捷键设置</h1>
<div>
<div class="row">
<div class="col-md-2">
<span style="line-height: 2">呼出词典: </span>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-sk1">{{setting.openSK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-sk1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'openSK1')">{{item}}</a>
</li>
</ul>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-sk2">{{setting.openSK2}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-sk2">
<li role="menuitem" ng-repeat="item in allSK">
<a ng-click="changeKey(item, 'openSK2')">{{item ? item : '空'}}</a>
</li>
</ul>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-open-key">{{setting.openKey}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-open-key">
<li role="menuitem" ng-repeat="item in allLetters">
<a ng-click="changeKey(item, 'openKey')">{{item}}</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-2">
<span style="line-height: 2">查找上一个词典: </span>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-prev-dict-sk1">{{setting.prevDictSK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-prev-dict-sk1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'prevDictSK1')">{{item}}</a>
</li>
</ul>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-prev-dict-key">{{setting.prevDictKey}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-prev-dict-key">
<li role="menuitem" ng-repeat="item in allKeys">
<a ng-click="changeKey(item, 'prevDictKey')">{{item}}</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-2">
<span style="line-height: 2">查找下一个词典: </span>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-next-dict-sk1">{{setting.nextDictSK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-next-dict-sk1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'nextDictSK1')">{{item}}</a>
</li>
</ul>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-next-dict-key">{{setting.nextDictKey}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-next-dict-key">
<li role="menuitem" ng-repeat="item in allKeys">
<a ng-click="changeKey(item, 'nextDictKey')">{{item}}</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-2">
<span style="line-height: 2">查找上一个历史记录: </span>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-prev-history-sk1">{{setting.prevHistorySK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-prev-history-sk1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'prevHistorySK1')">{{item}}</a>
</li>
</ul>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-prev-history-key">{{setting.prevHistoryKey}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-prev-history-key">
<li role="menuitem" ng-repeat="item in allKeys">
<a ng-click="changeKey(item, 'prevHistoryKey')">{{item}}</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-2">
<span style="line-height: 2">查找下一个历史记录: </span>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-next-history-sk1">{{setting.nextHistorySK1}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-next-history-sk1">
<li role="menuitem" ng-repeat="item in allSK" ng-hide="!item">
<a ng-click="changeKey(item, 'nextHistorySK1')">{{item}}</a>
</li>
</ul>
</div>
<div class="btn-group" uib-dropdown uib-keyboard-nav>
<button uib-dropdown-toggle class="form-control btn dropdown-toggle btn-default"
type="button" id="btn-next-history-key">{{setting.nextHistoryKey}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu class="dropdown-menu" role="menu" aria-labelledby="btn-next-history-key">
<li role="menuitem" ng-repeat="item in allKeys">
<a ng-click="changeKey(item, 'nextHistoryKey')">{{item}}</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="section shortcut-setting">
<h1>好用就分享</h1>
<div class="row">
<ul>
<li>
<a href="" class="need-share-button"
data-share-url="https://github.com/revir/FairyDict"
data-share-title="FairyDict —— 强大的词典是学习英语的好帮手!"
data-share-image="https://github.com/revir/FairyDict/raw/master/readme_images/4.png">
分享 Github 链接
</a>
</li>
<li>
<a href="" class="need-share-button"
data-share-url="https://chrome.google.com/webstore/detail/fairydict/gpdpcfgfmgkmljmhhnedefdaadgehaah"
data-share-title="FairyDict —— 强大的词典是学习英语的好帮手!"
data-share-image="https://github.com/revir/FairyDict/raw/master/readme_images/4.png">
分享 chrome webstore 链接
</a>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>