Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
(Blanked the page)
Tags: Blanking Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
 
//Get player counts of Minecraft server
$.getJSON('https://mcapi.us/server/status?ip=play.prismparty.net', function(json) {
  if (json.status !== "error") {
    $("#online").html('<i class="fas fa-users"></i> ' + json.players.now);
  } else {
    $("#online").html('<i class="fas fa-spinner fa-spin"></i>');
  }
    setTimeout(5000);
});

Revision as of 07:58, 31 January 2023

//Get player counts of Minecraft server
$.getJSON('https://mcapi.us/server/status?ip=play.prismparty.net', function(json) {
   if (json.status !== "error") {
     $("#online").html('<i class="fas fa-users"></i> ' + json.players.now);
   } else {
     $("#online").html('<i class="fas fa-spinner fa-spin"></i>');
   }
     setTimeout(5000);
});