-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
283 lines (246 loc) · 10.6 KB
/
Copy pathindex.html
File metadata and controls
283 lines (246 loc) · 10.6 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
<!DOCTYPE HTML>
<html>
<head>
<meta name="title" content="">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style type="text/css">
@font-face {
font-family: digit;
src: url('digital.ttf') format("truetype");
}
</style>
<link href="css/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/garden.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script src="https://kit.fontawesome.com/2e95d79f91.js" crossorigin="anonymous"></script>
<title>Hapyy Birthday Pumpkin</title>
</head>
<body>
<div id="mainDiv">
<div id="content">
<div id="code">
<span class="comments">// <a href="https://www.instagram.com/b2_gpt/"> BIRTHDAY EDITION v1.0</a></span><br>
<span class="comments">// Compiled with Friendship</span><br><br>
const us = {<br>
<span class="placeholder"></span>her: <span class="string"><a href="https://www.instagram.com/b2_gpt/" class="string">"Pumpkin"</a></span>,<br>
<span class="placeholder"></span>me: <span class="string"><a href="https://www.instagram.com/b2_gpt/" class="string">"Bittu Gupta"</a></span>,<br>
<span class="placeholder"></span>status: <span class="keyword">"TogetherForever"</span><br>
};<br><br>
<span class="comments">// System Configuration</span><br>
her.birthday = {<br>
<span class="placeholder"></span><a href="https://www.instagram.com/b2_gpt/" class="string">date: 17, 01, 2002,</a><br>
<span class="placeholder"></span>happinessLevel: MAX_INT<br>
};<br><br>
<span class="comments">// Core Functions</span><br>
function <a href="https://www.instagram.com/b2_gpt/" class="string">celebrate()</a> {<br>
<span class="placeholder"></span>while(true) {<br>
<span class="placeholder"></span><span class="placeholder"></span>sendLove();<br>
<span class="placeholder"></span><span class="placeholder"></span><a href="https://www.instagram.com/b2_gpt/" class="string">createMemories();</a><br>
<span class="placeholder"></span>}<br>
}<br><br>
<span class="comments">// Execute</span><br>
try {<br>
<span class="placeholder"></span>celebrate();<br>
} catch(myHeart) {<br>
<span class="placeholder"></span>console.<a href="https://www.instagram.com/b2_gpt/" class="string">error("Impossible</a> to stop loving you as a Dude");<br>
}<br><br>
<span class="comments oclr">/* OUTPUT: <br>
* <a href="https://www.instagram.com/b2_gpt/">You're amazing</a><br>
* <a href="https://www.instagram.com/b2_gpt/">Best Dude 4ever</a><br>
* <a href="https://www.instagram.com/b2_gpt/">Happy Birthday! 🎂🎉</a><br>
*/</span>
</div>
<div id="loveHeart">
<canvas id="garden"></canvas>
<div id="words">
<div id="messages" class="clr">
<div ><a href="https://www.instagram.com/b2_gpt/" class="clr">B'day beautiful gurl</a> <i class="fa-regular fa-heart"></i></div>
<div id="elapseClock"></div>
</div>
<div id="loveu">
<div class="msgbox">
<div class="box box1">
<p class="clr">So glad to be one of the ppl <a href="https://www.instagram.com/b2_gpt/" class="clr"> who gets to say this to u! Love u as a dude</a> always forever and ever!!</p>
</div>
<div class="box box2">
<p>Happy Birthday <i class="fa-regular fa-heart"></i></p>
</div>
<div class="box box3 clr">
<p> - <a href="https://www.instagram.com/b2_gpt/" class="clr">B2GPT</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="copyright">
IG Creator - <a href='https://www.instagram.com/b2_gpt/'>@b2_gpt</a>
</div>
</div>
<canvas id="fireworks"></canvas>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
together.setFullYear(2002, 01, 17);
together.setHours(15);
together.setMinutes(0);
together.setSeconds(0);
together.setMilliseconds(0);
if (!document.createElement('canvas').getContext) {
var msg = document.createElement("div");
msg.id = "errorMsg";
msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
document.body.appendChild(msg);
$("#code").css("display", "none")
$("#copyright").css("position", "absolute");
$("#copyright").css("bottom", "10px");
document.execCommand("stop");
} else {
setTimeout(function () {
startHeartAnimation();
}, 5000);
timeElapse(together);
setInterval(function () {
timeElapse(together);
}, 500);
adjustCodePosition();
$("#code").typewriter();
}
const canvas = document.getElementById('fireworks');
const ctx = canvas.getContext('2d');
// Set canvas to full screen
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
window.addEventListener('resize', resizeCanvas);
resizeCanvas();
// Firework class
class Firework {
constructor() {
this.x = Math.random() * canvas.width; // Random X position
this.y = canvas.height;
this.radius = 3;
this.velocity = {
x: (Math.random() - 0.5) * 2,
y: -(Math.random() * 5 + 12) // Faster initial velocity
};
this.alpha = 1;
this.color = `hsl(${Math.random() * 360}, 100%, 70%)`;
this.particles = [];
this.exploded = false;
}
update() {
if (!this.exploded) {
this.velocity.y += 0.1; // Stronger gravity
this.x += this.velocity.x;
this.y += this.velocity.y;
// Random early explosion
if (this.y < canvas.height * 0.25 + Math.random() * 100) {
this.explode();
}
}
// Update particles
this.particles.forEach((particle, index) => {
if (particle.alpha <= 0) {
this.particles.splice(index, 1);
} else {
particle.update();
}
});
this.alpha -= 0.01; // Faster fade-out
}
explode() {
this.exploded = true;
const baseHue = Math.random() * 360;
const particleCount = 150 + Math.random() * 50;
// Create explosion particles
for (let i = 0; i < particleCount; i++) {
const angle = (Math.PI * 2) * (i / particleCount);
const speed = Math.random() * 5 + 2;
this.particles.push(new Particle(
this.x,
this.y,
`hsla(${baseHue + (Math.random() * 20 - 10)}, 100%, 70%, 0.8)`,
{
x: Math.cos(angle) * speed + (Math.random() - 0.5),
y: Math.sin(angle) * speed + (Math.random() - 0.5)
}
));
}
// Add bright core flash
this.particles.push(new Particle(this.x, this.y, 'white', { x: 0, y: 0 }, 8, 0.5));
}
draw() {
if (!this.exploded) {
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
ctx.fillStyle = this.color;
ctx.fill();
}
this.particles.forEach(particle => particle.draw());
}
}
// Particle class
class Particle {
constructor(x, y, color, velocity, size = Math.random() * 3 + 1, gravity = 0.1) {
this.x = x;
this.y = y;
this.size = size;
this.velocity = velocity;
this.color = color;
this.alpha = 1;
this.gravity = gravity;
this.resistance = 0.98;
this.fade = Math.random() * 0.02 + 0.01;
}
update() {
this.velocity.x *= this.resistance;
this.velocity.y *= this.resistance;
this.velocity.y += this.gravity;
this.x += this.velocity.x;
this.y += this.velocity.y;
this.alpha -= this.fade;
this.size *= 0.97;
}
draw() {
ctx.save();
ctx.globalAlpha = this.alpha;
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
ctx.fillStyle = this.color;
ctx.fill();
ctx.restore();
}
}
// Fireworks array
const fireworks = [];
// Function to launch a firework at random intervals
function launchRandomFirework() {
fireworks.push(new Firework());
// Schedule the next firework at a random time (between 0.5s and 2s)
setTimeout(launchRandomFirework, Math.random() * 1500 + 500);
}
// Start launching fireworks
launchRandomFirework();
// Animation loop
function animate() {
// ctx.fillStyle = 'rgba(0, 0, 0, 0.08)'; // Smoother trails
ctx.clearRect(0, 0, canvas.width, canvas.height);
fireworks.forEach((firework, index) => {
firework.update();
firework.draw();
if (firework.alpha <= 0) {
fireworks.splice(index, 1);
}
});
requestAnimationFrame(animate);
}
// Start animation
animate();
</script>
</body>
</html>