-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredirect.html
96 lines (88 loc) · 3.7 KB
/
redirect.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="pic/icon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
<link rel="stylesheet" herf="common.css">
<title>2023!:重定义</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<script src="js/common.js"></script>
<audio src="music/effect/world_news.wav" autoplay="autoplay" preload="auto" loop="loop"></audio>
</head>
<body style="background-image: linear-gradient(to right, deeppink, orange);">
<main>
<script>
//获取屏幕宽高
var windowWidth = window.screen.width;
var windowHeight = window.screen.height;
//创建雪花
function createSnow(){
var left = 0;
var top = 0;
//定义一个初始化随机数,使雪花在屏幕中
var left_random = Math.random() * windowWidth;
var top_random = Math.random()* windowHeight;
var div = document.createElement('div');
div.className = 'snow';
div.style.transform = 'scale('+(Math.random())+')'
document.body.appendChild(div);
//雪花飘落
setInterval(function () {
div.style.left = left_random + left +'px';
div.style.top = top_random + top +'px'
left += 0.2;
top += 0.2;
//如果雪花跑到屏幕外面了,让雪花重新返回屏幕顶部
if(left_random + left >= windowWidth){
left_random = Math.random();
left = 0;
}
if(top_random + top >= windowHeight){
top_random = Math.random();
top = 0;
}
},10)
}
for(var i = 0 ; i < 200 ; i++){
createSnow();
}
</script>
<h1 style="text-align:center;">您正在重定义向至 我的主页...</h1>
<br>
<p style="text-align: center;"><button><a href="https://awqj1594.github.io/blogs">如果没有响应,请点击此处。</a></button></p>
<script type="text/javascript">
window.location.replace="https://awqj1594.github.io/blogs";
</script>
<div class="footer">
<div class="mod_copyright" style="background-color:slategrey;position: fixed;bottom:0px;">
<div class="links">
<a onclick="supr_alert(1)">了解我更多!</a>|
<a onclick="supr_alert(1)">[广告位招租]黄金版位.jpg</a>|
<a onclick="supr_alert(2)">我的个人主页(半死亡)</a>
<img src="pic/i_f16.png" title="彩蛋!">
</div>
<div class="copyright">
Copyright © 1145-1919,No right saved.
"学下北泽,就从一个一个先辈开始!"<br>
AresenewithQuiteLonely_Jerry.
</div>
</div>
</div>
<h2 style="text-align:center" id="hitokoto">
<a href="#" id="hitokoto_text">Tips:每刷新一次就有不同的小惊喜哦!</a>
</h2>
<script>
fetch('https://v1.hitokoto.cn')
.then(response => response.json())
.then(data => {
const hitokoto = document.querySelector('#hitokoto_text')
hitokoto.href = `https://hitokoto.cn/?uuid=${data.uuid}`
hitokoto.innerText = data.hitokoto
})
.catch(console.error)
</script>
<h2 style="text-align:center">--[一言]</h2>
</main>
</body>