Commit 2c095033 authored by Markus Bergt's avatar Markus Bergt

sdfgsdfgsd

parent 1e963c27
...@@ -13,18 +13,18 @@ $(document).ready(function() { ...@@ -13,18 +13,18 @@ $(document).ready(function() {
if(!!obj.UsersTable) if(!!obj.UsersTable)
{ {
$('#onlineStatus').html(''); $('#onlineStatus').html('');
$('#onlineStatus').append('<tr><th>Nutzername</th><th>Rang</th></tr>'); $('#onlineStatus').append('<tr><th>Name</th><th>Rang</th></tr>');
$.each(obj.UsersTable, function() { $.each(obj.UsersTable, function() {
if(this['status'] == 'online') if(this['status'] == 'online')
{ {
$('#onlineStatus').append('<tr><td class="online"><b>'+ this['name'] +'</b></td><td style="text-align:right;">'+ this['rang'] +'</td></tr>'); $('#onlineStatus').append('<tr><td class="online"><b>'+ this['name'] +'</b></td><td style="text-align:center;">('+ this['rang'] +')</td></tr>');
} }
}); });
$('#onlineStatus').append('<tr><td>&nbsp;</td><td>&nbsp;</td></tr>'); $('#onlineStatus').append('<tr><td>&nbsp;</td><td>&nbsp;</td></tr>');
$.each(obj.UsersTable, function() { $.each(obj.UsersTable, function() {
if(this['status'] == 'offline') if(this['status'] == 'offline')
{ {
$('#onlineStatus').append('<tr><td class="offline"><b>'+ this['name'] +'</b></td><td style="text-align:right;">'+ this['rang'] +'</td></tr>'); $('#onlineStatus').append('<tr><td class="offline"><b>'+ this['name'] +'</b></td><td style="text-align:center;">('+ this['rang'] +')</td></tr>');
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment