summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-07 14:01:50 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:06:33 +0100
commit80e3204596f9ab48a350a322e91d78b2a095cf33 (patch)
tree9a6c541397cc85fa30d7a0ef1c1c6dc699c4551f /public
parent277fdc3dc71de71d1996586b5f0b56bee1c60bf1 (diff)
downloadserver-80e3204596f9ab48a350a322e91d78b2a095cf33.tar.gz
Add support for random scenario selection and scenario groupings.
Diffstat (limited to 'public')
-rw-r--r--public/join.js4
1 files changed, 4 insertions, 0 deletions
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, "_")