summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/play.js b/play.js
index 81988d9..0decf5f 100644
--- a/play.js
+++ b/play.js
@@ -1227,10 +1227,12 @@ function layout_electoral_college(ix, pow) {
function update_favicon() {
let favicon = document.querySelector('link[rel="icon"]')
switch (params.role) {
- case "Louis XV": favicon.href = "favicon/louis.png"; break
- case "Frederick": favicon.href = "favicon/fritz.png"; break
+ case R_PLAYER_A:
+ case R_LOUIS_XV: favicon.href = "favicon/louis.png"; break
+ case R_FREDERICK: favicon.href = "favicon/fritz.png"; break
default:
- case "Maria Theresa": favicon.href = "favicon/maria.png"; break
+ case R_PLAYER_B:
+ case R_MARIA_THERESA: favicon.href = "favicon/maria.png"; break
}
}
@@ -1609,6 +1611,8 @@ function sub_piece(match, p1) {
function sub_space(match, p1) {
let x = p1 | 0
+ if (x === ELIMINATED)
+ return "eliminated"
let n = data.cities.name[x]
return `<span class="city_tip" onclick="on_click_city_tip(${x})" onmouseenter="on_focus_city_tip(${x})" onmouseleave="on_blur_city_tip(${x})">${n}</span>`
}