forked from Divij-Agarwal-42/duckmath.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
485 lines (436 loc) ยท 14.1 KB
/
Copy path404.html
File metadata and controls
485 lines (436 loc) ยท 14.1 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html>
<html lang="en">
<head>
<script src="/assets/js/add.js"></script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
property="og:image"
content="https://duckmath.org/assets/img/duck.webp"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="title" content="404 - Page Lost in the Duck Dimension" />
<meta
name="description"
content="Oops! This page wandered off into the duck dimension. Let's get you back on track!"
/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="English" />
<title>404 Page Not Found โ DuckMath</title>
<link rel="stylesheet" href="/assets/css/text_styles.css" />
<link rel="stylesheet" href="/assets/css/topnav.css" />
<link rel="stylesheet" href="/assets/css/main.css" />
<script src="/assets/js/main.js"></script>
<script src="/assets/js/index.js" type="text/javascript" defer></script>
<link rel="icon" type="image/x-icon" href="/assets/img/duck.webp" />
<link rel="mask-icon" type="" href="/assets/img/duck.webp" color="#111" />
<noscript
>Your browser doesn't have JavaScript enabled. Please enable JavaScript or
switch to a browser that supports it.</noscript
>
<style>
/* Override body to use existing DuckMath styling */
body {
font-family: "Montserrat", sans-serif;
font-weight: 500;
font-size: 15px;
line-height: 1.7;
color: #fff;
overflow-x: hidden;
letter-spacing: 0.2px;
text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: antialiased !important;
scroll-behavior: smooth;
margin: 0;
position: relative;
min-height: 100vh;
}
@keyframes float {
0%,
100% {
transform: translateY(0px) rotate(0deg);
opacity: 0.6;
}
50% {
transform: translateY(-15px) rotate(180deg);
opacity: 0.9;
}
}
/* Compact main container */
.error-container {
margin-top: -10rem !important;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
padding: 1rem;
padding-top: 120px; /* Space for navbar */
position: relative;
margin-top: 0; /* Remove negative margin */
}
/* Smaller 404 glitch text */
.error-code {
font-size: clamp(4rem, 12vw, 8rem); /* Reduced from 12rem */
font-weight: 900;
margin: 0;
position: relative;
color: var(--input-border);
text-shadow: 0 0 15px #ff3b3b, 0 0 25px #ff3b3b;
animation: glitch 2s ease-in-out infinite alternate;
}
@keyframes glitch {
0% {
text-shadow: 0 0 15px #ff3b3b, 0 0 25px #ff3b3b;
transform: skew(0deg);
}
20% {
text-shadow: -2px 0 #ff3b3b, 2px 0 #fff;
transform: skew(-1deg);
}
40% {
text-shadow: 2px 0 #ff3b3b, -2px 0 #fff;
transform: skew(0.5deg);
}
60% {
text-shadow: 0 0 15px #fff, 0 0 25px #fff;
transform: skew(-0.5deg);
}
80% {
text-shadow: -1px 0 #ff3b3b, 1px 0 #fff;
transform: skew(0.3deg);
}
100% {
text-shadow: 0 0 15px #ff3b3b, 0 0 25px #ff3b3b;
transform: skew(0deg);
}
}
/* Smaller duck animation */
.duck-container {
position: relative;
margin: 1rem 0; /* Reduced margin */
}
.floating-duck {
width: 80px; /* Reduced from 120px */
height: 80px;
background: url("/assets/img/duck.webp") center/contain no-repeat;
animation: bounce 2.5s ease-in-out infinite;
filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}
@keyframes bounce {
0%,
100% {
transform: translateY(0px) rotate(-3deg);
}
50% {
transform: translateY(-20px) rotate(3deg); /* Reduced bounce */
}
}
/* Compact error messages */
.error-message {
font-size: clamp(1.2rem, 3vw, 1.8rem); /* Reduced size */
margin: 1rem 0; /* Reduced margins */
max-width: 500px;
line-height: 1.3;
animation: fadeInUp 1s ease-out 0.3s both;
}
.error-submessage {
font-size: clamp(0.9rem, 2vw, 1.1rem); /* Reduced size */
margin: 0.5rem 0 1.5rem; /* Reduced margins */
opacity: 0.9;
max-width: 400px;
animation: fadeInUp 1s ease-out 0.6s both;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px); /* Reduced movement */
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Compact action buttons */
.action-buttons {
display: flex;
gap: 1rem; /* Reduced gap */
flex-wrap: wrap;
justify-content: center;
margin-top: 1.5rem; /* Reduced margin */
animation: fadeInUp 1s ease-out 0.9s both;
}
.epic-button {
padding: 0.7rem 1.5rem; /* Reduced padding */
border: none;
border-radius: 10px; /* Smaller radius */
font-size: 0.95rem; /* Smaller font */
font-weight: 600;
text-decoration: none;
color: white;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
background-color: #fff; /* White background for better readability */
color: #ff3b3b; /* Red text */
border: 2px solid #ff3b3b;
}
.epic-button::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
transition: left 0.5s;
}
.epic-button:hover::before {
left: 100%;
}
.epic-button:hover {
transform: translateY(-2px); /* Reduced movement */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
background-color: #ff3b3b; /* Red background on hover */
color: #fff; /* White text on hover */
}
.epic-button:active {
transform: translateY(0px);
}
/* Smaller magic portal */
.magic-portal {
position: absolute;
width: 150px; /* Reduced size */
height: 150px;
border-radius: 50%;
background: radial-gradient(
circle,
rgba(255, 59, 59, 0.2) 0%,
transparent 70%
);
animation: pulse 3s ease-in-out infinite;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 0; /* Behind everything but above background */
pointer-events: none; /* Don't block clicks */
}
@keyframes pulse {
0%,
100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.4;
}
50% {
transform: translate(-50%, -50%) scale(1.1); /* Reduced scale */
opacity: 0.6;
}
}
/* Compact mobile design */
@media (max-width: 768px) {
.error-container {
padding: 0.5rem;
padding-top: 100px; /* Space for mobile navbar */
}
.action-buttons {
flex-direction: column;
align-items: center;
gap: 0.8rem;
}
.epic-button {
width: 200px; /* Smaller on mobile */
padding: 0.6rem 1.2rem;
}
.floating-duck {
width: 60px; /* Smaller duck on mobile */
height: 60px;
}
}
/* Compact hidden duck game */
.hidden-game {
position: fixed;
bottom: 15px;
right: 15px;
z-index: 1000;
}
.game-duck {
width: 35px; /* Smaller game duck */
height: 35px;
background: url("/assets/img/duck.webp") center/contain no-repeat;
cursor: pointer;
transition: transform 0.3s ease;
opacity: 0.6;
}
.game-duck:hover {
transform: scale(1.1) rotate(10deg); /* Reduced effect */
opacity: 1;
}
.score-display {
position: fixed;
top: 15px;
right: 15px;
background: rgba(0, 0, 0, 0.8);
padding: 0.4rem 0.8rem; /* Smaller padding */
border-radius: 15px;
font-weight: bold;
font-size: 0.85rem; /* Smaller font */
display: none;
}
/* Removed click effect to avoid navbar interference */
/* Compact layout adjustments */
.error-code,
.error-message,
.error-submessage {
margin-bottom: 0.8rem; /* Tighter spacing */
}
</style>
</head>
<body>
<!-- where auto would go -->
<!-- Compact particle background -->
<div
id="particles"
style="
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
"
></div>
<!-- Smaller magic portal effect -->
<div class="magic-portal"></div>
<div class="error-container">
<h1 class="error-code">404</h1>
<div class="duck-container">
<div class="floating-duck"></div>
</div>
<div class="error-message">
Oops! This page wandered off into the duck dimension! ๐ฆ
</div>
<div class="error-submessage">
Don't worry though, our ducks are expert navigators.<br />
Let's get you back to the fun stuff!
</div>
<div class="action-buttons">
<a href="/" class="epic-button">๐ฎ Play Games</a>
<a href="/leaderboard.html" class="epic-button">๐ Leaderboard</a>
<a href="/more/discord.html" class="epic-button">๐ฌ Discord</a>
<button onclick="searchRandomGame()" class="epic-button">
๐ฒ Random Game
</button>
</div>
</div>
<!-- Compact hidden duck clicking game -->
<div class="hidden-game">
<div class="game-duck" onclick="duckClick(this)"></div>
</div>
<div class="score-display" id="scoreDisplay">
Ducks: <span id="duckScore">0</span>
</div>
<script>
// Create fewer, smaller particles for compact design
function createParticles() {
const particleContainer = document.getElementById("particles");
for (let i = 0; i < 30; i++) {
// Reduced from 50
const particle = document.createElement("div");
particle.className = "particle";
particle.style.left = Math.random() * 100 + "%";
particle.style.top = Math.random() * 100 + "%";
particle.style.width = Math.random() * 6 + 3 + "px"; // Smaller particles
particle.style.height = particle.style.width;
particle.style.animationDelay = Math.random() * 4 + "s";
particle.style.animationDuration = Math.random() * 3 + 3 + "s";
particleContainer.appendChild(particle);
}
}
// Random game redirect
function searchRandomGame() {
const games = [
"slope",
"run-3",
"cookie-clicker",
"minecraft-classic",
"happy-wheels",
"geometry-dash",
"2048",
"flappy-bird",
"among-us",
];
const randomGame = games[Math.floor(Math.random() * games.length)];
window.location.href = "/g4m3s/?title=" + randomGame;
}
// Duck clicking game
let duckScore = 0;
function duckClick(duck) {
duckScore++;
document.getElementById("duckScore").textContent = duckScore;
document.getElementById("scoreDisplay").style.display = "block";
// Smaller duck animation
duck.style.transform =
"scale(1.3) rotate(" + Math.random() * 360 + "deg)";
setTimeout(() => {
duck.style.transform = "";
}, 250); // Faster animation
// Special effects at milestones
if (duckScore === 10) {
alert("๐ฆ Duck Master! You found the secret duck game!");
} else if (duckScore === 25) {
alert("๐ Duck Legend! The ducks are impressed!");
} else if (duckScore === 50) {
alert("๐ Duck Emperor! You are now ruler of all ducks!");
// Unlock special effect
document.body.style.animation = "rainbow 2s ease-in-out infinite";
}
}
// Click effects removed to prevent navbar interference
// Konami code easter egg
let konamiCode = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65];
let konamiIndex = 0;
document.addEventListener("keydown", function (e) {
if (e.keyCode === konamiCode[konamiIndex]) {
konamiIndex++;
if (konamiIndex === konamiCode.length) {
konamiIndex = 0;
// Activate super duck mode
document.querySelector(".floating-duck").style.animation =
"bounce 0.1s ease-in-out infinite";
alert("๐ SUPER DUCK MODE ACTIVATED! ๐ฆ๐จ");
setTimeout(() => {
document.querySelector(".floating-duck").style.animation =
"bounce 2.5s ease-in-out infinite";
}, 3000); // Shorter duration
}
} else {
konamiIndex = 0;
}
});
// Initialize
document.addEventListener("DOMContentLoaded", function () {
// Add rainbow animation for high scorers
const rainbowCSS = `
@keyframes rainbow {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}
`;
const style = document.createElement("style");
style.textContent = rainbowCSS;
document.head.appendChild(style);
});
// Prevent context menu for a more game-like feel
document.addEventListener("contextmenu", (e) => e.preventDefault());
</script>
</body>
</html>