From 80e3204596f9ab48a350a322e91d78b2a095cf33 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Dec 2023 14:01:50 +0100 Subject: Add support for random scenario selection and scenario groupings. --- public/join.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/join.js') diff --git a/public/join.js b/public/join.js index 704868f..e51b548 100644 --- a/public/join.js +++ b/public/join.js @@ -148,6 +148,10 @@ function action_link(player, action, color, text) { } function update() { + if (game.scenario !== "Standard") + document.querySelector("h1").textContent = game.title_name + " - " + game.scenario + else + document.querySelector("h1").textContent = game.title_name for (let i = 0; i < roles.length; ++i) { let role = roles[i] let role_id = "role_" + role.replace(/ /g, "_") -- cgit v1.2.3