From af69dc72f6f3177ff950520a7e09dda9a4f4bd8f Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 27 Nov 2022 22:01:46 +0100 Subject: data --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7a0c7c9..52a5335 100644 --- a/index.html +++ b/index.html @@ -64,6 +64,10 @@ .invisible { display: none !important; } + + a, a:hover, a:focus, a:visited, a:active { + color: inherit; + } @@ -81,7 +85,7 @@ this.boardState = {} this.lastMove = '' window.addEventListener('beforeunload', () => { - this.ended = false + this.ended = true }) this.socket.addEventListener('message', ev => { const message = JSON.parse(ev.data) @@ -151,7 +155,9 @@ synchronizeBoard() { this.turnIndicator.innerHTML = `${capitalize(this.boardState.turn)}s turn` if (this.ended) { - this.turnIndicator.innerHTML += `

${this.result}

` + this.turnIndicator.innerHTML += ` +

${this.result}

+` } for (let field in this.fields) { const fieldDOM = this.fields[field] -- cgit