mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 08:15:14 +00:00
Fixes #20
This commit is contained in:
parent
50d3eb9996
commit
d8eac5e363
2 changed files with 3 additions and 2 deletions
|
@ -58,11 +58,11 @@
|
|||
</nav>
|
||||
</div>
|
||||
<div class="section active cover-1" id="header">
|
||||
<h3 id="status"> <span id="online" ></span></h3>
|
||||
<h3 id="server-status"> <span id="online" ></span></h3>
|
||||
<a href="#onlineplayers" class="button modal-trigger" data-target="onlineplayers">Online Players</a>
|
||||
<div id="onlineplayers" class="modal modal-fixed-footer">
|
||||
<div class="modal-content">
|
||||
<h4>Online Players</h4>
|
||||
<h4 id="players-online"></h5>
|
||||
<ul id="players"></ul>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
|
|
@ -15,6 +15,7 @@ $(document).ready(function() {
|
|||
$(".button").hide();
|
||||
} else {
|
||||
$("#online").html('TotalFreedom has <font color="green">' + json.players.online + '/' + json.players.max + '</font> players online!');
|
||||
$("#players-online").html(json.players.online + ' online players!');
|
||||
$('.button').show();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue