are you ready
This commit is contained in:
parent
61fafc6a85
commit
8a4e14d818
|
@ -1,7 +1,6 @@
|
||||||
const anno = OpenSeadragon.Annotorious(viewer);
|
const anno = OpenSeadragon.Annotorious(viewer);
|
||||||
anno.readOnly = true;
|
anno.readOnly = true;
|
||||||
anno.escape = false;
|
|
||||||
anno.loadAnnotations('annotations/annotations.w3c.json');
|
anno.loadAnnotations('annotations/annotations.w3c.json');
|
||||||
let annotationText = ""
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,12 @@ socket.addEventListener('message', (event) => {
|
||||||
if(event.data.toString().length < 5) {
|
if(event.data.toString().length < 5) {
|
||||||
const clientCount = parseInt(event.data);
|
const clientCount = parseInt(event.data);
|
||||||
|
|
||||||
let append = " people"
|
let append = " Sketchers"
|
||||||
if (clientCount === 1) {
|
if (clientCount === 1) {
|
||||||
append = " person"
|
clientCountElement.textContent = "Just you!";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
clientCountElement.textContent = clientCount.toString() + append;
|
||||||
}
|
}
|
||||||
clientCountElement.textContent = clientCount.toString() + append;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Reference in New Issue