-
Notifications
You must be signed in to change notification settings - Fork 1
/
page2.html
46 lines (40 loc) · 1.58 KB
/
page2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hidden Details</title>
<link rel="stylesheet" href="./styles_page2.css">
</head>
<body>
<div class="container">
<div class="envelope-wrapper">
<div class="envelope">
<div class="letter">
<div class="text">
<strong>Dear Puru 💝 </strong>
<p>
Ani's Sweetheart
<p> The life is colourful, joyful, filled with happiness, when I have "my little girl" with me.
You're an addiction of this addict. Be on the epitome of every addiction of all drugs.
</p>
</div>
</div>
</div>
<div class="sweetheart"></div>
</div>
</div>
<script>
const envelope = document.querySelector('.envelope-wrapper');
// Function to toggle the class 'flap' when the envelope is clicked
envelope.addEventListener('click', () => {
envelope.classList.toggle('flap');
});
// Function to change the page after 10 seconds
setTimeout(() => {
window.location.href = 'page3.html'; // Replace 'newPage.html' with the URL of the desired page
}, 15000); // 10000 milliseconds = 10 seconds
</script>
</body>
</html>