Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (76 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
77 lines (76 loc) · 3.34 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FREESERVER WebMap Portal</title>
<link rel="stylesheet" href="/style.css">
<script type="text/javascript">
window.addEventListener('load', async () => {
const date = new Date();
if (date.getMonth() === 3 && date.getDate() === 1) {
const bluemap = document.querySelector('.bluemap');
bluemap.querySelector('img').src = 'https://cdn.discordapp.com/icons/665868367416131594/a_c7557a320f4103101dabdd96cac9bf49.gif?size=256';
bluemap.querySelector('h2 a').textContent = 'RedMap';
bluemap.style.backgroundColor = '#96000034'
}
const { urls } = await (await fetch("//api.freeserver.pro/discord/images")).json();
const n = Math.floor(Math.random() * urls.length);
const elm = document.querySelector('body');
elm.style.backgroundImage = `url(${urls[n]})`;
});
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-C16XZXQJ2K"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-C16XZXQJ2K');
</script>
</head>
<body>
<div class="container">
<header class="logos">
<img src="/assets/img/logo.webp"
alt="" class="logo">
<span>FREESERVER</span>
</header>
<h2>WebMap Portal</h2>
<div class="links">
<div class="link-card pl3x">
<div class="logo-container">
<img src="/assets/img/pl3x.webp" alt="">
</div>
<h2><a href="//pl3x.freeserver.pro/">Pl3xMap</a></h2>
<div class="description">
2DのWebMapです
</div>
</div>
<div class="link-card freeserver">
<div class="logo-container">
<img src="/assets/img/logo.webp" alt="">
</div>
<h2><a href="//freeserver.pro/">FREESERVER HP</a></h2>
<div class="description">
FREESERVER公式ホームページです
</div>
</div>
<div class="link-card bluemap">
<div class="logo-container">
<img src="/assets/img/bluemap.webp" alt="">
</div>
<h2><a href="//bluemap.freeserver.pro/">BlueMap</a></h2>
<div class="description">
新手のWebMapで自由度の高い <br>
3D表示ができます
</div>
</div>
</div>
</div>
<small class="copyright">
© 2017 FREESERVER Project<br>
<a href="https://freeserver.pro/privacy-policy/" target="_blank">Privacy Policy</a>
</small>
</body>
</html>