mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2025-07-30 17:32:00 +00:00
Fixes #73
This commit is contained in:
parent
bda795102b
commit
7cef05b81e
2 changed files with 4 additions and 4 deletions
|
@ -6,13 +6,13 @@ $(document).ready(function() {
|
|||
interval);
|
||||
|
||||
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) {
|
||||
$("#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();
|
||||
} else {
|
||||
$("#online").html('TotalFreedom has <font color="green">' + json.players.online + '</font> players online!<br/>');
|
||||
$("#players-online").html(json.players.online + ' Online Players!');
|
||||
$("#online").html('TotalFreedom has <font color="green" style="font-weight:300;">' + json.players.online + '</font> players online!<br/>');
|
||||
$("#players-online").html('<font color="green" style="font-weight:900;">' + json.players.online + '</font> Online Players!');
|
||||
$('.button').show();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue