diff options
Diffstat (limited to 'online/global.js')
-rw-r--r-- | online/global.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/online/global.js b/online/global.js index febe8ab..0cdb6f4 100644 --- a/online/global.js +++ b/online/global.js @@ -166,6 +166,14 @@ window.addEventListener('load', () => { crash(new Error("Invalid server")); } console.log("Connection initialized. Server running " + inf.name + " version " + inf.version + ", client ID " + inf.id); + document.getElementById("serveraddr").innerText = host + ":" + port; + if (inf.version.endsWith("-iridium")) { + document.getElementById("servername").innerText = "Iridium " + inf.version.substr(0, inf.version.length - "-iridium".length); + document.getElementById("servericon").src = "../logo/iridium.png"; + } else { + document.getElementById("servername").innerText = "Kartik Legacy Server " + inf.version; + document.getElementById("servericon").src = "../logo/server.png"; + } document.getElementById('yourid').innerText = inf.id.toUpperCase(); document.getElementById('intro').style.display = ""; document.getElementById('connecting').style.display = "none"; |