View source for MediaWiki:Common.js
From Tycoon Gaming
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
/* Any JavaScript here will be loaded for all users on every page load. */
var port = ['30120', '30122', '30123', '30124', '30125','30120', '30122', '30123', '30124', '30125'];
var server_number = '';
var server_uptime = '';
window.save = 0;
window.output = [];
window.string = '';
window.element = document.getElementById("content-container");
element.classList.add("server-status");
function server(){
for(var i = 0; i <= 9; i++) {
if(i <= 4){
var url = 'http://server.tycoon.community:' + port[i] + '/status/widget/players.json';
} else {
var url = 'http://na.tycoon.community:' + port[i] + '/status/widget/players.json';
}
fetching(i, url);
};
}
function Output(){
if(window.innerWidth > 1680){
051
1:0
Return to MediaWiki:Common.js.