summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-22 00:38:01 +0200
committerTor Andersson <tor@ccxvii.net>2022-06-22 00:38:18 +0200
commitce767b57fcb916838be65f317e38c1a54f4f2258 (patch)
tree4e1140efc618b4e3caf6f3d2f87a1db32ebe8f04 /public
parent598313adbd56d342e47093e14b510a70eb6235a7 (diff)
downloadserver-ce767b57fcb916838be65f317e38c1a54f4f2258.tar.gz
Show finished result in join pages.
Diffstat (limited to 'public')
-rw-r--r--public/join.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/join.js b/public/join.js
index 2703f97..f199329 100644
--- a/public/join.js
+++ b/public/join.js
@@ -163,8 +163,12 @@ function update() {
message.innerHTML = `Waiting for ${game.owner_name} to start the game...`
else
message.innerHTML = "Waiting for players to join..."
- } else {
+ } else if (game.status === 1) {
message.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}">Observe</a>`
+ } else if (game.status === 2) {
+ message.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}">Review</a>`
+ } else {
+ message.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}">Enter</a>`
}
if (game.owner_id === user_id) {