mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-20 03:59:43 -05:00
Branch for IW4X practically everything refactored
This commit is contained in:
@ -1,7 +1,31 @@
|
||||
<div id="container">
|
||||
<div class="h0" style="margin-top: 0">IW4M Admin</div><div id="logo_shit"></div>
|
||||
<div id="history_dialog"></div>
|
||||
<h1 style="margin-top: 0;">Currently Monitoring</h1>
|
||||
<hr />
|
||||
{{SERVERS}}
|
||||
</div>
|
||||
<script>
|
||||
function getServers()
|
||||
{
|
||||
$.getJSON("/_servers", function(result){
|
||||
$("#serverList").html("");
|
||||
$.each(result, function(i, server){
|
||||
$("#serverList").append("<div class=serverContainer> \
|
||||
<div class='serverInfo table'> \
|
||||
<div class='serverTitle tableCell'>" + server['serverName'] + "</div> \
|
||||
<div class='serverMap tableCell'>" + server['mapName'] + "</div> \
|
||||
<div class='serverPlayers tableCell'>" + server['currentPlayers'] + "/" + server['maxPlayers'] + "</div> \
|
||||
</div> \
|
||||
<div class='serverChatList table'>" +
|
||||
formatMessages(server['chatHistory'])
|
||||
+ "</div> \
|
||||
<div class='serverPlayerList table'>" +
|
||||
formatPlayers(server['players'])
|
||||
+ "</div> \
|
||||
<div style='clear: both;'></div><hr/></div>"
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$( document ).ready(function() {
|
||||
getServers();
|
||||
setInterval(getServers, 1000)
|
||||
});
|
||||
</script>
|
||||
<div id="serverList">
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user