-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
104 lines (104 loc) · 6.27 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
<!DOCTYPE html>
<html>
<head lang="zh">
<meta charset="UTF-8">
<title>tty1</title>
<link rel="stylesheet" media="all" href="//cdn.rawgit.com/SDA/terminal/master/dist/terminal-1.0.0.min.css"/>
<style>
/* latin-ext */
@font-face {
font-family: 'Inconsolata';
font-style: normal;
font-weight: 400;
src: local('Inconsolata'), url(http://fonts.gstatic.com/s/inconsolata/v12/BjAYBlHtW3CJxDcjzrnZCCYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Inconsolata';
font-style: normal;
font-weight: 400;
src: local('Inconsolata'), url(http://fonts.gstatic.com/s/inconsolata/v12/BjAYBlHtW3CJxDcjzrnZCI4P5ICox8Kq3LLUNMylGO4.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
</style>
</head>
<body>
<div id="terminal"></div>
<script src="//cdn.rawgit.com/SDA/terminal/master/dist/terminal-1.0.0.min.js"></script>
<script>
var time = new Date();
var terminal = new Terminal('terminal', {welcome: [
"Configuration file: /home/Five-African/simple-intro/_config.yml",
" Source: /home/Five-African/simple-intro",
" Destination: /home/Five-African/simple-intro/_site",
" Incremental build: disabled. Enable with --incremental",
" Generating... ",
" done in 0.103 seconds.",
" Auto-regeneration: enabled for '/home/Five-African/simple-intro'",
"Configuration file: /home/Five-African/simple-intro/_config.yml",
" Server address: http://five-african.github.io/simple-intro/",
" Server running... press ctrl-c to stop.",
"[" + time.toLocaleDateString() + " " + time.toLocaleTimeString() + "] ERROR `" + location.pathname + "' not found."
].join('<br/>').replace(/ /g, ' '),
prompt: "nobody:/home/Five-African/simple-intro",
separator: "#"
}, {
execute: function(cmd, args) {
switch (cmd) {
case "clear":
terminal.clear();
return '';
case "help":
return "Commands: cat, clear, help, ls";
default:
return false;
}
}
}, {
execute: function(cmd, args) {
switch (cmd) {
case "ls":
return "haruka.txt";
case "cat":
if (args && args[0]) {
if (args.length > 1) return 'Too many arguments';
else {
switch (args[0]) {
case "haruka.txt":
return '<font style=\'font-family:Mona,"MS PGothic AA","MS Pゴシック","MS PGothic","MS Pゴシック","MS Pゴシック","MSPゴシック","MSPゴシック","IPA モナー Pゴシック","IPA mona PGothic","IPA MONAPGOTHIC",IPAMonaPGothic,Textar,Kuma_Lite,sans-serif\'>' + [
" ,. - \"~ ̄ ̄~``'丶、",
" / , `´ 、 `丶",
" / / ´ 、 ヽ. \",
" / / ; ヽ ',",
" / / ,/ , i ヽ ',",
" ,' / / ,l ,' ト 丶 '",
" ,' ,. /l^i / /l ´ lヽ ', l",
" ,、,' ', -' '、 ノ-‐/‐ト ,' _ヽ ,、 ', l",
" !,'廴,=i・_,’ノ' /,/ | , / `\";ト ', l",
" ソ\"´/`\"´ /ノ _ .'l ノ/ ', |', |",
" ,--、 ノ / / ,x===:、! '\"´ ‐ l' ', . l",
" / l //' ,/, i /', ´ '\"\"''ヾ、 ', i l",
". l i l li i i /l / ヽ:, ' /,.l|l _l",
" __!.,i\"'_'ヽ ヽ l l l i '.、 l\" ゙̄ヽ /,ノ, '\"- 、`ヽ",
" / ゞー''iヽ、 i li '、 l / ノlヽ.、 ヽ.__ノ ,ノ ,' l:;:;:;:;:;:l_,.!‐-、",
"´ ``´ ヽ ヾ、ヽ=ヾt'i l l`丶 - ‐ ''\"l、 l !ノ > `丶、",
" ,-.`l ヾ,'_ノノ ',,.. ヽ/` ,.-ー‐‐'\"\" ヽ,、_,/: 、´\"ヽ,",
". ● l 、ヽ / ,/ /ヽ、!_´-ー--─ \"' ,.--! ο ', l",
" ● ’ノ `.、 l / / / / ”///‐‐,=,、, _,、l ', ,.--。ο l l",
"ヽ ,-‐、 ,.,_'\" `-iヽ、 / ' / /\"/' /--,/,、l ,..! 人 l ヘ ヽ l___ノ"
].join("<br/>") + "</font>";
default:
return "cat: " + args[0] + ": No such file or directory";
}
}
}
return '';
default:
return false;
}
}
});
</script>
</body>
</html>