Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TresEberle authored May 2, 2024
1 parent 55b1da6 commit 06edade
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,19 @@ <h2 id="player2name"> </h2>
// Update title to reflect the current version
// var titleVersion = " "; // Add the JSON variable for the string
// document.getElementById("title").innerHTML = titleVersion; // Set the title as the titleVersion

document.title = "group 24: " + message.versionNumber;
};

socket.onmessage = function(event) {
console.log('Message from server: ' + event.data);
const message = JSON.parse(event.data);

switch(message.type){
case 'typehash':
document.title = "group 24: " + message.versionNumber;
break;

case 'Grid':
console.log("Grid recieved");
displayWordSearch(message.grid);
Expand Down Expand Up @@ -574,4 +580,4 @@ <h2 id="player2name"> </h2>
}

</script>
</html>
</html>

0 comments on commit 06edade

Please sign in to comment.