-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (160 loc) · 6.08 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRON</title>
<style>
body {
margin: 0;
padding: 0;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
background-color: black;
color: white;
overflow-x: hidden;
font-size: 14px;
line-height: 1.5;
transition: background-color 0.5s ease;
}
.sliding-text {
position: fixed;
top: 0;
left: -100%;
width: 100%;
padding: 10px 0;
background-color: rgba(255, 255, 255, 0.1);
white-space: nowrap;
overflow: hidden;
}
.sliding-text span {
display: inline-block;
padding-left: 100%;
animation: slide 20s linear infinite;
}
@keyframes slide {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(-100%, 0);
}
}
.floating-language {
position: fixed;
bottom: -50px;
opacity: 0.3;
font-size: 12px;
pointer-events: none;
z-index: -1;
transition: bottom 10s linear, opacity 10s linear;
}
.content {
min-height: 50px; /* Make the page very long */
}
#countdown {
position: fixed;
bottom: 20px;
left: 0;
width: 100%;
text-align: center;
font-size: 24px;
}
.big-question-mark {
font-size: 200px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: spin 4s linear infinite;
}
@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
#game-container {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: black;
color: white;
font-family: monospace;
overflow: hidden;
}
</style>
</head>
<body>
<div class="sliding-text">
<span><// CLAIM PRE-RELEASE BADGE BEFORE IT IS GONE FOREVER //></span>
</div>
<div class="content">
<div class="big-question-mark">?</div>
</div>
<div id="countdown"></div>
<div id="languages"></div>
<div id="game-container"></div>
<script src="flappybird.js"></script>
<script>
function updateCountdown() {
const now = new Date();
const targetDate = new Date(now.getFullYear() + 1, now.getMonth(), now.getDate());
targetDate.setDate(targetDate.getDate() + 100);
const timeDiff = targetDate - now;
const years = 1;
const days = 365;
const hours = Math.floor((timeDiff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((timeDiff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((timeDiff % (1000 * 60)) / 1000);
document.getElementById('countdown').innerHTML = `
${years} year${years !== 1 ? 's' : ''},
${days} day${days !== 1 ? 's' : ''},
${hours} hour${hours !== 1 ? 's' : ''},
${minutes} minute${minutes !== 1 ? 's' : ''},
${seconds} second${seconds !== 1 ? 's' : ''}
`;
}
setInterval(updateCountdown, 1000);
updateCountdown();
const languages = [
{ name: "Python", description: "Versatile, readable, and powerful high-level programming language" },
{ name: "JavaScript", description: "Dynamic scripting language for web development and beyond" },
{ name: "Java", description: "Object-oriented language known for its 'write once, run anywhere' philosophy" },
{ name: "C++", description: "Powerful systems programming language with object-oriented features" },
{ name: "Ruby", description: "Dynamic, object-oriented language focused on simplicity and productivity" },
{ name: "Go", description: "Efficient, concurrent, and minimalist language by Google" },
{ name: "Rust", description: "Systems language focusing on safety, concurrency, and performance" },
{ name: "TypeScript", description: "Typed superset of JavaScript for large-scale applications" },
{ name: "Swift", description: "Modern language for iOS, macOS, and beyond" },
{ name: "Kotlin", description: "Concise and expressive language for Android and multiplatform development" }
];
function createFloatingLanguage(language) {
const element = document.createElement('div');
element.className = 'floating-language';
element.textContent = `${language.name}: ${language.description}`;
element.style.left = `${Math.random() * 100}vw`;
document.body.appendChild(element);
setTimeout(() => {
element.style.bottom = '120vh';
element.style.opacity = '0';
}, 100);
setTimeout(() => {
element.remove();
}, 10000);
}
function animateLanguages() {
setInterval(() => {
const randomLanguage = languages[Math.floor(Math.random() * languages.length)];
createFloatingLanguage(randomLanguage);
}, 2000);
}
animateLanguages();
document.querySelector('.big-question-mark').addEventListener('click', function() {
document.body.innerHTML = '';
document.getElementById('game-container').style.display = 'block';
startFlappyBird();
});
</script>
</body>
</html>