Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
muktar1907 committed Apr 30, 2024
1 parent b3e005c commit 4be41c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions html/index_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ <h2>Leaderboard</h2>
let playerData;

console.log(nick+"has joined");
// console.log(messageData.ready==="true");

console.log(messageData.ready==="true");
console.log("My game ID: "+ gameId +"\ngame joined: "+ messageData.gameId);
if("ready" in messageData && messageData.ready==="true" && messageData.gameId==gameId)
{
console.log(messageData.gameId);
Expand All @@ -183,7 +183,7 @@ <h2>Leaderboard</h2>
startTimer();
}
document.addEventListener("DOMContentLoaded",updateLobby());
updateLobby();

}
else if(type==="UpdateGame")
{
Expand Down Expand Up @@ -283,7 +283,8 @@ <h2>Leaderboard</h2>
var nick = document.getElementById('nickInput').value.trim();
console.log(nick);
var gameIndex = document.getElementById('gameSelect').value;
var gameId=gameIndex;
gameId=gameIndex;
console.log("Game id from options: "+gameId);
console.log("GameId after confirmation: "+gameId);
var mode = document.getElementById('modeSelect').value;

Expand Down

0 comments on commit 4be41c6

Please sign in to comment.