From ce767b57fcb916838be65f317e38c1a54f4f2258 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 22 Jun 2022 00:38:01 +0200 Subject: Show finished result in join pages. --- public/join.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/join.js') 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 = `Observe` + } else if (game.status === 2) { + message.innerHTML = `Review` + } else { + message.innerHTML = `Enter` } if (game.owner_id === user_id) { -- cgit v1.2.3