forked from macarie/fortnite-item-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fortnite Item Shop of the day - FNShop</title>
<link rel="modulepreload" href="/src/main.tsx">
<link rel="stylesheet" href="/src/main.scss">
</head>
<body>
<header style="text-align: center; padding: 1em 0;">
<img src="/src/styles/logo.png" alt="FNShop logo">
</header>
<main class="shop"></main>
<script type="module" src="/src/main.tsx"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
Notification.requestPermission().then(permission => {
if (permission === 'granted') {
const options = {
body: 'The new Fortnite Item Shop of the day is available on our website!',
};
const now = new Date();
const utcMidnight = new Date(
Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() + 1)
);
const timeUntilMidnight = utcMidnight - now;
setTimeout(() => {
new Notification('FNShop', options);
}, timeUntilMidnight);
}
});
});
</script>
<footer style="background-color: white; padding: 1em;">
<div style="display: flex; justify-content: space-between;">
<span style="font-size: larger;">2023 © FNShop</span>
<a href="https://github.com/flopinou/fortnite-item-shop-website/releases/latest" style="font-size: larger;">BETA 1.0.1 Version</a>
</div>
<div style="margin-top: 1em;">We are not affiliated with Epic Games, our content is not official or endorsed by Epic Games in any way.</div>
</footer>
</body>
</html>