summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-08 18:27:43 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-08 18:40:40 +0100
commit398138dcf935e4ef8e1986b75d584591b3a3f7b5 (patch)
treef937852a2b1e2d827b65f18b19e9c31bce7b492c /play.js
parent9ed77a97ef768bab1a8a94b95215fa6395a344bb (diff)
download1989-dawn-of-freedom-398138dcf935e4ef8e1986b75d584591b3a3f7b5.tar.gz
Remove unused icon images and styles.
Diffstat (limited to 'play.js')
-rw-r--r--play.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/play.js b/play.js
index c5c7602..0d9acc8 100644
--- a/play.js
+++ b/play.js
@@ -998,20 +998,12 @@ function sub_icon(match) {
return ICONS[match] || match
}
-function sub_arrow(_match) {
- return " \u2192 "
-}
-
function wrap_icons(match) {
return `<span class="marginalia">${match.replace("(", "").replace(")", "")}</span>`
}
const ICONS = {
- '£CC': '<span class="icon com_c"></span>',
- '£CU': '<span class="icon com_nc"></span>',
- '£DC': '<span class="icon dem_c"></span>',
- '£DU': '<span class="icon dem_nc"></span>',
- '£UU': '<span class="number icon"></span>',
+ '->': '\u2192',
'.dT5': '<span class="number d_tst">5</span>',
'.dT6': '<span class="number d_tst">6</span>',
'.dT7': '<span class="number d_tst">7</span>',
@@ -1050,8 +1042,6 @@ function on_log(text, ix) {
p.className = "i"
}
- text = text.replace(/(\(£[CDU][CU]\s\.to\s£[CDU][CU]\))/g, wrap_icons)
-
text = text.replace(/_/g, " ")
text = text.replace(/C(\d+)/g, sub_card_name)
text = text.replace(/P(\d+)/g, sub_power_card_name)
@@ -1059,10 +1049,9 @@ function on_log(text, ix) {
text = text.replace(/%(\d+)/g, sub_space_name)
text = text.replace(/D[1-6]/g, sub_die)
text = text.replace(/-\d/g, sub_minus)
- text = text.replace(/£[CDU][CU]\b/g, sub_icon)
+ text = text.replace(/->/g, sub_icon)
text = text.replace(/\.cT(\d+)/g, sub_icon)
text = text.replace(/\.dT(\d+)/g, sub_icon)
- text = text.replace(/\s\.to\s/g, sub_arrow)
if (text.match(/^\.h1/)) {
text = text.substring(4)