From 8a4e14d818fdb2ce747d76fc5ad886c8d93c406a Mon Sep 17 00:00:00 2001 From: red Date: Mon, 2 Oct 2023 14:07:16 +0100 Subject: [PATCH] are you ready --- script/annotations.js | 3 +-- script/live.js | 10 ++++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/script/annotations.js b/script/annotations.js index 3558045..cab4f46 100644 --- a/script/annotations.js +++ b/script/annotations.js @@ -1,7 +1,6 @@ const anno = OpenSeadragon.Annotorious(viewer); anno.readOnly = true; -anno.escape = false; anno.loadAnnotations('annotations/annotations.w3c.json'); -let annotationText = "" + diff --git a/script/live.js b/script/live.js index 24388e2..7524607 100644 --- a/script/live.js +++ b/script/live.js @@ -5,10 +5,12 @@ socket.addEventListener('message', (event) => { if(event.data.toString().length < 5) { const clientCount = parseInt(event.data); - let append = " people" + let append = " Sketchers" if (clientCount === 1) { - append = " person" + clientCountElement.textContent = "Just you!"; + } + else { + clientCountElement.textContent = clientCount.toString() + append; } - clientCountElement.textContent = clientCount.toString() + append; } -}); +}); \ No newline at end of file