-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (84 loc) · 3.05 KB
/
index.html
File metadata and controls
92 lines (84 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RetroNet: Your Gateway to Dial-Up Revival</title>
<style>
body {
font-family: "Comic Sans MS", sans-serif;
background-color: #000000;
color: lime;
text-align: center;
margin: 0;
padding: 0;
background-image: url('https://www.publicdomainpictures.net/pictures/320000/velka/stars-in-the-night.jpg');
background-size: cover;
}
h1 {
color: cyan;
text-shadow: 2px 2px purple;
margin-top: 50px;
}
p {
color: yellow;
font-size: 18px;
}
button {
font-size: 20px;
padding: 10px 30px;
background-color: #ff69b4;
color: white;
border: 3px solid purple;
border-radius: 5px;
cursor: pointer;
text-shadow: 1px 1px black;
}
button:hover {
background-color: #ff4500;
}
.status {
color: cyan;
font-size: 24px;
margin-top: 20px;
font-weight: bold;
}
footer {
margin-top: 50px;
color: white;
font-size: 12px;
}
</style>
</head>
<body>
<h1>RetroNet</h1>
<p>Reconnect with the internet like it’s 1999! Relive the glorious *modem symphony* below.</p>
<button id="dialUpButton">Experience Dial-Up Connection</button>
<audio id="dialUpSound" src="your-dial-up-sound-file.mp3" preload="auto"></audio>
<audio id="daDingSound" src="your-da-ding-sound-file.mp3" preload="auto"></audio>
<div class="status" id="statusMessage"></div>
<script>
document.getElementById("dialUpButton").addEventListener("click", function() {
alert("For the full experience, make sure your sound is turned all the way up and you're connected to Wi-Fi!");
const dialUpSound = document.getElementById("dialUpSound");
const statusMessage = document.getElementById("statusMessage");
// Play the dial-up sound first
dialUpSound.play();
// Wait for dial-up sound to finish, then start the random delay
dialUpSound.onended = () => {
statusMessage.textContent = "Please wait, connecting...";
// Generate a random delay between 5 and 10 seconds
const randomDelay = Math.floor(Math.random() * (10000 - 5000 + 1)) + 5000;
setTimeout(() => {
statusMessage.textContent = "Connected!";
const daDingSound = document.getElementById("daDingSound");
daDingSound.play();
}, randomDelay);
};
});
</script>
<footer>
© 2025 RetroNet | <span style="color: cyan;">Proudly Bringing the 90s Back to Life</span>
</footer>
</body>
</html>