-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
197 lines (171 loc) · 5.83 KB
/
Copy pathindex.html
File metadata and controls
197 lines (171 loc) · 5.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MISSION: BIRTHDAY PROTOCOL</title>
<style>
body {
margin: 0;
overflow: hidden;
background: black;
font-family: 'Courier New', Courier, monospace;
color: white;
text-align: center;
}
/* 1. THE MOVING STAR BACKGROUND */
canvas {
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
/* 2. THE SCROLLING TOP BANNER */
.marquee-container {
width: 100%;
background: #ff0000; /* Bright Red */
color: black;
padding: 10px 0;
position: absolute;
top: 0;
left: 0;
font-weight: bold;
font-size: 20px;
overflow: hidden;
white-space: nowrap;
border-bottom: 2px solid white;
}
.marquee-text {
display: inline-block;
animation: scroll-left 10s linear infinite;
}
@keyframes scroll-left {
from { transform: translateX(100%); }
to { transform: translateX(-100%); }
}
/* 3. THE MAIN BOX */
#mission-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 20, 0, 0.8);
border: 4px solid #00ff00;
padding: 40px;
width: 60%;
box-shadow: 0 0 30px #00ff00;
}
h1 {
font-size: 40px;
text-shadow: 0 0 10px #00ff00;
margin-bottom: 10px;
}
p {
font-size: 18px;
line-height: 1.5;
}
/* 4. THE COOL BUTTON */
button {
background: black;
color: #00ff00;
border: 2px solid #00ff00;
padding: 20px 40px;
font-size: 24px;
font-family: 'Courier New', monospace;
cursor: pointer;
transition: 0.3s;
margin-top: 20px;
font-weight: bold;
}
button:hover {
background: #00ff00;
color: black;
box-shadow: 0 0 20px #00ff00;
}
/* 5. THE HIDDEN CLUE */
#clue-area {
display: none; /* Hidden at first */
margin-top: 30px;
border-top: 2px dashed #00ff00;
padding-top: 20px;
}
.clue-text {
color: #00ffff; /* Cyan color */
font-size: 22px;
font-weight: bold;
}
</style>
</head>
<body>
<canvas id="starfield"></canvas>
<div class="marquee-container">
<div class="marquee-text">
⚠ URGENT MESSAGE: AGENTS ASHOK AND VICHI REQUIRED // PRIORITY LEVEL: MAXIMUM // HAPPY BIRTHDAY // ⚠
</div>
</div>
<div id="mission-box">
<h1>TOP SECRET MISSION</h1>
<p>AGENTS DETECTED: <strong>ASHOK(v46)</strong> & <strong>VICHI(v16)</strong></p>
<p>Your combined mission, should you choose to accept it, begins now.</p>
<button onclick="revealClue(this)">[ ACCEPT MISSION ]</button>
<div id="clue-area">
<h2>MISSION TARGET #1</h2>
<p class="clue-text" id="typewriter-text"></p>
</div>
</div>
<script>
// --- PART 1: THE STARFIELD ANIMATION ---
const canvas = document.getElementById("starfield");
const ctx = canvas.getContext("2d");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let stars = [];
for(let i=0; i<200; i++) {
stars.push({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
z: Math.random() * canvas.width
});
}
function moveStars() {
ctx.fillStyle = "black";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "white";
for(let i=0; i<stars.length; i++) {
let star = stars[i];
star.z -= 5; // Speed of stars
if(star.z <= 0) {
star.x = Math.random() * canvas.width;
star.y = Math.random() * canvas.height;
star.z = canvas.width;
}
let x = (star.x - canvas.width/2) * (canvas.width/star.z) + canvas.width/2;
let y = (star.y - canvas.height/2) * (canvas.width/star.z) + canvas.height/2;
let size = (canvas.width/star.z); // Stars get bigger as they get close
ctx.beginPath();
ctx.arc(x, y, size, 0, Math.PI*2);
ctx.fill();
}
requestAnimationFrame(moveStars);
}
moveStars();
// --- PART 2: THE CLUE REVEAL ---
function revealClue(btn) {
btn.style.display = "none"; // Hide button
document.getElementById("clue-area").style.display = "block";
// The Clue Text (Typewriter Effect)
// EDIT YOUR CLUE HERE IF NEEDED:
const text = "ERROR: TEXT FILE CORRUPTED. DISPLAYING RAW BINARY: \n\n 01010111 01100001 01110011 01101000 01101001 01101110 01100111 00100000 01001101 01100001 01100011 01101000 01101001 01101110 01100101";
let i = 0;
function typeWriter() {
if (i < text.length) {
document.getElementById("typewriter-text").innerHTML += text.charAt(i);
i++;
setTimeout(typeWriter, 50); // Speed of typing
}
}
typeWriter();
}
</script>
</body>
</html>