mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 16:25:12 +00:00
Fixes #73
This commit is contained in:
parent
bda795102b
commit
7cef05b81e
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<h4 id="players-online">
|
<h4 id="players-online">
|
||||||
</h4>
|
</h4>
|
||||||
<ul id="players"></ul>
|
<ul id="players"></ul><br/>
|
||||||
|
|
||||||
<div class="modal-msg">
|
<div class="modal-msg">
|
||||||
<h5>Why don't you visit us yourself?</h5>
|
<h5>Why don't you visit us yourself?</h5>
|
||||||
|
|
|
@ -6,13 +6,13 @@ $(document).ready(function() {
|
||||||
interval);
|
interval);
|
||||||
|
|
||||||
var refresh = function() {
|
var refresh = function() {
|
||||||
$.getJSON("https://mcapi.ca/query/play.totalfreedom.me:26865/extensive", function(json) {
|
$.getJSON("https://mcapi.ca/query/play.totalfreedom.me:25565/extensive", function(json) {
|
||||||
if (json.status !== true) {
|
if (json.status !== true) {
|
||||||
$("#online").html('<span style="color: firebrick; font-weight: bolder;"> Server is Offline</span><br/><small style="font-size: .5em;">Check out our <a href="status">Associated Servers</a>!</small>');
|
$("#online").html('<span style="color: firebrick; font-weight: bolder;"> Server is Offline</span><br/><small style="font-size: .5em;">Check out our <a href="status">Associated Servers</a>!</small>');
|
||||||
$(".button").hide();
|
$(".button").hide();
|
||||||
} else {
|
} else {
|
||||||
$("#online").html('TotalFreedom has <font color="green">' + json.players.online + '</font> players online!<br/>');
|
$("#online").html('TotalFreedom has <font color="green" style="font-weight:300;">' + json.players.online + '</font> players online!<br/>');
|
||||||
$("#players-online").html(json.players.online + ' Online Players!');
|
$("#players-online").html('<font color="green" style="font-weight:900;">' + json.players.online + '</font> Online Players!');
|
||||||
$('.button').show();
|
$('.button').show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue