diff options
author | nea <romangraef@gmail.com> | 2022-11-27 22:01:46 +0100 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-11-27 22:01:46 +0100 |
commit | af69dc72f6f3177ff950520a7e09dda9a4f4bd8f (patch) | |
tree | ffffc945035d1fd573e7b340ed07ce57b8e0baaa | |
parent | a75c2ec5addc65acd8bcb288b5fb89507bf8884c (diff) | |
download | chess-af69dc72f6f3177ff950520a7e09dda9a4f4bd8f.tar.gz chess-af69dc72f6f3177ff950520a7e09dda9a4f4bd8f.tar.bz2 chess-af69dc72f6f3177ff950520a7e09dda9a4f4bd8f.zip |
data
-rw-r--r-- | index.html | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -64,6 +64,10 @@ .invisible { display: none !important; } + + a, a:hover, a:focus, a:visited, a:active { + color: inherit; + } </style> <body> @@ -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 = `<b>${capitalize(this.boardState.turn)}</b>s turn` if (this.ended) { - this.turnIndicator.innerHTML += `<p><b>${this.result}</b></p>` + this.turnIndicator.innerHTML += ` + <p><a href="https://youtu.be/yIRT6xRQkf8"><b>${this.result}</b></a></p> +` } for (let field in this.fields) { const fieldDOM = this.fields[field] |