63 lines
1.2 KiB
JavaScript
63 lines
1.2 KiB
JavaScript
var statusStructure = [
|
|
{
|
|
"_comment" : "Server status",
|
|
id : "status",
|
|
type : "status", //type : "text","status","counter"
|
|
title : "Status"
|
|
},
|
|
{
|
|
"_comment" : "Server title",
|
|
id : "title",
|
|
type : "text",
|
|
title : "Title"
|
|
},
|
|
{
|
|
"_comment" : "Server address",
|
|
id : "visibleIP",
|
|
type : "text",
|
|
title : "Address"
|
|
},
|
|
/*{
|
|
"_comment" : "Server map",
|
|
id : "map",
|
|
type : "map",
|
|
title : "Map"
|
|
},*/
|
|
{
|
|
"_comment" : "Server version",
|
|
id : "version",
|
|
type : "text",
|
|
title : "Version"
|
|
},
|
|
{
|
|
"_comment" : "Players online",
|
|
id : "players",
|
|
type : "counter",
|
|
title : "Players Online"
|
|
}
|
|
];
|
|
var statusServers = [
|
|
{
|
|
type : "ts",
|
|
title : "FenixPortal TS",
|
|
ip : "tsquery:fyKItRok@ts.fenixportal.eu:10011/?server_port=9987",
|
|
visibleIP : "ts.fenixportal.eu",
|
|
version : "TS3",
|
|
hidden : false
|
|
},
|
|
{
|
|
type : "csgo",
|
|
title : "CS:GO",
|
|
ip : "vps.moow.info:9987",
|
|
visibleIP : "vps.moow.info",
|
|
version : "",
|
|
hidden : false
|
|
}
|
|
];
|
|
|
|
jQuery(function() {
|
|
|
|
jQuery('#status1').serverStatus(statusStructure,statusServers,{"type" : "status"},5000);
|
|
|
|
});
|