mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 16:25:12 +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>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="section active cover-1" id="header">
|
<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>
|
<a href="#onlineplayers" class="button modal-trigger" data-target="onlineplayers">Online Players</a>
|
||||||
<div id="onlineplayers" class="modal modal-fixed-footer">
|
<div id="onlineplayers" class="modal modal-fixed-footer">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<h4>Online Players</h4>
|
<h4 id="players-online"></h5>
|
||||||
<ul id="players"></ul>
|
<ul id="players"></ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
|
@ -15,6 +15,7 @@ $(document).ready(function() {
|
||||||
$(".button").hide();
|
$(".button").hide();
|
||||||
} else {
|
} else {
|
||||||
$("#online").html('TotalFreedom has <font color="green">' + json.players.online + '/' + json.players.max + '</font> players online!');
|
$("#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();
|
$('.button').show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue