forked from kanghj/wordnews_chrome_extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
221 lines (210 loc) · 9.79 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>WordNews Configuration</title>
<script src="jquery-2.1.1.min.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="bootstrap/css/bootstrap-formhelpers.min.css">
<link rel="stylesheet" href="slider/css/slider.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="bootstrap/css/custom-social.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="slider/js/bootstrap-slider.js"></script>
<script src="bootstrap/js/bootstrap-formhelpers.min.js"></script>
<script src="common.js"></script>
<script src="popup.js"></script>
</head>
<body>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<div style="min-width:350px">
<!-- TODO: change button to tab style -->
<!-- Mode -->
<div class="row" style="margin:10px;">
<div class="col-xs-2">
<h4>Mode:</h4>
</div>
<div class="col-xs-9" style="margin:5px;">
<!--<div id="mode" class="btn-group btn-toggle">-->
<div id="mode" class="btn-group">
<button id="learn" class="btn btn-primary">Learn</button>
<button id="annotate" class="btn btn-default default">Annotate</button>
<button id="disable" class="btn btn-default">Disable</button>
</div>
</div>
</div>
<hr />
<!---Learn mode-->
<div id='learn-panel'>
<div class="row" style="margin:10px;" title="Language that you want to learn">
<div class="form-group">
<div class="bfh-selectbox bfh-languages" data-language="zh_CN" data-available="zh_CN,en_US" data-flags="true" data-blank="false">
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6">
<h2 id="learnt">
<strong>0</strong>
</h2>
<p>
<small>Seen</small>
</p>
<button class="btn btn-success btn-block" id="learn-seen-btn"> Show Me</button>
</div>
<div class="col-xs-6">
<h2 id="toLearn">
<strong>0</strong>
</h2>
<p>
<small>Learnt</small>
</p>
<button class="btn btn-info btn-block" id="learn-learnt-btn"> Show Me</button>
</div>
</div>
</div>
<br />
<!-- Words to learn per paragraph -->
<div class="row" style="margin:10px;">
<div class="col-xs-4">
<h4>Words/Article:</h4>
</div>
<div class="col-xs-7" style="margin:5px;">
<input id="wordsLearn" class="slider" data-slider-max="10" data-slider-min="1" data-slider-step="1" type="text" />
</div>
</div>
<!-- Translation backend -->
<div class="row" style="margin:10px;">
<div class="col-xs-4">
<!-- TODO: a better name -->
<h4>Translator:</h4>
</div>
<div class="col-xs-8" style="margin:5px;">
<div id="translationUrl" class="btn-group">
<button id="dictTranslations" class="btn btn-primary">Standard</button>
<button id="imsTranslations" class="btn btn-default default">IMS</button>
<button id="bingTranslations" class="btn btn-default">Bing</button>
</div>
</div>
</div>
<!-- Replace or not -->
<div class="row" style="margin:10px;">
<div class="col-xs-4">
<h4>Words Displayed:</h4>
</div>
<div class="col-xs-7" style="margin:5px;">
<div id="displayLanguage" class="btn-group btn-toggle">
<button id="displaySource" class="btn btn-primary active">Source</button>
<button id="displayTarget" class="btn btn-default">Target</button>
</div>
</div>
</div>
<div class="row" style="margin:10px;">
<div class="col-xs-4">
<h4>Quiz generator</h4>
</div>
<div class="col-xs-7" style="margin:5px;">
<div id="quizGenerator" class="btn-group btn-toggle">
<button id="semanticSimilarWords" class="btn btn-primary active">Semantic</button>
<button id="recentWords" class="btn btn-default">Recent</button>
</div>
</div>
</div>
<!-- Enabled websites -->
<div class="row website-checkbox" style="margin:10px;">
<div class="col-xs-4">
<h4>Enabled on websites:</h4>
</div>
<div class="col-xs-7" style="margin:5px;">
<!--TODO: change the ids to be more meaningful ones-->
<div class="row">
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="inlineCheckbox1" value="cnn.com" />CNN</label>
</div>
<!--TODO: remove this from UI as we do not support it-->
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="inlineCheckbox3" value="bbc.co" />BBC</label>
</div>
</div>
</div>
</div>
<!-- Tutorial -->
<div class="row" style="margin:10px">
<!--<div class="col-xs-5" style="margin:5px;">
<button style="margin-left:20px;" class="btn btn-primary btn-lg" id="setting">Setting</button>
</div>-->
<div class="col-xs-4"></div>
<div class="col-xs-8">
<button class="btn btn-primary btn-sm" id="sign-up">Sign Up</button>
<button class="btn btn-primary btn-sm" id="login">Login</button>
<a class="btn btn-sm btn-social-icon btn-facebook" id="fb-recommend"><i class="fa fa-facebook"></i></a>
</div>
</div>
</div>
<!-- End of learn mode -->
<!-- Annotation mode -->
<div id="annotate-panel">
<div class="row" style="margin:10px;" title="Language of your annotations">
<div class="form-group">
<div class="bfh-selectbox bfh-languages" data-language="zh_CN" data-available="zh_CN,en_US,de_DE,fr_FR,it_IT,ru_RU" data-flags="true" data-blank="false">
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6">
<h2 id="annotations">
<strong>0</strong>
</h2>
<p>
<small>Annotations</small>
</p>
<button class="btn btn-success btn-block" value="annotations"> Show Me</button>
</div>
<div class="col-xs-6">
<h2 id="articles">
<strong>0</strong>
</h2>
<p>
<small>Articles</small>
</p>
<button class="btn btn-info btn-block" value="urls"> Show Me</button>
</div>
</div>
</div>
<br />
<div class="row" style="margin:10px" id='most-annotated'>
<div class="col-xs-4"><h4>Most annotated articles:</h4></div>
<div class="col-xs-8">
<button class="btn btn-link" value="today">Today</button>
<button class="btn btn-link" value="week">This week</button>
<button class="btn btn-link" value="history">Any time</button>
</div>
</div>
<br />
<!-- Tutorial -->
<div class="row" style="margin:10px">
<div class="col-xs-4"></div>
<div class="col-xs-8">
<button class="btn btn-primary btn-lg" id="annotate-tutorial">Tutorial</button>
</div>
</div>
</div>
<!-- End of annotation-->
<div id="disable-panel">
</div>
</body>
</html>