diff --git a/html/index.html b/html/index.html index 1508b82..2a9a14b 100644 --- a/html/index.html +++ b/html/index.html @@ -84,7 +84,7 @@ -
Waiting for players...
+
Not in lobby yet
Players in Lobby:
@@ -285,7 +285,10 @@

Leaderboard

username: username }; connection.send(JSON.stringify(joinRequest)); - document.getElementById("lobby-status").innerHTML = "Trying to join the game..."; + var lobbyStatus = document.getElementById("lobby-status").innerHTML; + if (lobbyStatus === "Not in lobby yet") { + document.getElementById("lobby-status").innerHTML = "Joined Lobby!"; + } } else { alert("Please enter a username."); } @@ -329,4 +332,4 @@

Leaderboard

}; - + \ No newline at end of file