Added server status retrieval and implemented it on UI.

The player count on the landing page is now functional. If the server cannot be reached, the label and value will change to SERVER and OFFLINE, respectively. This behavior can be modified.
This commit is contained in:
Daniel Scalzi
2018-04-15 22:35:14 -04:00
parent 8446af4669
commit 714daace18
5 changed files with 99 additions and 4 deletions

View File

@@ -102,7 +102,7 @@
<div id="left">
<div class="bot_wrapper">
<div id="content">
<span class="bot_label">PLAYERS</span>
<span class="bot_label" id="landingPlayerLabel">PLAYERS</span>
<span id="player_count">18/100</span>
<div class="bot_divider"></div>
<span class="bot_label">MOJANG STATUS</span>