-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
413 lines (327 loc) · 8.83 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="google-site-verification" content="gtwGkSlEJJgiqtoo7UPUYf0o2ctVOG-DLar57QPgHYM" /><meta name="google-site-verification" content="gtwGkSlEJJgiqtoo7UPUYf0o2ctVOG-DLar57QPgHYM" />
<meta name="keywords" content="birthday wishes, birthday wishes for friends, birthday wishes for sister, birthday wishes for brother, birthday wishes for relatives, birthday wishes for aunt, birthday wishes for uncle, birthday wishes for lover, birthday wishes for kids, birthday wishes for daughter, birthday wishes for son, birthday wishes for for husband, birthday wishes for wife, wishing page, Birthday wish, Exkave birthday project, Exkave github, Exkave git repository for birthday wish, Exkave birthday project" >
<meta name="description" content="Are u looking for a wish page to present to ur relatives/birthday boys or girls? Here we are with a beautiful birthday website for u.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="A special day for U and Me" />
<meta property="og:description" content="A gift to my dear. Please click the below link to watch." />
<title>Birthday Wish</title>
<link rel="stylesheet" href="balloon.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/css">
*,html{
margin:0;
padding:0;
}
body{
min-height:100vh;
height:100%;
background-image:linear-gradient(red, transparent),
linear-gradient(to top left, lime, transparent),
linear-gradient(to top right, blue, transparent);
background-blend-mode: screen;;
background-repeat:no-repeat;
background-position:fixed;
overflow:hidden !important;
overflow-wrap:wrap;
}
.container{
position:absolute;
height:400px;
width:250px;
perspective: 1000px;
left:50%;
top:50%;
transform:translate(-50%,-50%);
z-index:1;
}
.container::before{
content:'';
position:absolute;
height:200px;
width:200px;
border-radius:50%;
background: rgb(131,58,180);
background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(255,84,161,1) 50%, rgba(252,176,69,1) 100%);;
transform:translate(-20%,-50%);
z-index:-5;
}
.container::after{
content:'';
position:absolute;
height:200px;
width:200px;
border-radius:50%;
background:rgb(131,58,180);
background:linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(255,84,161,1) 50%, rgba(252,176,69,1) 100%);;
transform:translate(50%,-30%) rotateY(180deg);
z-index:-1;
}
.cFront , .cBack{
position:absolute;
height:400px;
width:250px;
background:rgba(255,255,255,0.1);
-webkit-backface-visibility: hidden;
backface-visibility:none;
border-radius:5px;
backdrop-filter:blur(5px);
}
.cFront .fullImg{
position:absolute;
left:0;
top:0;
height:100%;
width:100%;
border-radius:5px;
pointer-events:none;
}
.cake{
height:100px;
width:100px;
position:absolute;
bottom:0;
animation:fadein 2s linear;
}
img{
pointer-events:none;
}
.cBack{
transform:rotateY(180deg);
display:flex;
align-items:center;
padding:3px;
font-size:25px;
font-weight:500;
font-family: 'Lobster', cursive;
}
.cInner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
.cInner:hover{
transform: rotateY(180deg);
}
.fadein{
animation:fadein 2s linear;
}
@keyframes fadein{
from{
opacity:0;
}
to{
opacity:1;
}
}
@keyframes fadeout{
from{opacity:1;}
to{opacity:0;}
}
.zoomin{
display:block;
}
@keyframes zoomin{
0%{
opacity:0.1;
transform:scale(1.5,1.5);
}
50%{
opacity:0.2;
}
100%{
opacity:1;
transform:scale(1,1);
}
}
.speaker {
text-align:right;
}
.btn{
position:absolute;
bottom:15px;
left:50%;
transform:translateX(-50%);
background:#0066ff;
padding:15px 20px;
font-size:20px;
border-radius:5px;
outline:none;
z-index:5;
border:none;
transition-duration: 0.4s;
}
.btn:hover{
border:3px solid #008CBA;
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.clickHeart{
position:absolute;
color:yellow;
font-size:25px;
animation:zoomout 2s linear;
z-index:50;
}
@keyframes zoomout{
to{
opacity:0;
transform:scale(2,2);
}
}
#whatsapp-button {
position: fixed;
bottom: 20px; /* Distance from the bottom of the page */
right: 20px; /* Distance from the right of the page */
background-color: #25D366; /* WhatsApp green background */
color: white; /* Icon color */
border: none;
border-radius: 50%;
padding: 15px;
font-size: 18px; /* Icon size */
cursor: pointer;
z-index: 1000; /* Ensure it stays on top of other content */
}
#whatsapp-button:hover {
background-color: #128C7E; /* Darker green on hover */
}
#whatsapp-button i {
margin-right: 5px; /* Space between icon and text */
}
</style>
</head>
<body>
<audio class="birthSong" src="birthday.mp3" type="audio/mpeg"></audio>
<div class="container">
<div class="cInner" >
<div class="cFront">
<img src="./images/bdb.jpg" alt="Prarik Khuntia" class="fullImg">
<img src="./images/border.png" class="inAnim abcd fullImg" effect="zoomin" delay="1" duration="0.9">
</div>
<div class="cBack">
<div>
May you receive the greatest of joys and everlasting bliss. You are a gift yourself, and you deserve the best of everything. Happy birthday.
<p class="speaker"></p>
</div>
</div>
</div>
</div>
<div class="abCon">
</div>
<button class="inAnim abcd btn" effect="fadein" delay="3" duration="0.9"
>A Gift 4 U</button>
<!-- WhatsApp Share Button -->
<button id="whatsapp-button">
<i class="fa fa-whatsapp"></i>
</button>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script type="text/javascript">
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
let name=urlParams.get('name');
let from=urlParams.get('from')
let colors=['#F7CAC9','yellow','aqua','#c143de','#dbc6a2']
// Birthday Balloons
if(name===null){
name="bdFellow";
}
let nameArr=name.split('');
// console.log(nameArr)
function flyBalloons(){
nameArr.forEach((nameChar,index)=>{
let ballonContainer=document.querySelector('.abCon')
let color=index%colors.length;
let ballonCode=`
<div class="bCon">
<div class="balloon"
style="--balloonColor:${colors[color]};"
>${nameChar}</div>
</div>
`
if(nameChar===" "){
ballonCode=`
<div class="bCon">
<div class="balloon"
style="--balloonColor:${colors[color]};opacity:0;"
></div>
</div>
`
}
ballonContainer.insertAdjacentHTML("beforeend",ballonCode)
})
}
// From
if(from===null){
from='Swabhiman'
}
document.querySelector(".speaker").innerHTML=`-${from}`
</script>
<script type="text/javascript">
let objs=document.querySelectorAll(".inAnim")
const body=document.querySelector('body')
objs.forEach((obj)=>{
obj.style.display="none"
let delay=obj.getAttribute("delay")
let duration=obj.getAttribute("duration")
let effect=obj.getAttribute("effect")
setTimeout(function(){
obj.classList.remove("inAnim")
obj.classList.add(effect)
obj.style=`
animation:${effect} ${duration}s linear;
`
},delay*1000)
})
function song(){
document.querySelector(".birthSong").play();
}
let bCons=document.querySelectorAll(".bCon")
let btn=document.querySelector(".btn")
btn.addEventListener("click",()=>{
song();
flyBalloons();
let cFront=document.querySelector(".cFront")
cFront.insertAdjacentHTML("beforeend",`<img class="cake" src=./images/cake.png>`);
btn.style=`animation:fadeout 3.4s linear;
`
setTimeout(function(){
btn.remove()
},3000)
})
window.addEventListener("click",(e)=>{
var coX=e.clientX;
var coY=e.clientY;
//console.log(coX)
let heart=`<i class="fa fa-heart clickHeart" style="left:${coX}px;top:${coY}px"></i>`
body.insertAdjacentHTML('afterbegin',heart)
var heartTags=document.querySelectorAll(".clickHeart")
heartTags.forEach((heartTag)=>{
setTimeout(function(){
heartTag.remove()
},2000)
}
)
})
</script>
<script>
document.getElementById('whatsapp-button').addEventListener('click', function() {
// Define the message and URL
const currentUrl = window.location.href;
const message = 'Check out this page:'+currentUrl;
// Encode the message for URL
const encodedMessage = encodeURIComponent(message);
// Construct the WhatsApp share URL
const whatsappURL = `https://api.whatsapp.com/send?text=${encodedMessage}`;
// Open the WhatsApp URL in a new window/tab
window.open(whatsappURL);
});
</script>
</html>