mirror of
https://github.com/XLabsProject/iw4x-rawfiles.git
synced 2023-08-02 15:02:11 +02:00
maint: update html webfront
This commit is contained in:
parent
3bc879cf01
commit
4d9d45899f
@ -18,7 +18,7 @@
|
|||||||
<table id="serverinfo">
|
<table id="serverinfo">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="3">Serverinfo</th>
|
<th colspan="4">Serverinfo</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
@ -27,6 +27,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Player</th>
|
<th>Player</th>
|
||||||
|
<th>Test Client</th>
|
||||||
<th>Score</th>
|
<th>Score</th>
|
||||||
<th>Ping</th>
|
<th>Ping</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -34,9 +35,9 @@
|
|||||||
<tbody id="players">
|
<tbody id="players">
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<!-- <div id="footer">
|
<div id="footer">
|
||||||
Get IW4x!
|
Get IW4x!
|
||||||
</div> -->
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -17,16 +17,12 @@ function getFfType (data)
|
|||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
return "Disabled";
|
return "Disabled";
|
||||||
break;
|
|
||||||
case 1:
|
case 1:
|
||||||
return "Enabled";
|
return "Enabled";
|
||||||
break;
|
|
||||||
case 2:
|
case 2:
|
||||||
return "Reflected";
|
return "Reflected";
|
||||||
break;
|
|
||||||
case 3:
|
case 3:
|
||||||
return "Shared";
|
return "Shared";
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return "Disabled";
|
return "Disabled";
|
||||||
}
|
}
|
||||||
@ -34,7 +30,6 @@ function getFfType (data)
|
|||||||
|
|
||||||
function getServerInfo(status, countPlayers)
|
function getServerInfo(status, countPlayers)
|
||||||
{
|
{
|
||||||
var friendlyFire = status.scr_team_fftype;
|
|
||||||
var mod = status.fs_game;
|
var mod = status.fs_game;
|
||||||
|
|
||||||
if (!mod)
|
if (!mod)
|
||||||
@ -59,6 +54,7 @@ function buildPlayerList(players)
|
|||||||
{
|
{
|
||||||
var row = "<tr>";
|
var row = "<tr>";
|
||||||
row += "<td>" + players[i].name + "</td>";
|
row += "<td>" + players[i].name + "</td>";
|
||||||
|
row += "<td>" + players[i].test_client + "</td>";
|
||||||
row += "<td>" + players[i].score + "</td>";
|
row += "<td>" + players[i].score + "</td>";
|
||||||
row += "<td>" + players[i].ping + "</td>";
|
row += "<td>" + players[i].ping + "</td>";
|
||||||
row += "</tr>";
|
row += "</tr>";
|
||||||
@ -81,8 +77,6 @@ function buildPage(data)
|
|||||||
document.title = hostname
|
document.title = hostname
|
||||||
$("#servername").text(document.title);
|
$("#servername").text(document.title);
|
||||||
|
|
||||||
//$("#info").text(JSON.stringify(data));
|
|
||||||
|
|
||||||
getServerInfo(data["status"], data["players"].length);
|
getServerInfo(data["status"], data["players"].length);
|
||||||
buildPlayerList(data["players"]);
|
buildPlayerList(data["players"]);
|
||||||
|
|
||||||
@ -107,6 +101,6 @@ $(document).ready(function()
|
|||||||
|
|
||||||
$("#footer").click(function()
|
$("#footer").click(function()
|
||||||
{
|
{
|
||||||
location.replace("https://iw4xcachep26muba.onion.to");
|
location.replace("https://xlabs.dev");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user