-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (87 loc) · 2.52 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QBSR7ZQGYB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-QBSR7ZQGYB');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Glitch in The Matrix</title>
<style>
body {
background-color: black;
color: lime;
font-family: 'Courier New', Courier, monospace;
font-size: 18px;
line-height: 1.5;
padding: 20px;
overflow: hidden;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
#terminal-box {
border: 2px solid lime;
padding: 20px;
border-radius: 10px;
white-space: nowrap;
position: relative;
}
#prompt {
display: inline-block;
margin-right: 5px;
color: #00ff00;
}
#cursor {
display: inline-block;
width: 8px;
height: 16px;
background-color: lime;
animation: blink 1s infinite;
position: absolute;
}
@keyframes blink {
50% {
opacity: 0;
}
}
@media (max-width: 600px) {
body {
padding: 10px;
}
#terminal-box {
white-space: normal;
}
}
</style>
</head>
<body>
<div id="terminal-box">
<span id="prompt">Neo@TheMatrix:</span>
<span id="typing-container"></span>
<span id="cursor"></span>
</div>
<script>
var textToType = "They showed themselves, the top 1% of the 1%, the ones in control, the ones who play God without permission. And now I'm gonna take them down_";
var typingSpeed = 70;
var typingContainer = document.getElementById("typing-container");
function typeText(index) {
if (index < textToType.length) {
typingContainer.innerHTML += textToType.charAt(index);
index++;
setTimeout(function () {
typeText(index);
}, typingSpeed);
}
}
typeText(0);
</script>
</body>
</html>