-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
307 lines (219 loc) · 8.81 KB
/
404.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="你来到了没有知识的荒原 :(">
<meta property="og:type" content="website">
<meta property="og:title">
<meta property="og:url" content="https://www.baidu.com/404.html">
<meta property="og:site_name">
<meta property="og:description" content="你来到了没有知识的荒原 :(">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-01-01T05:21:54.923Z">
<meta property="article:modified_time" content="2019-12-20T11:21:47.684Z">
<meta property="article:author" content="shudun">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="" type="application/atom+xml">
<link rel="icon" href="https://www.goxy.top/img/shudun.jpg">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 4.1.1"></head>
<body>
<div id="container">
<div id="wrap">
<canvas id="canvas" style="position: absolute;"></canvas>
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo"></a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="搜索"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="https://www.baidu.com"></form>
</div>
</div>
</div>
</header>
<script>
const canvas = document.getElementById("canvas");
const ctx = canvas.getContext('2d');
let colors = [
'#FFCE03',
'#EB7A0C',
'#FF5949',
'#DC38E8',
'#3A14FF'
];
const getRandomNumber = () => {
return Math.random() * 2 - 1;
}
const randomColors = colors => {
return colors[Math.floor(Math.random() * colors.length)];
}
const getDistance = (x1, y1, x2, y2) => {
const xc = x1 - x2;
const yc = y1 - y2;
return xc * xc + yc * yc;
}
const resize = () => {
canvas.width = window.innerWidth;
canvas.height = 300;
}
resize();
window.onresize = resize;
let position = {
x: null,
y: null,
xSpeed: 0,
ySpeed: 0,
max: 20000,
color: randomColors(colors)
};
window.onmousemove = e => {
position.x = e.clientX;
position.y = e.clientY;
};
window.onmouseout = e => {
position.x = null;
position.y = null;
};
let dots = [];
for (let i=0; i<200; i++) {
dots.push({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
xSpeed: getRandomNumber(),
ySpeed: getRandomNumber(),
max: 6000,
color: randomColors(colors)
});
}
const animate = () => {
const balls = [position].concat(dots);
requestAnimationFrame(animate);
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (let dot of balls) {
dot.x += dot.xSpeed;
dot.y += dot.ySpeed;
dot.xSpeed *= (dot.x >= canvas.width || dot.x <= 0) ? -1 : 1;
dot.ySpeed *= (dot.y >= canvas.height || dot.y <= 0) ? -1 : 1;
ctx.fillRect(dot.x - 0.5, dot.y - 0.5, 1, 1);
const LineColor = randomColors(colors);
for (let dot2 of balls) {
if (dot === dot2 || dot2.x === null || dot2.y === null) continue;
const dis = getDistance(dot.x, dot.y, dot2.x, dot2.y);
const xc = dot.x - dot2.x;
const yc = dot.y - dot2.y;
if (dis <= dot2.max) {
if (dot2 === position && dis > (dot2.max / 2)) {
dot.x -= xc * 0.03;
dot.y -= yc * 0.03;
}
ctx.beginPath();
ctx.lineWidth = 0.1;
ctx.strokeStyle = 'rgba(255,255,255, 1)';
ctx.moveTo(dot.x, dot.y);
ctx.lineTo(dot2.x, dot2.y);
ctx.stroke();
}
}
}
}
animate();
</script>
<div class="outer">
<section id="main"><article id="404-" class="article article-type-404" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/404.html" class="article-date">
<time datetime="2020-01-01T05:21:54.923Z" itemprop="datePublished">2020-01-01</time>
</a>
</div>
<div class="article-inner">
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<a data-url="https://www.baidu.com/404.html" data-id="ck4v9trt00000w25k7urq545g" class="article-share-link">Share</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/05/">五月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">四月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/02/">二月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/12/">十二月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/">十一月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/">十月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/">十二月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/">五月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/">一月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">十二月 2016</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">最新文章</h3>
<div class="widget">
<ul>
<li>
<a href="/2019/05/14/%E4%BD%BF%E7%94%A8%E5%8F%8D%E5%B0%84%E5%AE%9E%E7%8E%B0%E4%BE%9D%E8%B5%96%E6%B3%A8%E5%85%A5/">使用反射实现依赖 自动注入</a>
</li>
<li>
<a href="/2019/04/23/%E4%BD%BF%E7%94%A8socket-%E5%AE%9E%E7%8E%B0%E7%AE%80%E5%8D%95%E7%9A%84%E8%81%8A%E5%A4%A9/">使用socket, 实现简单的聊天</a>
</li>
<li>
<a href="/2019/02/28/go%E7%AC%94%E8%AE%B0-%E5%B9%B3%E5%8F%B0%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91-1/">go笔记 平台之间的交叉编译</a>
</li>
<li>
<a href="/2018/12/24/php%E5%AE%9E%E7%8E%B0%E6%A3%80%E6%B5%8B%E5%9F%9F%E5%90%8D%E6%98%AF%E5%90%A6%E8%A2%AB%E5%A2%99/">php实现检测域名是否被墙</a>
</li>
<li>
<a href="/2018/11/19/%E4%BD%BF%E7%94%A8redis-set%E9%9B%86%E5%90%88%E5%AE%9E%E7%8E%B0%E7%89%9B%E7%89%9B/">使用redis set集合实现牛牛</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2020 shudun<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ["$","$"], ["\\(","\\)"] ],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
processEscapes: true
}
});
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax();
for (var i = 0; i < all.length; ++i)
all[i].SourceElement().parentNode.className += ' has-jax';
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-MML-AM_CHTML"></script>
</body>
</html>