-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (68 loc) · 3.05 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
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Xmas</title>
<link rel="stylesheet" href="styles.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="termynal" data-termynal data-termynal data-ty-typeDelay="50" data-ty-lineDelay="500">
<span data-ty="input">systemctl status matrix</span>
<span data-ty="progress"></span>
<span data-ty>Status normal. Living in simulation.</span>
<span data-ty></span>
<span data-ty="input">matrix load xmas</span>
<span data-ty="progress"></span>
<span data-ty>Simulation successfully loaded.</span>
<span data-ty></span>
<span data-ty="input">./xmas</span>
<span data-ty> 🌟</span>
<span data-ty> _/\_</span>
<span data-ty> \ /</span>
<span class="tree" data-ty> /1 \</span>
<span class="tree" data-ty> / 00 \</span>
<span class="tree" data-ty> / 1 10 \</span>
<span class="tree" data-ty> /1 1 0\</span>
<span class="tree" data-ty> / 1 10 1 \</span>
<span class="tree" data-ty> / 1 00 1 0\</span>
<span class="tree" data-ty> /101 1 1 1 0\</span>
<span data-ty>*----------------*</span>
<span data-ty> [_______]</span>
<span data-ty> \_____/ Merry X-mas, ya filthy animal!</span>
</div>
</body>
<script
src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/316871/termynal.min.js"
type="application/javascript"
></script>
<script type="application/javascript">
new Termynal("#termynal");
function generateDeco(length) {
let deco = ["0","1"," "," "," "];
return Array.apply(null, Array(length)).map(item=>{
return deco[Math.floor(Math.random()*deco.length)];
});
}
setTimeout(()=>{
setInterval(()=>{
let decos = document.getElementsByClassName('tree');
let indent = 8;
for (let i = 0; i < decos.length; ++i) {
let content = decos[i].innerHTML.replace(/ /g, " ").split('');
content = generateDeco(content.length);
content[--indent] = "/";
content.fill(" ",0,indent);
content[content.length-1] = '\\';
decos[i].innerHTML = content.join('').replace(/\s/g, ' ');
}
},500);
},17000)
</script>
</html>