-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheaster.html
More file actions
32 lines (28 loc) · 1.08 KB
/
easter.html
File metadata and controls
32 lines (28 loc) · 1.08 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
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="easter.css">
<head>
<meta charset="UTF-8">
<title>Easter Celebration</title>
</head>
<body>
<h1>Happy Easter! 🐣</h1>
<p>Find the hidden Easter eggs on this page!</p>
<div class="egg" onclick="alert('You found a chocolate egg! 🍫')"></div>
<div class="egg" onclick="document.getElementById('secretBunny').style.display='block'"></div>
<div class="egg" onclick="this.style.background='rainbow'"></div>
<div class="egg"</div>
<p class="hidden-basket">🕯 Secret Easter Basket Found! 🕯</p>
<div id="secretBunny">🐰</div>
<script>
// Easter egg: Konami code reveals rainbow background
let keys = [];
document.addEventListener('keydown', (e) => {
keys.push(e.key);
if (keys.join(',').includes('ArrowUp,ArrowUp,T,T,ArrowUp,ArrowUp,ArrowLeft,ArrowRight,S,R,R')) {
document.body.style.background = 'linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet)';
}
});
</script>
</body>
</html>