This commit is contained in:
aggelosQQ 2016-08-29 15:10:38 +03:00
parent 50d3eb9996
commit d8eac5e363
2 changed files with 3 additions and 2 deletions

View file

@ -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">

View file

@ -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();
}
});