-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (170 loc) · 6.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Happy Birthday!!! :)</title>
<link href="https://fonts.googleapis.com/css?family=Work+Sans:300,400" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="img/favicon.png" />
<link rel="stylesheet" href="style/style.css">
<style>
/* Style for the button */
#play-music-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
}
#play-music-button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<!-- Play button for music -->
<button id="play-music-button">Parabens LA</button>
<!-- Hidden audio element for background music -->
<audio id="background-music" src="Songs/happy.mp3" loop style="display: none;"></audio>
<div class="container" style="display: none;">
<div class="one">
<h1 class="one">
<span data-node-name="greeting">Hey</span>
<span data-node-name="name">Lydia</span>
</h1>
<p class="two" data-node-name="greetingText">I really like your name btw!</p>
</div>
<div class="three">
<p data-node-name="text1">It's your birthday!!! :D</p>
</div>
<div class="four">
<div class="text-box">
<p class="hbd-chatbox" data-node-name="textInChatBox">Happy birthday to you!! Yeee! Many many happy blah...</p>
<p class="fake-btn" data-node-name="sendButtonLabel">Send</p>
</div>
</div>
<div class="five">
<p class="idea-1" data-node-name="text2">That's what I was going to do.</p>
<p class="idea-2" data-node-name="text3">But then I stopped.</p>
<p class="idea-3">
<span data-node-name="text4">I realised, I wanted to do something</span>
<strong data-node-name="text4Adjective">special</strong>.</p>
<p class="idea-4" data-node-name="text5Entry">Because,</p>
<p class="idea-5">
<span data-node-name="text5Content">You are Special</span>
<span class="smiley" data-node-name="smiley">:)</span>
</p>
<p class="idea-6">
<span data-node-name="bigTextPart1">S</span>
<span data-node-name="bigTextPart2">O</span>
</p>
</div>
<div class="six">
<img src="img/lydia2.png" alt="" class="lydia-dp" data-node-name="imagePath">
<img src="img/hat.svg" alt="" class="hat">
<div class="wish">
<h3 class="wish-hbd" data-node-name="wishHeading">Happy Birthday!</h3>
<h5 data-node-name="wishText">May the js.prototypes always be with you! ;)</h5>
</div>
</div>
<div class="seven">
<div class="baloons">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon3.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon2.svg" alt="">
<img src="img/ballon1.svg" alt="">
<img src="img/ballon3.svg" alt="">
</div>
</div>
<div class="eight">
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20" />
</svg>
</div>
<div class="nine">
<p data-node-name="outroText">Okay, now come back and tell me if you liked it.</p>
<p id="replay" data-node-name="replayText">Or click, if you want to watch it again.</p>
<p class="last-smile" data-node-name="outroSmiley">:)</p>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script>
// Function to play background music
const playBackgroundMusic = () => {
const music = document.getElementById('background-music');
music.play();
// Show the container after music starts playing
document.querySelector('.container').style.display = 'block';
// Hide the play button
document.getElementById('play-music-button').style.display = 'none';
};
// Add event listener to the play button
const playButton = document.getElementById('play-music-button');
playButton.addEventListener('click', playBackgroundMusic);
</script>
<script type="application/javascript" src="script/main.js"></script>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script type="application/javascript" src="script/main.js"></script>
</html>