diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-28 18:32:14 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-28 18:32:14 +0100 |
commit | f7225462f73845be3e305a4c28cb57905ad45a34 (patch) | |
tree | f826748696cc694ad32e73c9e52960b0e7765d1f | |
parent | c046cea890bb2e2e447c4b86e45eff1bdefd43b8 (diff) | |
download | land-and-freedom-f7225462f73845be3e305a4c28cb57905ad45a34.tar.gz |
Set favicon to player role.
-rw-r--r-- | play.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"), |