summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-11-27 22:01:46 +0100
committernea <romangraef@gmail.com>2022-11-27 22:01:46 +0100
commitaf69dc72f6f3177ff950520a7e09dda9a4f4bd8f (patch)
treeffffc945035d1fd573e7b340ed07ce57b8e0baaa
parenta75c2ec5addc65acd8bcb288b5fb89507bf8884c (diff)
downloadchess-af69dc72f6f3177ff950520a7e09dda9a4f4bd8f.tar.gz
chess-af69dc72f6f3177ff950520a7e09dda9a4f4bd8f.tar.bz2
chess-af69dc72f6f3177ff950520a7e09dda9a4f4bd8f.zip
data
-rw-r--r--index.html10
1 files 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;
+ }
</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]