-
Notifications
You must be signed in to change notification settings - Fork 2
/
popup.html
270 lines (245 loc) · 8.34 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
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--<meta http-equiv="Content-Security-Policy" content="-->
<!--script-src 'self'-->
<!--https://*.facebook.net-->
<!--https://*.facebook.com-->
<!--https://apis.google.com-->
<!--https://www.gstatic.com-->
<!--https://*.firebaseio.com-->
<!--https://www.googleapis.com-->
<!--;-->
<!--object-src 'self'-->
<!--">-->
<style>
body {
font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif;
font-size: 100%;
width: 600px;
background-color: #ccffff;
margin-left: auto;
margin-right: auto;
}
#status {
/* avoid an excessively wide status text */
white-space: pre;
text-overflow: ellipsis;
overflow: hidden;
max-width: 400px;
}
#user_block {
display: none;
}
#opinion_block {
display: none;
}
.button {
background-color: #99ccff;
/* Green */
border: none;
color: white;
padding: 10px 30px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
-webkit-transition-duration: 0.4s;
/* Safari */
transition-duration: 0.4s;
border-radius: 5px;
}
#button01 {
background-color: #99ccff;
/* Green */
border: none;
color: white;
padding: 5px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
-webkit-transition-duration: 0.4s;
/* Safari */
transition-duration: 0.4s;
border-radius: 5px;
vertical-align: bottom;
}
.button2 {
margin-left: 20px;
}
.button4 {
margin-left: 20px;
}
.button1:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.button2:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.button3:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.button4:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.fbImg:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.googleImg:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
#button01:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.likeButton:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
iframe {
outline: none;
border: 0px;
border-style: none;
width: 100%;
height: 600px;
}
</style>
<!--
- JavaScript and HTML must be in separate files: see our Content Security
- Policy documentation[1] for details and explanation.
-
- [1]: https://developer.chrome.com/extensions/contentSecurityPolicy
-->
<script type="text/javascript" src="./libs/chokali/chokali.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/3.6.4/firebase.js"></script>
<script type="text/javascript" src="./libs/jquery/jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="./libs/react/react_v15.6.1.js"></script>
<script type="text/javascript" src="./libs/react/react-dom_v15.6.1.js"></script>
<script type="text/javascript" src="./libs/react/babel_v6.15.0.js" charset="utf-8"></script>
<!--<script src="https://unpkg.com/babel-standalone@6.15.0/babel.js" charset="utf-8" ></script>-->
<script type="text/javascript" src="js/filterfarm.js"></script>
<!--<script type="text/javascript" src="cfblocker/Filter.js"></script>-->
<!--<script type="text/javascript" src="cfblocker/ListFormatter.js"></script>-->
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/babel" src="js/jsx_demo1.js"></script>
</head>
<body>
<div id="status"></div>
<div style="padding:10px;width:530px;">
<div style="width:80px;float:left;">
<img src="image/waring.png" style="width:80px;height:80px;"/>
</div>
<div style="width:410px;float:left;margin-left:10px;">
<span style="font-size:18px;font-weight: bold;" id="title_block"></span>
<br>
<span style="font-size:16px;" id="warningText"></span><br>
<span style="font-size:16px;" id="p2"></span>
</div>
</div>
<div style="padding:10px;width:530px;text-align:center;">
<button type="button" class="button button1" id="back"></button>
<button type="button" class="button button2" id="continue"></button>
</div>
<div id="remind" style="padding:1px;width:530px;text-align:center;font-size:14px;">
</div>
<!--=======================================-->
<div style="display: none;">
<div style="padding:10px;width:530px;text-align:center;" id="oauth_block">
<button class="fbImg" id="fbLogin"
style="border-width:0px;background-image:url(image/facebook_40x40.png);width:40px;height:40px;border-radius:5px;vertical-align:middle;"></button>
<button class="googleImg" id="quickstart-button"
style="margin-left:20px;border-width:0px;background-image:url(image/google_plus_40x40.png);width:40px;height:40px;border-radius:5px;vertical-align:middle;"></button>
</div>
<div style="padding:10px;width:530px;height:auto;margin-top:20px;border: 1px solid #99ccff;border-radius: 5px;">
<div id="user_block">
<span style="font-size:15px;font-weight: bold;" id="user_name"></span>
<br>
<button style="margin-left:30px;">
<img id="star1" src="image/star_w.png" style="width:15px;height:15px;"/>
</button>
<button style="">
<img id="star2" src="image/star_w.png" style="width:15px;height:15px;"/>
</button>
<button style="">
<img id="star3" src="image/star_w.png" style="width:15px;height:15px;"/>
</button>
<button style="">
<img id="star4" src="image/star_w.png" style="width:15px;height:15px;"/>
</button>
<button style="">
<img id="star5" src="image/star_w.png" style="width:15px;height:15px;"/>
</button>
</div>
<div style="margin-top:10px;" id="opinion_block">
<textarea style="width:400px;height:40px;vertical-align:bottom;border-radius: 5px;"
id="opinion_content"></textarea>
<input type="button" id="button01" value="送出"/>
</div>
<div style="padding:10px;margin-top:10px;width:510px;height:auto;border: 1px solid #99ccff;border-radius: 5px;">
<span id="average" style="font-size:14px;font-weight: bold;"></span>
<span id="avergeStarBlock"></span>
<br>
<br>
<span id="evaluation" style="font-size:12px;font-weight: bold;"></span>
<br>
<div id="content_block" style="padding:10px;margin-top:10px;width:440px;height:auto;">
</div>
</div>
</div>
<div style="padding:10px;width:530px;text-align:center;">
<button type="button" class="button button3" id="prePage"></button>
<button type="button" class="button button4" id="nextPage"></button>
</div>
</div>
<!-- google ad block
<div style="padding:10px;width:530px;text-align:center;margin-top:10px;"></div>
-->
<!-- ==================use react babel ====================== -->
<div id="root"></div>
<!--script type="text/babel">
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}
var obj = {wel:Welcome};
function tick() {
const element = (
<div>
<h1>Hello, world!</h1>
<Welcome name="Andrew"/>
<obj.wel name="Andrew"/>
<h2>It is {new Date().toLocaleTimeString()}.</h2>
</div>
);
ReactDOM.render(
element,
document.getElementById('root')
);
}
setInterval(tick, 1000);
</script-->
<!-- ==================use sdk.js facebook's comments fail====================== -->
<!--<div id="fb-root"></div>-->
<!--<hr/>-->
<!--<div class="fb-comments"-->
<!--data-href="http://facebook.com/...."-->
<!--data-numposts="5">-->
<!--</div>-->
<!--<hr/>-->
<!--<div-->
<!--class="fb-like"-->
<!--data-share="true"-->
<!--data-width="450"-->
<!--data-show-faces="true">-->
<!--</div>-->
<!-- ======================================== -->
<br/>
<div id="iframeWrapper" style="height:auto;"></div>
<br/>
</body>
</html>