-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtest.html
570 lines (490 loc) · 14.8 KB
/
test.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
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="en-us" http-equiv="Content-Language">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="test_files/github.png">
<title>小金的首页</title>
<style>
/*下方这句不动它,翻译开始*/
* {
padding: 0;
margin: 0;
}
/*翻译
主页整体样式
文本对齐︰ 中心;
背景色︰ #ffffff 使用夜间默认时修改为#000000即可
}
*/
html,body {
text-align: center;
}html{
background-image:url('wap/bg.jpg');
background-repeat:no-repeat;
background-size: 100% 100%;
width: 100%;
height: 100%;
/*background-size: 122%;*/
}
/*翻译
logo图标样式
宽度︰ 198px;
高度︰ 65px;
最大宽度︰ 250px;
动画︰ flipInX 4s;
-webkit 动画︰ flipInX 4s
}*/
img.smaller {
width: 360px;
height: 110px;
max-width: 360px;
animation: flipInX 4s;
-webkit-animation: flipInX 4s
}
/*翻译
logo添加文字样式
字体大小︰ 2em;
白色空间︰ 正常;
自动换行︰ 断词;
文本修饰︰ 无;
颜色: #232323
}*/
.logo {
font-size: 2em;
white-space: normal;
word-wrap: break-word;
text-decoration: none;
color: #232323
}
/*翻译
搜索栏字体样式
宽度︰ 90%;
高度︰ 40px;
背景颜色︰ 透明;
边境︰ 无;
大纲︰ 0;
字体大小︰ 18px;
字体颜色: #426ab3;
填充︰ 0 20px;
边界半径︰ 50px
}*/
#search_input {
width: 90%;
height: 40px;
background-color: transparent;
border: none;
outline: 0;
font-size: 18px;
color: #426ab3;
padding: 0 20px;
border-radius: 50px
}
/*翻译
搜索框边距
下边距︰ 30px;
上边距︰ 20px;
*/
.search_part {
margin-bottom: 30px;
margin-top: 20px;
}
/*翻译
跨度样式
显示︰ 阻止;
溢出︰ 隐藏;
左填充︰ 5px;
垂直对齐︰ 居中;
*/
span {
display: block;
overflow: hidden;
padding-left: 5px;
vertical-align: middle;
}
/*翻译
搜索栏框架样式 {
框阴影︰ 0 0 18px rgba(70,70,40,.255);括号里的颜色为Rgb默认,可进入http://rgb.phpddt.com/查询
-webkit 动画︰ fadeIn 2.5;
动画︰ fadeIn 2.5;
背景色︰ rgba(255,255,255,.100);
边界半径︰ 50px;
显示︰ 表;
垂直对齐︰ 居中;
宽度︰ 80%;根据你喜欢的宽度调整,目前我为了对齐图标使用80%
高度︰ 40px;
最大宽度︰ 400px;
边距︰ 10px 默认布局;
}
*/
.search_bar {
box-shadow: 0 0 18px rgba(70,70,40,.255);
-webkit-animation: fadeIn 2.5s;
animation: fadeIn 2.5s;
background-color: rgba(255,255,255,.100);
border-radius: 50px;
display: table;
vertical-align: middle;
width: 80%;
height: 40px;
max-width: 400px;
margin: 10px auto;
}
/*翻译
搜索栏搜索目标确认图标样式,目前为米奇
轮廓边框︰ 0;
高度︰ 40px;
浮标位置︰ 右;
颜色: #000;
字体大小︰ 16px;
字体粗细︰ 700;
边境︰ 无;
背景颜色︰ 透明;
填充︰ 0 13px 0 13px
*/
#search_submit {
outline: 0;
height: 40px;
float: right;
color: #000;
font-size: 16px;
font-weight: 700;
border: none;
background-color: transparent;
padding: 0 13px 0 13px
}
/*翻译
书签图标排版目录样式
宽度︰ 100%;
文本对齐︰ 中心;
填充顶部︰ 15px;
填充底部︰ 15px;
*/
#content {
width: 100%;
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
}
/*翻译
书签框架样式
-webkit 动画︰ fadeInDown 1s;
动画︰ fadeInDown 1s;
位置︰ 相对应;
显示︰ 显示在内部;
宽度︰ 75px;
边境︰ 0;
*/
.box {
-webkit-animation: fadeInDown 1s;
animation: fadeInDown 1s;
position: relative;
display: inline-block;
width: 75px;
border: 0;
}
/*翻译
书签图标样式
宽度︰ 100%;
高度︰ 100%;
位置︰ 不受限制;
左︰ 0;
顶︰ 0;
*/
.box a {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
/*翻译
书签字体样式
颜色: #232323;使用夜间模式时修改为#eee或者#f2eada即可
高度︰ 1.5em;
线的高度︰ 1.5em;
宽度︰ 72px;
字体大小︰ 0.75em;
白色空间︰ nowrap;
溢出︰ 隐藏;
边距︰ 默认布局;
-webkit 边框顶部右半径︰ 5px;
-webkit 边框底部右半径︰ 5px;
文本溢出︰ 省略;
-o 文本溢出︰ 省略;
气相色谱-质谱-文本-溢出︰ 省略;
填充顶部︰ 3px;
填充底部︰ 8px;
*/
.url {
color: #232323;
height: 1.5em;
line-height: 1.5em;
width: 72px;
font-size: 0.75em;
white-space: nowrap;
overflow: hidden;
margin: auto;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
padding-top: 3px;
padding-bottom: 8px;
}
/*翻译
字体样式
宽度︰ 3em;
高度︰ 3em;
最大宽度︰ 72px;
*/
.icon {
width: 3em;
height: 3em;
max-width: 72px;
}
/*
下方为动画样式,不懂的不要修改
*/
@-webkit-keyframes flipInX {
0% {
-webkit-transform: perspective(400px) rotateX(90deg);
transform: perspective(400px) rotateX(90deg);
opacity: 0
}
40% {
-webkit-transform: perspective(400px) rotateX(-10deg);
transform: perspective(400px) rotateX(-10deg)
}
70% {
-webkit-transform: perspective(400px) rotateX(10deg);
transform: perspective(400px) rotateX(10deg)
}
100% {
-webkit-transform: perspective(400px) rotateX(0);
transform: perspective(400px) rotateX(0);
opacity: 1
}
}
@keyframes flipInX {
0% {
-webkit-transform: perspective(400px) rotateX(90deg);
-ms-transform: perspective(400px) rotateX(90deg);
transform: perspective(400px) rotateX(90deg);
opacity: 0
}
40% {
-webkit-transform: perspective(400px) rotateX(-10deg);
-ms-transform: perspective(400px) rotateX(-10deg);
transform: perspective(400px) rotateX(-10deg)
}
70% {
-webkit-transform: perspective(400px) rotateX(10deg);
-ms-transform: perspective(400px) rotateX(10deg);
transform: perspective(400px) rotateX(10deg)
}
100% {
-webkit-transform: perspective(400px) rotateX(0);
-ms-transform: perspective(400px) rotateX(0);
transform: perspective(400px) rotateX(0);
opacity: 1
}
}
@-webkit-keyframes fadeIn {
0% {
opacity: 0
}
100% {
opacity: 1
}
}
@keyframes fadeIn {
0% {
opacity: 0
}
100% {
opacity: 1
}
}
@-webkit-keyframes fadeInDown {
0% {
opacity: 0;
-webkit-transform: translateY(-20px);
transform: translateY(-20px)
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0)
}
}
@keyframes fadeInDown {
0% {
opacity: 0;
-webkit-transform: translateY(-20px);
-ms-transform: translateY(-20px);
transform: translateY(-20px)
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0)
}
}
</style></head>
<body>
<div id="content">
<br>
<div class="search_part">
<a class="logo" onclick="displayDate()">
<img class="smaller" src="test_files/21e.gif">
</a>
<br>
<form onsubmit="return search()" class="search_bar">
<input id="search_submit" value="搜索" type="submit">
<span><input class="search" autocomplete="off" id="search_input" placeholder="✎...搜点什么好呢?" type="text"></span>
<ul id="suglist"></ul>
</form>
</div>
<br>
<div class="box">
<a href="https://www.idealli.com/" target="_blank"></a>
<p><img class="icon" src="test_files/wordpress.png"></p>
<p class="url">博客</p>
</div>
<div class="box">
<a href="https://github.com/flymysql" target="_blank"></a>
<p><img class="icon" src="test_files/github.png"></p>
<p class="url">github</p>
</div>
<div class="box">
<a href="https://mail.google.com/mail/u/0/#inbox" target="_blank"></a>
<p><img class="icon" src="test_files/1_002.png"></p>
<p class="url">邮件</p>
</div>
<div class="box">
<a href="https://translate.google.com/?hl=zh-CN&tab=wT" target="_blank"></a>
<p><img class="icon" src="test_files/1.png"></p>
<p class="url">谷歌翻译</p>
</div>
<div class="box">
<a href="http://m.youku.com/" target="_blank"></a>
<p><img class="icon" src="test_files/a_003.png"></p>
<p class="url">优酷</p>
</div>
<div class="box">
<a href="http://m.bilibili.com/" target="_blank"></a>
<p><img class="icon" src="test_files/a_002.png"></p>
<p class="url">哔哩哔哩</p>
</div>
<div class="box">
<a href="https://www.youtube.com/?hl=zh-cn" target="_blank"></a>
<p><img class="icon" src="test_files/youtube2.png"></p>
<p class="url">YouTube</p>
</div>
<div class="box">
<a href="https://www.facebook.com/" target="_blank"></a>
<p><img class="icon" src="test_files/2.png"></p>
<p class="url">facebook</p>
</div>
<div class="box">
<a href="https://www.weibo.com/237199972/home?wvr=5" target="_blank"></a>
<p><img class="icon" src="test_files/weibo.png"></p>
<p class="url">微博</p>
</div>
<div class="box">
<a href="https://www.zhihu.com/" target="_blank"></a>
<p><img class="icon" src="test_files/a.png"></p>
<p class="url">知乎</p>
</div>
<!--
如若要添加可复制一段
<div class="box">
<a href="地址"></a>
<p><img class="icon" src="img/icon6.png" ></p>
<p class="url">书签名称</p>
</div>
其中链接在href中如href="地址"建议填写folder://自己创建的文件夹地址,这样创建一次不必再修改
图标文件放置在img文件夹中定义如src="img/icon6.png"
显示的标题在<p class="url">书签名称</p>之间定义如<p class="url">酷安</p>
下方window.location.href =主页搜索引擎地址,目前为自用Pc版百度内部搜索,加上浏览器的顶部搜索即为双搜索,使用更方便
-->
</div>
<script async="" src="test_files/analytics.js"></script><script type="text/javascript">
var s=1;
function displayDate(){
if(s===1) s=0;
else s=1;
}
function search(){
if(document.getElementById("search_input").value != "")
{
if(s===1)
{
window.location.href = "https://www.google.com.hk/search?newwindow=1&safe=strict&source=hp&ei=DvkPW_77ENDz5gK1waLoBg&q=" + document.getElementById("search_input").value;document.getElementById("search_input").value = "";
}
else
{
window.location.href = "https://www.baidu.com/baidu?wd=" + document.getElementById("search_input").value;document.getElementById("search_input").value = "";
}
}
return false;
}
</script>
<!--
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-79927007-1', 'auto');
ga('send', 'pageview');
onload = function() {
var click_cnt = 0;
var $html = document.getElementsByTagName("html")[0];
var $body = document.getElementsByTagName("body")[0];
$html.onclick = function(e) {
var $elem = document.createElement("b");
$elem.style.color = "#E94F06";
$elem.style.zIndex = 9999;
$elem.style.position = "absolute";
$elem.style.select = "none";
var x = e.pageX;
var y = e.pageY;
$elem.style.left = (x - 10) + "px";
$elem.style.top = (y - 20) + "px";
clearInterval(anim);
var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善","😀","😃","😄","😁","😆","😅","😂","🤣","☺","😊","😚","富强", "民主", "文明", "和谐", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善","😙","😗","😘","😍","😌","😉","🙃","🙂","😇","😋","😜","😝","😛","🤑","富强", "民主", "文明", "和谐", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善","🤗","🤓","😎","🤡","🤠","😖","😣","☹","🙁","😕","😟","😔","😞","富强", "民主", "文明", "和谐", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善","😒","😏","😫","😩","😤","😠","😡","😶","😐","😑","😯");
var len=a.length;
$elem.innerText = a[++click_cnt%len];
$elem.style.fontSize = Math.random() * 5 + 15 + "px";
var increase = 0;
var anim;
setTimeout(function() {
anim = setInterval(function() {
if (++increase == 150) {
clearInterval(anim);
$body.removeChild($elem);
}
$elem.style.top = y - 20 - increase + "px";
$elem.style.opacity = (150 - increase) / 120;
}, 8);
}, 70);
$body.appendChild($elem);
};
};
</script>
--->
<script src="test_files/cet4.js"></script>
<script src="test_files/activate-power-mode.js"></script><canvas width="1521" height="754" style="position: fixed; top: 0px; left: 0px; pointer-events: none; z-index: 999999;"></canvas>
<script>
POWERMODE.colorful = true; // 控制开启/开启礼花特效
POWERMODE.shake = false; // 控制开启/关闭屏幕震动特效
document.body.addEventListener('input', POWERMODE);
</script>
<script type="text/javascript">
!function(){function n(n,e,t){return n.getAttribute(e)||t}function e(n){return document.getElementsByTagName(n)}function t(){var t=e("script"),o=t.length,i=t[o-1];return{l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)}}function o(){a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){r.clearRect(0,0,a,c);var n,e,t,o,m,l;s.forEach(function(i,x){for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e<u.length;e++)n=u[e],null!==n.x&&null!==n.y&&(o=i.x-n.x,m=i.y-n.y,l=o*o+m*m,l<n.max&&(n===y&&l>=n.max/2&&(i.x-=.03*o,i.y-=.03*m),t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke()))}),x(i)}var a,c,u,m=document.createElement("canvas"),d=t(),l="c_n"+d.l,r=m.getContext("2d"),x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/45)},w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o,window.onmousemove=function(n){n=n||window.event,y.x=n.clientX,y.y=n.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],f=0;d.n>f;f++){var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3})}u=s.concat([y]),setTimeout(function(){i()},100)}();
</script><canvas id="c_n7" style="position: fixed; top: 0px; left: 0px; z-index: -1; opacity: 0.5;" width="1521" height="754"></canvas>
</body><script type="text/javascript" id="useragent-switcher">navigator.__defineGetter__("userAgent", function() {return "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0"})</script></html>