-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3ds.html
66 lines (59 loc) · 2.32 KB
/
3ds.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nintendo 3DS End of Life</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
}
.countdown-container {
margin-top: 50px;
}
.countdown {
font-size: 2em;
margin-bottom: 20px;
}
</style>
</head>
<body>
<h1>Nintendo 3DS End of Life</h1>
<h2>Now is the time of <a href="https://3ds.hacks.guide">homebrewing your 3DS</a></h2>
<div class="countdown-container">
<h2>End of official online servers:</h2>
<div class="countdown" id="countdown1"></div>
<h2>Want to use online servers after official ones are gone? Check out <a href="https://pretendo.network">Pretendo</a></h2>
</div>
<div class="countdown-container">
<h2>End of transfering funds to Nintendo Switch:</h2>
<div class="countdown" id="countdown2"></div>
</div>
<script>
// Countdown for April 8, 2024, 4:00 PM PDT
const countDownDate1 = new Date("April 8, 2024 16:00:00 PDT").getTime();
// Countdown for March 11, 2024, 10:00 PM Pacific Time
const countDownDate2 = new Date("March 11, 2024 22:00:00 GMT-0700").getTime();
function updateCountdown(countDownDate, countdownElement, message) {
const x = setInterval(function() {
const now = new Date().getTime();
const distance = countDownDate - now;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
if (distance > 0) {
countdownElement.innerHTML = `${days}d ${hours}h ${minutes}m ${seconds}s`;
} else {
clearInterval(x);
countdownElement.innerHTML = message;
}
}, 1000);
}
updateCountdown(countDownDate1, document.getElementById("countdown1"), "REST IN PEACE OFFICIAL ONLINE SERVERS, IT'S TIME TO SWITCH TO PRETENDO.");
updateCountdown(countDownDate2, document.getElementById("countdown2"), "YOU CAN NO LONGER TRANSFER FUNDS TO NINTENDO SWITCH.");
</script>
<audio src="cdn/nolifeforever.mp3" autoplay loop></audio>
</body>
</html>