forked from suxiaogang/WeiboPicBed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
444 lines (393 loc) · 12 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
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>微博图床</title>
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="css/sweet-alert.min.css" rel="stylesheet">
<link type="text/css" href="css/loaders.min.css" rel="stylesheet">
<style>
button:focus {
outline: 0 !important;
}
input:focus,
input:active,
label:focus,
label:active {
outline: 0 !important;
}
textarea:focus,
input:focus {
outline: 0;
}
strong {
color: #777;
}
.res:focus {
outline: 0;
border-color: #31b0d5;
box-shadow: none;
}
*:focus {
outline: 0;
}
input:focus {
outline: none;
}
html {
position: relative;
}
body {
font-size: 12px;
}
::selection {
background: #4096EE;
color: #FFF;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.muted {
color: #CCC;
margin-left: 10px;
font-weight: 100;
}
a#optionPage {
-webkit-transition: all .4s;
padding: 2px;
border-radius: 2px;
color: #808080;
}
a#optionPage:hover {
color: #FFF;
background-color: #808080;
text-decoration: none;
}
.btn {
border: 1px solid #BBB;
font-size: 9px;
margin-bottom: 25px;
}
.btn-default,
.btn-batch,
.btn-batchcopy {
color: #818181;
height: 21px;
padding-top: 5px;
line-height: 10px;
-webkit-transition: all .4s;
}
.pull-right>.btn-batchcopy {
color: #555;
height: 30px;
margin-right: 15px;
padding: 3px 6px;
line-height: 20px;
border: 2px solid rgba(187, 187, 187, 0.5);
-webkit-transition: all .4s;
}
.btn-group>.btn,
.btn-group-vertical>.btn {
border: 1px solid rgba(187, 187, 187, 0.5);
padding: 10px;
height: 28px;
line-height: 6px;
}
.btn-group>.btn:focus,
.btn-group>.btn:active,
.btn-group>.btn.active {
background-color: rgb(232, 232, 232);
-webkit-box-shadow: none;
box-shadow: none;
-webkit-transition: none;
transition: none;
color: #868686;
}
.navbar-fixed-bottom {
background-color: rgba(232, 232, 232, 0.65);
}
.https {
color: black;
}
.https input {
margin: 18px 0;
}
.btn-batch {
color: #555;
height: 30px;
padding: 3px 6px;
line-height: 20px;
margin: 10px 0;
border: 2px solid rgba(187, 187, 187, 0.5);
-webkit-transition: all .4s;
}
.btn-group>.btn-format:first-child {
margin-left: 15px;
}
.link-item {
margin-bottom: -15px;
}
.main {
margin-top: 20px;
}
.batch-model {
display: none;
}
.single-model {
display: block;
}
.clicker {
border: 5px dashed #FDFDFD;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
display: inline-block;
margin-top: 20px;
background-size: cover;
background-repeat: no-repeat;
background-color: #BBB;
width: 200px;
height: 200px;
opacity: 1;
}
.batch-model img[class~=clicker] {
width: 100%;
}
.batch-model div {
text-align: center;
}
.batch-model div img[class~=dragger] {
width: 200px;
}
.batch-model div[class=progress] {
margin-top: 5px;
height: 30px;
}
.clicker:hover {
-webkit-transition: all .6s;
border-color: #808080;
cursor: pointer;
opacity: 0.7;
}
.res {
height: 30px;
background-color: #FFF;
cursor: default;
position: relative;
margin: 5px 5px 0px 0px;
vertical-align: top;
border: 2px solid rgba(187, 187, 187, 0.5);
display: inline-block;
padding: 4px 6px;
line-height: 20px;
color: #717171;
font-size: 12px;
cursor: default;
box-shadow: none;
border-radius: 5px;
}
.btn-copy {
height: 30px;
margin-top: 5px;
border: 2px solid rgba(187, 187, 187, 0.5);
margin-bottom: 20px;
}
li a {
color: #909090;
border-radius: 2px;
padding: 0px 2px;
-webkit-transition: all .6s;
}
li a:hover,
li a:active {
text-decoration: none;
color: #FFF;
background-color: #999;
outline: none;
}
.loader-wrap {
background-color: rgba(0, 0, 0, 0.65);
height: 100%;
width: 100%;
position: fixed;
z-index: 99999;
margin-top: -20px;
padding-top: 25%;
display: none;
}
/* Add this attribute to the element that needs a tooltip */
[data-tooltip] {
position: relative;
z-index: 2;
cursor: pointer;
}
span[data-tooltip] {
margin-left: -50%;
}
/* Hide the tooltip content by default */
[data-tooltip]:before,
[data-tooltip]:after {
visibility: hidden;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;
pointer-events: none;
}
/* Position tooltip above the element */
[data-tooltip]:before {
position: absolute;
bottom: 150%;
left: 50%;
margin-bottom: 5px;
margin-left: -40px;
padding: 7px;
width: 80px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-color: #000;
background-color: hsla(0, 0%, 20%, 0.7);
color: #fff;
content: attr(data-tooltip);
text-align: center;
font-size: 11px;
line-height: 1.2;
}
/* Triangle hack to make tooltip look like a speech bubble */
[data-tooltip]:after {
position: absolute;
bottom: 150%;
left: 50%;
margin-left: -5px;
width: 0;
border-top: 5px solid #000;
border-top: 5px solid hsla(0, 0%, 20%, 0.7);
border-right: 5px solid transparent;
border-left: 5px solid transparent;
content: " ";
font-size: 0;
line-height: 0;
}
/* Show tooltip content on hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
visibility: visible;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
opacity: 1;
}
.btn-batchcopy[data-tooltip]:before {
bottom: -175%;
}
.btn-batchcopy[data-tooltip]:after {
bottom: -50%;
border-top: 0;
border-bottom: 5px solid #000;
border-bottom: 5px solid hsla(0, 0%, 20%, 0.7);
}
.fancybox-close {
background-image: url('source/fancybox_sprite.png');
}
.fancybox-close {
position: absolute;
top: 0px;
right: 0px;
width: 36px;
height: 36px;
cursor: pointer;
z-index: 8040;
}
/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
.fancybox-close {
background-image: url('source/fancybox_sprite@2x.png');
background-size: 44px 152px;
/*The size of the normal image, half the size of the hi-res image*/
}
}
</style>
</head>
<body>
<div class="loader-wrap text-center">
<div class="loader-inner line-scale">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="container main">
<div class="row">
<input id="input" type="file" class="uploadTrigger" style="display:none;" accept="image/jpeg, image/png" multiple>
<div class="col-xs-4 pull-left">
<p style="padding-top:6px;margin-left:10px;">单击或者拖拽图片到此 | <a id="optionPage" href="#">上传历史</a></p>
</div>
<div class="col-xs-8">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-size" value="thumbnail">缩略图</button>
<button type="button" class="btn btn-default btn-size" value="mw690">中等尺寸</button>
<button type="button" class="btn btn-default btn-size active" value="large">原图</button>
</div>
<div class="btn-group" style="display:none" role="group">
<button type="button" class="btn btn-default btn-format active" value="1">A</button>
<button type="button" class="btn btn-default btn-format" value="2">H</button>
<button type="button" class="btn btn-default btn-format" value="3">U</button>
<button type="button" class="btn btn-default btn-format" value="4">M</button>
</div>
<div class="pull-right" style="display:none">
<button type="button" class="btn btn-default btn-batchcopy" disabled>一键复制所有地址</button>
</div>
</div>
<div class="col-xs-4 single-model">
<img src="placeholder.png" class="dragger clicker">
</div>
<div class="col-xs-8 single-model">
<div class="link-item">
<strong>图片链接<small class="muted">(试一试粘贴图片到这里)</small></strong>
<div class="input-append">
<input class="res col-xs-10" id="res_img" value="" spelcheck="false" />
<button type="button" class="btn btn-default btn-copy disabled">复制</button>
</div>
</div>
<div class="link-item">
<strong>HTML</strong>
<div class="input-append">
<input class="res col-xs-10" id="res_html" value="" spellcheck="false" readonly="true" />
<button type="button" class="btn btn-default btn-copy disabled">复制</button>
</div>
</div>
<div class="link-item">
<strong>UBB</strong>
<div class="input-append">
<input class="res col-xs-10" id="res_ubb" value="" spellcheck="false" readonly="true" />
<button type="button" class="btn btn-default btn-copy disabled">复制</button>
</div>
</div>
<div class="link-item">
<strong>Markdown</strong>
<div class="input-append">
<input class="res col-xs-10" id="res_md" value="" spellcheck="false" readonly="true" />
<button type="button" class="btn btn-default btn-copy disabled">复制</button>
</div>
</div>
</div>
<div class="col-xs-12 batch-model">
<div>
<img src="placeholder2.png" class="dragger clicker">
</div>
</div>
</div>
<div class="navbar-fixed-bottom">
<div class="https col-xs-8">
<input id="https" type="checkbox"> HTTPS
</div>
<div class="col-xs-4">
<button class="pull-right btn btn-default btn-batch" type="button">批量模式</button>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/sweet-alert.min.js"></script>
<script type="text/javascript" src="js/popup.js"></script>
</body>
</html>