-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.yaml
52 lines (51 loc) · 1.7 KB
/
404.yaml
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
id: 404
path:
description: The page you were looking for could not be found
keywords:
- 404
- not found
commands:
- command: cat 404.txt
output: |-
<pre><code>
.o .oooo. .o
.d88 d8P'`Y8b .d88
.d'888 888 888 .d'888
.d' 888 888 888 .d' 888
88ooo888oo 888 888 88ooo888oo
888 `88b d88' 888
o888o `Y8bd8P' o888o
NOT FOUND</code></pre>
action:
command: clear
href: /
scripts: |-
<script>
(function () {
const path = window.location.pathname.substring(1);
const text = `realpath: ${path}: No such file or directory`;
const command = document.createElement("span");
command.classList.add("command");
command.dataset.text = `realpath ${path}`;
const blinker = document.createElement("span");
blinker.classList.add("blinker");
const prompt = document.createElement("div");
prompt.classList.add("prompt");
prompt.innerHTML = ">";
prompt.append(command);
prompt.append(blinker);
const paragraph = document.createElement("p");
paragraph.innerText = text;
const output = document.createElement("div");
output.classList.add("output");
output.hidden = true;
output.append(paragraph);
const section = document.createElement("div");
section.classList.add("section");
section.hidden = true;
section.append(prompt);
section.append(output);
const terminal = document.querySelector(".terminal");
terminal.prepend(section);
})();
</script>