-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
163 lines (151 loc) · 5.51 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./style.css" />
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
<!-- Setup theme-color -->
<!-- start theme color meta headers -->
<meta name="theme-color" content="#151515" />
<meta name="msapplication-navbutton-color" content="#151515" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<!-- end theme color meta headers -->
<!-- Setup Google Analytics -->
<!-- You can set your favicon here -->
<!-- link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" -->
<!-- end custom head snippets -->
<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>apezNeon's Repo.</title>
<meta name="generator" content="Jekyll v3.9.3" />
<meta property="og:title" content="Minecraft Repository" />
<meta property="og:locale" content="en_US" />
<meta
name="description"
content="Minecraft addons, resource packs and mods, as well as multiplayer server details are available here."
/>
<meta
property="og:description"
content="Minecraft addons, resource packs and mods, as well as multiplayer server details are available here."
/>
<link rel="canonical" href="https://neonsmp.eu.org/" />
<meta property="og:url" content="https://neonsmp.eu.org/" />
<meta property="og:site_name" content="NeonSMP" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Minecraft Repository" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"description": "Minecraft addons, resource packs and mods, as well as multiplayer server details are available here.",
"headline": "Minecraft Repository",
"name": "NeonSMP",
"url": "https://neonsmp.eu.org/"
}
</script>
<!-- End Jekyll SEO tag -->
</head>
<body>
<header>
<div class="container">
<a id="a-title" href="/">
<h1>@apezNeon's Repo</h1>
</a>
<h2>
Minecraft addons, resource packs and mods, as well as multiplayer
server details are available here.
</h2>
<section id="downloads">
<a
href="minecraft://?addExternalServer=Warsail|play.neonsmp.eu.org:53554"
class="btn btn-github"
><span class="icon"></span>Connect to server...</a
>
</section>
</div>
</header>
<div class="container">
<section id="main_content">
<h1 id="minecraft-repository">neonsmp.eu.org/status</h1>
<ul>
<li>
This is a repository that hosts all my minecraft addons and resource
packs.
</li>
<li>
Files from this repo. are available at :
<a href="https://cdn.jsdelivr.net/gh/gaminglnk/minecraft@master/"
><img
src="https://data.jsdelivr.com/v1/package/gh/gaminglnk/minecraft/badge"
/></a>
</li>
</ul>
<br />
<hr />
<br />
<h2 id="server-details">Server details:</h2>
<p>
Servers are ready to rock! Online timings will be shown up in a while.
Webpage is in early phase, new features will be added shortly.
</p>
<br />
<h3 id="bedrock-server-">Bedrock server :</h3>
<ul>
<li>
IP :
<a
href="minecraft://?addExternalServer=Warsail|play.neonsmp.eu.org:53554"
>play.neonsmp.eu.org</a
>
</li>
<li>Port : 53554</li>
</ul>
<hr />
<h3>The Bedrock server status</h3>
<div id="server-info">
<h2>Loading server status...</h2>
</div>
</section>
</div>
<script>
const serverInfo = document.getElementById("server-info");
fetch("https://api.mcsrvstat.us/bedrock/3/play.neonsmp.eu.org:53554")
.then((response) => response.json())
.then((data) => {
if (data.online) {
const players = data.players.online;
const maxPlayers = data.players.max;
const version = data.version;
const motd = data.motd.html.join("<br>");
const hostname = data.hostname;
const port = data.port;
const gamemode = data.gamemode;
const map = data.map;
serverInfo.innerHTML = `
<h3>Server is online...</h3>
<ul>
<li><strong>Hostname:</strong> ${hostname}</li>
<li><strong>Port:</strong> ${port}</li>
<li><strong>MOTD:</strong> ${motd}</li>
<li><strong>Players online:</strong> ${players}/${maxPlayers}</li>
<li><strong>Version:</strong> ${version}</li>
<li><strong>Game mode:</strong> ${gamemode}</li>
<li><strong>World Name:</strong> ${map}</li>
</ul>
`;
} else {
serverInfo.innerHTML = "<h3>Server is offline...</h3>";
}
})
.catch((error) => {
serverInfo.innerHTML = "<p>Error fetching server status</p>";
console.error(error);
});
</script>
</body>
</html>