From 06edadecc20e9ae92488338021deffd50129ac7a Mon Sep 17 00:00:00 2001 From: Robert Eberle <123016766+TresEberle@users.noreply.github.com> Date: Thu, 2 May 2024 00:12:11 -0500 Subject: [PATCH] Add files via upload --- html/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/html/index.html b/html/index.html index 463ac8f..38e7e60 100644 --- a/html/index.html +++ b/html/index.html @@ -116,13 +116,19 @@

// 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); @@ -574,4 +580,4 @@

} - + \ No newline at end of file