Added a shutdown timer

This commit is contained in:
2021-06-11 19:01:43 +02:00
parent 44eaa2b086
commit db0c440d1c
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -132,6 +132,10 @@ function updateUnalikeDisplay(unalikeJson) {
if (unalikeJson.delay) {
newStatus += "</p><p>Current delay: " + unalikeJson.delay + " seconds between commands. (~" + unalikeJson.delay*4 + " seconds to create a lobby.)";
}
if (unalikeJson.shutdownTimer) {
newStatus += "</p><p>If nothing happens, Unalike will shut down in " + unalikeJson.shutdownTimer + " seconds.";
}
// dynamicJsonElement = document.getElementById("dynamic-json");
// dynamicJsonElement.innerHTML = JSON.stringify(unalikeJson);