-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
551 lines (522 loc) · 18.2 KB
/
index.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
<!DOCTYPE html>
<html lang="en" xmlns:E="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>ev</title>
<link rel="icon" href="image/ico1.ico" type="image/x-icon">
<style>
body{
/*background: linear-gradient(100deg,#ffb6c1 , #9795f0);渐变背景色*/
/* background-color: navajowhite; */
/* background-image: url("https://vip.helloimg.com/i/2024/04/07/6612617a73ab0.jpg");
background-size: cover; */
/* 确保背景图片覆盖整个页面 */
background-size: cover;
background-attachment: fixed;
background-position: center center;
}
.fl{
width:20%;
/*border:2px solid #de48a1;*/
float:left;
border-right: 2px solid #ffb5f0;
border-radius: 20px;
}
.fr{
width:79%;
/*border:2px solid #de48a1;*/
float: right;
box-shadow: 0 20px 20px 5px rgba(132, 132, 132, 0.2) ;
}
.clear_fix{
height: 0;
clear: both;
line-height: 0;
font-size: 0;
}
.main_search {
width: fit-content;
padding-left: 13px;
padding-right: 13px;
padding-bottom: 10px;
border-radius: 25px;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
position: relative;
background: transparent; /* 确保背景透明,保持背景图像可见 */
backdrop-filter: blur(0); /* 初始不模糊 */
transition: box-shadow 0.3s ease, backdrop-filter 0.4s ease;
}
.main_search:focus-within {
box-shadow: 0 0 8px rgba(0, 0, 0, 0.8); /* 强化焦点时的阴影 */
backdrop-filter: blur(4px); /* 焦点时应用高斯模糊 */
}
.sites_container {
width: 160px;
height: fit-content;
background-color: rgba(232, 245, 254, 0.8); /* 设置背景颜色为半透明 */
border-radius: 8px;
border: 2px solid #000;
margin-bottom: 3px;
display: inline-block;
font-size: 20px;
overflow: hidden; /* 确保子元素不会超出容器边界 */
position: relative; /* 为伪元素定位做准备 */
}
.sites_container::before {/*这个sites_container不再使用*/
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><defs><filter id='blur'><feGaussianBlur in='SourceGraphic' stdDeviation='5' /></filter></defs><rect x='0' y='0' width='100%' height='100%' fill='url(#blur)' /></svg>");
filter: url(#blur); /* 应用高斯模糊滤镜 */
border-radius: 8px; /* 确保模糊效果与容器边界一致 */
z-index: -1; /* 确保模糊背景在内容之后 */
}
.sites_container:hover {
transform: scale(1.1); /* 增加悬停时的缩放比例 */
background-color: rgba(180, 231, 238, 0.9); /* 调整悬停时的背景颜色 */
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* 增加阴影深度 */
animation: pulse 1s infinite; /* 添加脉冲动画效果 */
}
/* 脉冲动画效果 */
@keyframes pulse {
0% {
transform: scale(1.1);
}
50% {
transform: scale(1.25);
}
100% {
transform: scale(1.2);
}
}
/* 按钮容器样式 */
.button-container {
width: 10%;
height: fit-content;
background-color: rgba(232, 245, 254, 0.7); /* 设置背景颜色为半透明 */
border-radius: 8px;
border: 2px solid #000;
margin: 2px;
display: inline-flex;
overflow: hidden; /* 确保子元素不会超出容器边界 */
position: relative; /* 为伪元素定位做准备 */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}
/* 按钮容器悬停效果 */
.button-container:hover {
transform: scale(1.1); /* 增加悬停时的缩放比例 */
background-color: rgba(180, 231, 238, 0.9); /* 调整悬停时的背景颜色 */
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* 增加阴影深度 */
}
/* 按钮样式 */
.button-link {
display: block; /* 使链接填充整个容器 */
width: 100%; /* 设置宽度 */
height: fit-content; /* 设置高度 */
text-align: center; /* 文本居中 */
line-height: 30px; /* 根据按钮高度调整行高,使文本垂直居中 */
color: #000; /* 设置文本颜色 */
text-decoration: none; /* 去掉下划线 */
font-size: 18px;
}
/* 伪元素样式,用于创建模糊背景效果 */
.button-container::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><defs><filter id='blur'><feGaussianBlur in='SourceGraphic' stdDeviation='5' /></filter></defs><rect x='0' y='0' width='100%' height='100%' fill='url(#blur)' /></svg>");
filter: url(#blur); /* 应用高斯模糊滤镜 */
border-radius: 8px; /* 确保模糊效果与容器边界一致 */
z-index: -1; /* 确保模糊背景在内容之后 */
}
</style>
</head>
<body>
<center>
<br>
<br>
<div class="main_search">
<h2>搜索</h2>
<input id="wd" style="font-size: 23px;border-radius: 6px;" size="38" placeholder=" 🔍"/>
<img src="image/chachacha.png" width="28px" height="28px" style="margin-bottom: -5px" onclick="fun_chachacha()" title="清除"/>
</div>
<br>
<input type="button" value="搜索(默认)" style="background-color: dodgerblue; font-size: 20px;border-radius: 13px"title="按下回车即可搜索">
<input type="button" value="CSDN搜索(+1)" style="background-color: #FC5633; font-size: 20px;border-radius: 13px"/>
<input type="button" value="哔哩哔哩(+2)" style="background-color: #FB7299; font-size: 20px;border-radius: 13px"/><br>
<input type="button" value="知乎(+3)" style="background-color: #1772F6;font-size: 20px;border-radius: 13px"/>
<input type="button" value="谷歌搜索(+4)" style="font-size: 20px;border-radius: 13px"/>
<input type="button" value="稀土掘金(+5)" style="background-color: #1E80FF;font-size: 20px;border-radius: 13px"/>
<input type="button" value="谷歌学术(+6)" style="background-color: #4285F4;font-size: 20px;border-radius: 13px"/>
<button onclick="jump_myTranslate()" style="font-size: 20px;border-radius: 13px">我的翻译</button>
<hr>
<div id="buttonsContainer"></div>
</center>
</body>
<script>
// var chuansongmen = document.getElementById("chuansongmen");
const now = new Date();
const bg_images = [
"https://vip.helloimg.com/i/2024/04/07/6612617a73ab0.jpg",
"https://vip.helloimg.com/i/2024/04/07/66126f84e5641.jpg",
"https://vip.helloimg.com/i/2024/04/25/662a1fdda9df6.jpg",
"https://vip.helloimg.com/i/2024/04/07/66126c368de86.png",
];
const numPerLine = 7;
//1.学术 2.资源文档3.媒体工具4.乱七八糟学习网站
const site_array1 = [
{
'name': '知网',
'url': 'https://www.cnki.net/'
},
{
'name':'万方数据服务平台',
'url':'https://www.wanfangdata.com.cn/index.html'
},
{
'name':'Google学术',
'url':'https://scholar.google.com.hk/?hl=zh-CN'
},
{
'name':'Web of science',
'url':'https://webofscience.clarivate.cn/wos/alldb/basic-search'
},
{
'name':'格桑花学术',
'url':'http://www.20009.net/'
},
{
'name':'SCI-论文下载',
'url':'https://tool.yovisun.com/scihub/'
},
{
'name':'CSDN',
'url':'https://www.csdn.net/'
},
{
'name':'Github',
'url':'https://github.com/'
},
{
'name':'知乎',
'url':'https://www.zhihu.com/'
},
{
'name':'agentgpt',
'url':'https://agentgpt.reworkd.ai/'
},
{
'name':'ChatGpt',
'url':'https://chatgpt.com/'
},
{
'name':'Forefront Chat',
'url':'https://chat.forefront.ai/'
},
{
'name':'文心一言',
'url':'https://yiyan.baidu.com/?from=baidu_pc_index'
},
{
'name':'Kimi_AI',
'url':'https://kimi.moonshot.cn/'
},
{
'name':'Web3社区',
'url':'https://www.panewslab.com/zh/index.html'
},
{
'name':'稀土掘金',
'url':'https://juejin.cn/'
},
{
'name':'LaTeX公式编辑器',
'url':'https://www.latexlive.com/'
},
{
'name':'processOn画图',
'url':'https://www.processon.com/diagrams'
},
{
'name':'谷歌学术镜像',
'url':'http://xs.3822808.com/'
},
{
'name':'智谱清言',
'url':'https://chatglm.cn/main/alltoolsdetail'
},
{
'name':'Gitee',
'url':'https://gitee.com/'
},
];
const site_array2 = [
{
'name': '阿里云盘',
'url': 'https://www.aliyundrive.com/drive'
},
{
'name':'百度网盘',
'url':'https://pan.baidu.com/disk/main?_at_=1662336305065#/index?category=all'
},
{
'name':'哔哩哔哩',
'url':'https://www.bilibili.com/'
},
{
'name':'bilibili历史记录',
'url':'https://www.bilibili.com/account/history'
},
{
'name':'百度翻译',
'url':'https://fanyi.baidu.com/?aldtype=16047#auto/zh'
},
{
'name':'幕布',
'url':'https://mubu.com/app'
},
{
'name':'Upsplash图库',
'url':'https://mani-unsplash-clone.netlify.app/'
},
{
'name':'图库',
'url':'https://www.hippopx.com/'
},
{
'name':'问卷星',
'url':'https://www.wjx.cn/'
},
{
'name':'腾讯文档',
'url':'https://docs.qq.com/desktop/mydoc'
},
{
'name':'抖音',
'url':'https://www.douyin.com/'
},
{
'name':'Youtube',
'url':'https://www.youtube.com/'
},
{
'name':'闲鱼',
'url':'https://www.goofish.com/'
},
];
const site_array3 = [
{
'name': '我的网盘音乐',
'url': 'https://www.aliyundrive.com/drive/file/backup/62763f4ad6e7b66caa894ec2a0e981c3a0304128'
},
{
'name':'BTnull无名小站',
'url':'https://www.gying.in/'
},
{
'name':'茶杯狐',
'url':'https://www.cpsctest.com/'
},
{
'name':'svip影院',
'url':'http://svip.daidaijx.cn/index.php'
},
{
'name':'微博',
'url':'https://s.weibo.com/top/summary'
},
{
'name':'音乐下载',
'url':'https://tool.liumingye.cn/music/#/'
},
{
'name':'多人视频',
'url':'https://brie.fi/ng'
},
{
'name':'hello图床',
'url':'https://www.helloimg.com/user/images'
},
{
'name':'易转换',
'url':'https://www.easeconvert.com/ppt-to-svg/'
}
];
const site_array4 = [
{
'name': 'POS',
'url': 'playOrStudy.html'
},
{
'name':'草料二维码',
'url':'https://cli.im/'
},
{
'name':'文字转语音',
'url':'https://uutool.cn/text2voice/'
},
{
'name':'VOA Special',
'url':'https://www.51voa.com/'
},
{
'name':'雨课堂',
'url':'https://changjiang.yuketang.cn/v2/web/index'
},
{
'name':'秘塔写作猫',
'url':'https://www.xiezuocat.com/#/'
},
{
'name':'网易邮箱',
'url':'https://mail.163.com'
},
{
'name':'郑大邮箱',
'url':'https://mail.v.zzu.edu.cn/coremail/XT/index.jsp?sid=CAkAEUsscgkscXIhecoeiIjNhCqwafLw#mail.list|%7B%22fid%22%3A1%7D'
},
{
'name':'程序员导航',
'url':'http://www.cxy521.com/'
},
{
'name':'临时国外手机号',
'url':'https://sms-activate.org/cn'
},
{
'name':'Colaboratory',
'url':'https://colab.research.google.com/'
},
{
'name':'Google云盘',
'url':'https://drive.google.com/drive/my-drive'
},
{
'name':'AutoDl',
'url':'https://www.autodl.com/console/instance/list'
},
{
'name':'大学生必备网',
'url':'https://www.dxsbb.com/'
},
{
'name':'小牛翻译控制台',
'url':'https://niutrans.com/cloud/overview'
},
{
'name':'力扣',
'url':'https://leetcode.cn/'
},
{
'name':'cloudflare',
'url':'https://dash.cloudflare.com/f663348ba1d3840b1cb928ced265624e'
},
{
'name':'阿里云控制台',
'url':'https://ecs.console.aliyun.com/home#/'
},
{
'name':'传送门',
'url':'http://xiaozhupeiqi.gay/'
},
{
'name':'赛博掷茭杯',
'url':'quantum-decision.html'
},{
'name':'通义AI画图',
'url':'https://tongyi.aliyun.com/wanxiang/creation'
}
];
renderButtons(site_array1, numPerLine);
renderButtons(site_array2, numPerLine);
renderButtons(site_array3, numPerLine);
renderButtons(site_array4, numPerLine);
function renderButtons(site_array1, numPerLine) {
const container = document.getElementById('buttonsContainer'); // 假设你有一个ID为'buttonsContainer'的元素来容纳这些按钮
site_array1.forEach((button, index) => {
const siteContainer = document.createElement('div');
siteContainer.className = 'button-container';
const buttonLink = document.createElement('a');
buttonLink.className = 'button-link';
buttonLink.href = button.url;
buttonLink.textContent = button.name;
siteContainer.appendChild(buttonLink);
if (index % (numPerLine - 1) === 0 && index>0) {
container.appendChild(document.createElement('br'));
}
container.appendChild(siteContainer);
});
container.appendChild(document.createElement('hr'));
}
document.getElementById("wd").focus();
document.onkeydown = KeyPress;
function KeyPress(){//监测按键(回车)情况
var key;
key = event.keyCode;
if(key==13){
// window.location.href=get_wd_search();
window.open(get_wd_search());
}
}
function get_wd_search(){//设置输入框转向目的地址
var wd_init = document.getElementById("wd").value;//获取输入框内容
var wd = wd_init.substr(0, wd_init.length-1);
var search_index = wd_init.charAt(wd_init.length-1);//要转向的网站id
//根据前缀判断,若输入的是网址(前缀为(https:)或(http:)),则直接转向该网址
var wd_head = wd_init.substr(0, 6);//截取从0开始的6个字符
var wd_head_1=wd_init.substr(0, 4);//判断是否为www.
if (wd_head=="https:"||wd_head=="http:/"){
return wd_init;
}
else if(wd_head_1=="www."){
return "https://"+wd_init;
}
if(search_index=='1')//CSDN
return "https://so.csdn.net/so/search?q="+wd;
else if(search_index=='2')//哔哩哔哩
return "https://search.bilibili.com/all?keyword="+wd;
else if (search_index=='3')//知乎
return "https://www.zhihu.com/search?type=content&q="+wd;
else if (search_index=='4')//谷歌
return "https://www.google.com/search?q="+wd;
else if(search_index=='5')//掘金
return "https://juejin.cn/search?query="+wd;
else if(search_index=='6'){//谷歌学术
var temp_wd = wd.replace(/\s/g, '+');
return "https://scholar.google.com/scholar?hl=zh-CN&as_sdt=0%2C5&q="+temp_wd+"&btnG=";
}
else
return "https://cn.bing.com/search?q="+wd_init;
}
function jump_myTranslate(){
window.location.href = "myTranslate.html";
}
function fun_chachacha() {//清除输入框内容
var wd = document.getElementById("wd");
wd.value="";
}
// 根据时间段选择图片
function selectImage() {
if (now.getHours() >= 6 && now.getHours() < 10) {
// 早上6点到12点
return bg_images[0];
} else if (now.getHours() >= 10 && now.getHours() < 15) {
// 中午12点到下午6点
return bg_images[1];
} else if(now.getHours() >= 15 && now.getHours() <19){
return bg_images[2];
} else {
// 晚上7点到次日早上6点
return bg_images[3];
}
}
// 设置背景图片
document.body.style.backgroundImage = "url('" + selectImage() + "')";
</script>
</html>