summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-28 18:32:14 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-28 18:32:14 +0100
commitf7225462f73845be3e305a4c28cb57905ad45a34 (patch)
treef826748696cc694ad32e73c9e52960b0e7765d1f /play.js
parentc046cea890bb2e2e447c4b86e45eff1bdefd43b8 (diff)
downloadland-and-freedom-f7225462f73845be3e305a4c28cb57905ad45a34.tar.gz
Set favicon to player role.
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/play.js b/play.js
index b2ed9e2..0c3cb28 100644
--- a/play.js
+++ b/play.js
@@ -275,6 +275,13 @@ function on_init() {
return
on_init_once = true
+ let favicon = document.querySelector('link[rel="icon"]')
+ switch (params.role) {
+ case "Anarchist": favicon.href = "images/tokens150/player_anarchist.png"; break
+ case "Communist": favicon.href = "images/tokens150/player_communist.png"; break
+ case "Moderate": favicon.href = "images/tokens150/player_moderate.png"; break
+ }
+
ui.roles_list = document.getElementById("roles"),
ui.roles = [
document.getElementById("role_Anarchist"),