-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
61 lines (57 loc) · 1.92 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
---
title: 404
permalink: /404.html
layout: default
jquery: true
---
<style type="text/css" media="screen">
.container {
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
ul li {
padding-top: 0.4em;
}
#move {
position: relative;
}
</style>
<div class="card container">
<h1 id="text"><i class="fa-solid fa-triangle-exclamation"></i>
4<span id="move">0</span>4 Page not found!</h1>
<p>您查找的网页链接不存在 :(</p>
<p>The requested page could not be found :(</p>
<p>如果您通过超链接到达此页面,请<a href="mailto:{{site.email}}">联系作者</a>以报告错误</p>
<p>If you get here by a hyperlink, please <a href="mailto:{{site.email}}">contact me</a> to report the problem</p>
<ul class="react">
<li><a href="/"><strong><i class="fa-solid fa-house"></i> BACK TO MAINPAGE 回到主页</strong></a></li>
<li><a href="/blog-zh/"><strong><i class="fa-solid fa-newspaper"></i> VISIT MY BLOG 访问博客</strong></a></li>
<li><a href="/app/"><strong><i class="fa-solid fa-cubes"></i> INTERESTING APPS 有意思的小应用</strong></a></li>
<li><a href="/aboutme/"><strong><i class="fa-solid fa-user"></i> ABOUT ME 关于我</strong></a></li>
</ul>
</div>
<script>
// linear interpolation
function lInterp(v1, v2, t) {
return v1 * (1 - t) + v2 * t;
}
$(document).ready(function() {
const offset = parseFloat($("#move").css("font-size")) / 2;
const color = [56, 200, 123]
$("body").on('mousemove', (e) => {
var bx = (e.clientX / window.outerWidth) * 2 - 1;
var by = (e.clientY / window.outerHeight) * 2 - 1;
var t = Math.hypot(bx, by) / 2;
$("#move").css({
"top": by * offset,
"left": bx * offset
});
$("#text").css("color", `rgb(${lInterp(color[0], 0, t)}, ${lInterp(color[1], 0, t)}, ${lInterp(color[2], 0, t)})`)
});
});
</script>