-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (65 loc) · 1.94 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Afterlifepro</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:[email protected]&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");
body,
html {
margin: 0;
color-scheme: dark light;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
/* font-family: "Roboto Mono", "Fira Code", monospace; */
font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace;
font-size: 120pt;
flex-direction: column;
h1 {
font-size: 5vw;
width: 100vw;
text-align: center;
}
#spinner {
width: 250px;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
}
}
</style>
</head>
<body onclick="nextStep()">
<h1>afterlifepro.github.io</h1>
<div id="spinner">/</div>
<script>
const steps = [
"\\|/-",
[":)", ":|", ":(", ":|"],
"⣾⣽⣻⢿⡿⣟⣯⣷",
"\\-/|",
["⢎⡰", "⢎⡡", "⢎⡑", "⢎⠱", "⠎⡱", "⢊⡱", "⢌⡱", "⢆⡱"],
"▁▃▄▅▆▇█▇▆▅▄▃",
["◜ ", " ◝", " ◞", "◟ "],
];
const timings = [100, 250, 200, 100, 250, 75, 150];
let cycle = 0;
const spinner = document.getElementById("spinner");
const spins = (step) => {
spinner.innerHTML = steps[cycle][step];
setTimeout(() => {
spins((step + 1) % steps[cycle].length);
}, timings[cycle]);
};
const nextStep = () => {
cycle = (cycle + 1) % steps.length;
};
spins(0);
</script>
</body>
</html>