summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-28 12:24:57 +0100
committerTor Andersson <tor@ccxvii.net>2024-10-28 12:25:29 +0100
commitb595b4be88dd7a2ea291ab08d54c41b895d8663d (patch)
tree9b6ad8fe845071a5969ad4b81f3ee3270c787e30
parentb7c261893c9b85a38fdd6cc3bc3210c69c908125 (diff)
download1989-dawn-of-freedom-b595b4be88dd7a2ea291ab08d54c41b895d8663d.tar.gz
Remove card asterisk in sub_card_name instead of all asterisks.
-rw-r--r--play.css1
-rw-r--r--play.js3
2 files changed, 2 insertions, 2 deletions
diff --git a/play.css b/play.css
index a0d7094..d33f84e 100644
--- a/play.css
+++ b/play.css
@@ -39,6 +39,7 @@ body.Communist header.your_turn { background-color: hsl(355, 70%, 75%); }
#log { background-color: floralwhite }
#log .h1 { background-color: tan }
#log .h2 { background-color: wheat }
+#log .h3 { background-color: wheat }
#log .h2.dem { background-color: hsl(206, 85%, 80%); }
#log .h2.com { background-color: hsl(355, 70%, 80%); }
diff --git a/play.js b/play.js
index bfe4578..b0c0644 100644
--- a/play.js
+++ b/play.js
@@ -765,7 +765,7 @@ function on_update() {
function sub_card_name(_match, p1) {
let x = p1 | 0
- return `<span class="card_name" onmouseenter="on_focus_card_tip(${x})" onmouseleave="on_blur_card_tip()">${cards[x].name}</span>`
+ return `<span class="card_name" onmouseenter="on_focus_card_tip(${x})" onmouseleave="on_blur_card_tip()">${cards[x].name.replace("*", "")}</span>`
}
function sub_power_card_name(_match, p1) {
@@ -829,7 +829,6 @@ function on_log(text) {
p.className = "h3"
}
- text = text.replace(/([a-zA-Z])\*/g, "$1")
p.innerHTML = text
return p
}