-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
executable file
·96 lines (79 loc) · 3.69 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
<!DOCTYPE html>
<html lang="ko-kr">
<head>
<meta name="google-site-verification" content="iGuwne5LJzJBBoCxsCg4BhAYCzXlzuvrOufVjQCreyA" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>> /tmp</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<meta name="googlebot" content="index,follow,snippet,archive">
<link rel="stylesheet" href="https://jiwonaid.github.io/hugo-theme-console/css/terminal-0.7.1.min.css">
<link rel="stylesheet" href="https://jiwonaid.github.io/hugo-theme-console/css/animate-3.7.2.min.css">
<link rel="stylesheet" href="https://jiwonaid.github.io/hugo-theme-console/css/console.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<meta property="og:title" content="404 Page not found" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jiwonaid.github.io/404.html" />
<meta name="twitter:title" content="404 Page not found"/>
<meta name="twitter:description" content=""/>
</head>
<body class="terminal">
<div class="container">
<div class="terminal-nav" onclick="focusTerminal()">
<header class="terminal-logo">
<div class="logo terminal-prompt">
<a href="https://jiwonaid.github.io/" class="no-style ">> /tmp</a>:/<spam id="path"><a href='https://jiwonaid.github.io/404.html'>404.html</a>/</spam>$
<input id="input" autofocus style="color: transparent; text-shadow: 0 0 0 black;"></div></header>
</div>
<p id="output">Supported commands: ls, cd ${PATH}</p>
</div>
<div class="container " >
<h1>Page not found</h1>
<p><a href="https://jiwonaid.github.io/">Return to the home page</a>.</p>
<div class="footer">
Powered by <a href="https://gohugo.io/">Hugo</a> and hugo-theme-console.
</div>
</div>
</body>
<script>
var input = document.getElementById("input");
input.style.width = "1ch";
input.blur();
function focusTerminal() {
input.focus();
}
input.addEventListener('input', function () {
input.style.width = input.value.length + 1 + "ch";
});
input.addEventListener('keydown', function () {
if (event.key == 'Enter') {
if (input.value == "ls") {
var path = document.getElementById("path");
var output = document.getElementById("output");
var text = ".\n..\n";
if ( path.innerText == "") {
text += "about\nposts";
}
else if (path.innerText == "posts/") {
text += "\/\/posts\/\/posts\/xpd\/\/posts\/linux-kernel-dev-env-conf-for-bpf\/\/posts\/wsl\/\/posts\/dt\/\/posts\/materials\/\/posts\/runcontainer\/\/posts\/golang-build-tools\/\/posts\/km\/\/posts\/rmq\/\/posts\/kqs\/\/posts\/tilt\/\/posts\/lks\/\/posts\/create-blog-github\/\/posts\/linux-kernel-dev-env-conf\/\/posts\/cloud-init-user-data-script-re-run\/\/posts\/my-first-post\/\/about\/\/adamantium\/\/categories\/\/tags\/";
text = text.replace(/\/posts\//g, "");
text = text.replace(/\//g, "\n");
}
input.value = "";
input.style.width = "1ch";
output.innerText = text;
}
else if (input.value.substr(0, 3) == "cd ") {
var text = input.value;
text = text.replace("cd ", "");
window.location.href = text;
}
}
});
</script>
</html>