From 4d9d45899fb21323d2bb16c11e3c2eafbb169161 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Tue, 28 Mar 2023 18:07:11 +0100 Subject: [PATCH] maint: update html webfront --- iw4x/html/index.html | 7 ++++--- iw4x/html/script.js | 10 ++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/iw4x/html/index.html b/iw4x/html/index.html index 1e5ef14..bbd7b88 100644 --- a/iw4x/html/index.html +++ b/iw4x/html/index.html @@ -18,7 +18,7 @@ - +
ServerinfoServerinfo
@@ -27,6 +27,7 @@ Player + Test Client Score Ping @@ -34,9 +35,9 @@ - + diff --git a/iw4x/html/script.js b/iw4x/html/script.js index 7171c60..326f531 100644 --- a/iw4x/html/script.js +++ b/iw4x/html/script.js @@ -17,16 +17,12 @@ function getFfType (data) { case 0: return "Disabled"; - break; case 1: return "Enabled"; - break; case 2: return "Reflected"; - break; case 3: return "Shared"; - break; default: return "Disabled"; } @@ -34,7 +30,6 @@ function getFfType (data) function getServerInfo(status, countPlayers) { - var friendlyFire = status.scr_team_fftype; var mod = status.fs_game; if (!mod) @@ -59,6 +54,7 @@ function buildPlayerList(players) { var row = ""; row += "" + players[i].name + ""; + row += "" + players[i].test_client + ""; row += "" + players[i].score + ""; row += "" + players[i].ping + ""; row += ""; @@ -81,8 +77,6 @@ function buildPage(data) document.title = hostname $("#servername").text(document.title); - //$("#info").text(JSON.stringify(data)); - getServerInfo(data["status"], data["players"].length); buildPlayerList(data["players"]); @@ -107,6 +101,6 @@ $(document).ready(function() $("#footer").click(function() { - location.replace("https://iw4xcachep26muba.onion.to"); + location.replace("https://xlabs.dev"); }); });