-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (59 loc) · 1.52 KB
/
index.html
File metadata and controls
66 lines (59 loc) · 1.52 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Coming Soon...</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #000;
color: #0f0;
font-family: "Courier New", Courier, monospace;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
}
h1 {
font-size: 3rem;
text-shadow: 0 0 5px #0f0, 0 0 10px #00b900;
position: relative;
}
/* Flicker animation */
@keyframes flicker {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
.flicker {
animation: flicker 2s infinite alternate;
}
</style>
</head>
<body>
<h1 class="flicker">Coming Soon...</h1>
<script>
// This variable will hold the characters typed by the user.
let typedSequence = '';
// Listen for key presses on the entire page
document.addEventListener('keypress', function(event) {
// Add the newly pressed key to the sequence
typedSequence += event.key;
// If typedSequence gets too long, keep only the last 4 chars
if (typedSequence.length > 4) {
typedSequence = typedSequence.slice(-4);
}
// Check if the last 4 characters match "1337"
if (typedSequence === '1337') {
// Redirect to fun URL - Let me know if you found this ;)
window.location.href = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ&pp=ygUJcmljayByb2xs';
}
});
</script>
</body>
</html>