-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
62 lines (58 loc) · 2.2 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
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title id="introduce" data-i18n="[html]pages.title">XFun Minecraft 服务器</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next/23.2.1/i18next.min.js"></script>
<script src="./js/loc-i18next.min.js"></script>
<script src="./js/i18nextXHRBackend.min.js"></script>
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="shortcut icon" href="./img/favicon.ico">
</head>
<body>
<div class="container">
<p id="introduce" data-i18n="[html]pages.sortinfo">一个Minecraft服务器</p>
<h1>XFun</h1>
<p style="text-indent:2em;line-height:30px" id="introduce" data-i18n="[html]pages.introduce">
2019 年,我们建立了XFun并开始托管 Bedrock 服务器。 虽然基岩版于 2022 年 10 月结束,但我们可能会在未来重新访问它。 但是,目前我们还没有关闭它。 相反,我们通过启动 Java
版服务器开启了新的篇章,该服务器一直运行至今。
</p>
<div class="button-container">
<a href="https://github.com/quizhizhe/XFunServerWeb" class="button">Github</a>
<a href="https://map.xfun.world" class="button" data-i18n="[html]pages.map">卫星地图</a>
<a href="https://jq.qq.com/?_wv=1027&k=aYeFSHOr" class="button" data-i18n="[html]pages.qq">Q群:758627500</a>
</div>
</div>
<!-- i18next -->
<script>
var lang = window.navigator.language;
if (!lang.startsWith("zh")) {
lang = 'en-US';
}
i18next
.use(i18nextXHRBackend)
.init({
lng: lang,
fallbackLng: 'zh-CN',
backend: {
loadPath: "./assets/translation-{{lng}}.json"
}
}, function (err, t) {
if (lang == 'en-US') {
localize = locI18next.init(i18next);
localize('#introduce');
localize('.button');
}
});
</script>
<!-- random images -->
<script>
var bgImages = [
"url('./img/xfun-01.webp')",
"url('./img/xfun-02.webp')"
];
var randomIndex = Math.floor(Math.random() * bgImages.length);
document.body.style.backgroundImage = bgImages[randomIndex];
</script>
</body>
</html>