1
0
Fork 0

are you ready

This commit is contained in:
red 2023-10-02 14:07:16 +01:00
parent 61fafc6a85
commit 8a4e14d818
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,6 @@
const anno = OpenSeadragon.Annotorious(viewer);
anno.readOnly = true;
anno.escape = false;
anno.loadAnnotations('annotations/annotations.w3c.json');
let annotationText = ""

View File

@ -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;
}
}
});