Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (137 loc) Β· 4.44 KB
/
Copy pathindex.html
File metadata and controls
160 lines (137 loc) Β· 4.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>For Vineetha π</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap" rel="stylesheet">
<style>
body{
margin:0;
font-family:'Poppins',sans-serif;
background:linear-gradient(135deg,#ffd6ec,#e6ccff);
color:#5a4a6b;
overflow:hidden;
}
.slide{
display:none;
height:100vh;
padding:30px;
text-align:center;
justify-content:center;
align-items:center;
flex-direction:column;
}
.active{ display:flex; animation:fade 1s ease; }
@keyframes fade{ from{opacity:0} to{opacity:1} }
h1{
font-weight:500;
max-width:900px;
line-height:1.6;
}
button{
padding:12px 25px;
border:none;
border-radius:25px;
margin:10px;
font-size:1rem;
cursor:pointer;
}
.yes{ background:#ff9ecb; color:white; }
.no{ background:#bda0ff; color:white; }
.sticker{
position:absolute;
font-size:24px;
animation:float 8s linear infinite;
opacity:0.8;
}
@keyframes float{
from{ transform:translateY(100vh); }
to{ transform:translateY(-10vh); }
}
</style>
</head>
<body>
<!-- Hidden YouTube music -->
<iframe width="0" height="0" src="https://www.youtube.com/embed/9xG5aPvrS-k?autoplay=1&loop=1&playlist=9xG5aPvrS-k" frameborder="0" allow="autoplay"></iframe>
<div class="slide active" id="s1"><h1 id="t1"></h1></div>
<div class="slide" id="s2"><h1 id="t2"></h1></div>
<div class="slide" id="s3"><h1 id="t3"></h1></div>
<div class="slide" id="s4">
<h1>vinnamma, will you marry me and be my wife forever? π</h1>
<button class="yes" onclick="yesFlow()">Yes</button>
<button class="no" id="noBtn">No</button>
</div>
<div class="slide" id="s5"><h1 id="t5"></h1></div>
<div class="slide" id="s6"><h1 id="t6"></h1></div>
<div class="slide" id="s7"><h1 id="t7"></h1></div>
<div class="slide" id="s8"><h1 id="t8"></h1></div>
<div class="slide" id="s9"><h1 id="t9"></h1></div>
<div class="slide" id="s10"><h1 id="t10"></h1></div>
<script>
let current=1;
function show(n){
document.getElementById("s"+current).classList.remove("active");
current=n;
document.getElementById("s"+current).classList.add("active");
}
function typeText(id, text, speed=60, callback){
let i=0;
const el=document.getElementById(id);
el.innerHTML="";
const interval=setInterval(()=>{
el.innerHTML+=text[i];
i++;
if(i>=text.length){
clearInterval(interval);
if(callback) setTimeout(callback,1200);
}
},speed);
}
window.onload=()=>{
typeText("t1","Hi vineetha bangarammm π",60,()=>{
show(2);
typeText("t2","Itβs been 3 beautiful months since weβve been together, and every moment felt magical β¨",60,()=>{
show(3);
typeText("t3","I just wanted to say how lucky I am to have you in my life π₯Ί",60,()=>{
setTimeout(()=>show(4),1500);
});
});
});
}
function yesFlow(){
show(5);
typeText("t5","I knew you would accept :)) π",60,()=>{
show(6);
typeText("t6","I love youuu soooo much vinnamma π",60,()=>{
show(7);
typeText("t7","Happy 3 month anniversary π",60,()=>{
show(8);
typeText("t8","Happy Valentineβs Day in advance πΈ",60,()=>{
show(9);
typeText("t9","Saharsh is going to love you forever till his last breath β€οΈ",60,()=>{
show(10);
typeText("t10","End credits to Saharsh who coded this with difficulty ππ»",60);
});
});
});
});
});
}
const noBtn=document.getElementById("noBtn");
const texts=["Are you sure? π₯Ί","Think again π","Wrong choice π","Try Yes π","You misclicked","Be nice pls","Pink looks better","You know the answer π","Almost there","Press Yes naaa"];
noBtn.addEventListener("click",()=>{
noBtn.innerText=texts[Math.floor(Math.random()*texts.length)];
setTimeout(()=>{ noBtn.innerText="No"; },1200);
});
setInterval(()=>{
const s=document.createElement("div");
s.className="sticker";
s.innerHTML=["π","πΈ","β¨","π","π¦"][Math.floor(Math.random()*5)];
s.style.left=Math.random()*100+"vw";
document.body.appendChild(s);
setTimeout(()=>s.remove(),8000);
},500);
</script>
</body>
</html>