-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgsod.html
80 lines (73 loc) · 2.72 KB
/
gsod.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
<!DOCTYPE HTML>
<html>
<head>
<title>Gelato System 2K38</title>
<link rel="stylesheet" href="node_modules/xterm/css/xterm.css" />
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/crt.css" />
<script src="node_modules/xterm/lib/xterm.js"></script>
<script src="node_modules/xterm-addon-fit/lib/xterm-addon-fit.js"></script>
<script src="js/patches/local-echo.js"></script>
<script src="js/main.js"></script>
<script src="js/shell.js"></script>
<script src="js/commands.js"></script>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=1000, user-scalable=no" />
</head>
<body>
<div id="terminal" class="crt" style="height:100%;">
<div class="scanline"></div>
</div>
<script>
init();
async function boot() {
bootTerm = new Terminal({
fontSize: 30,
theme: {
background: '#0F0',
foreground: '#FFF'
},
bellStyle: 'sound',
rendererType: "dom",
});
const termFit = new FitAddon.FitAddon();
bootEcho = new LocalEchoController();
bootTerm.loadAddon(termFit);
bootTerm.open(document.getElementById('terminal'));
bootTerm.loadAddon(bootEcho);
termFit.fit();
bootTerm.focus();
bootTerm.history = [];
bootTerm.pwd = "/home/root";
slowText(bootEcho, loadFile("assets/text/gsod.txt"), 1);
setTimeout(function() {window.location.href = "index.html";}, 5000);
switch (localStorage.getItem("dispDrv")) {
case("matrox"):
localStorage.setItem("dispDrv", "none");
break;
case("mach"):
localStorage.setItem("dispDrv", "none");
break;
case("ps2x"):
localStorage.setItem("dispDrv", "none");
break;
case("ps3x"):
localStorage.setItem("dispDrv", "none");
break;
}
}
var bootTerm;
var bootEcho;
boot();
</script>
<style>
.crt {
background: #0F0;
}
.crt:before {
animation: none;
}
</style>
</body>
</html>