diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-08 18:27:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-08 18:40:40 +0100 |
commit | 398138dcf935e4ef8e1986b75d584591b3a3f7b5 (patch) | |
tree | f937852a2b1e2d827b65f18b19e9c31bce7b492c | |
parent | 9ed77a97ef768bab1a8a94b95215fa6395a344bb (diff) | |
download | 1989-dawn-of-freedom-398138dcf935e4ef8e1986b75d584591b3a3f7b5.tar.gz |
Remove unused icon images and styles.
-rw-r--r-- | images/icon_com.png | bin | 451 -> 0 bytes | |||
-rw-r--r-- | images/icon_dem.png | bin | 929 -> 0 bytes | |||
-rw-r--r-- | play.css | 37 | ||||
-rw-r--r-- | play.js | 15 |
4 files changed, 2 insertions, 50 deletions
diff --git a/images/icon_com.png b/images/icon_com.png Binary files differdeleted file mode 100644 index 047a943..0000000 --- a/images/icon_com.png +++ /dev/null diff --git a/images/icon_dem.png b/images/icon_dem.png Binary files differdeleted file mode 100644 index 01fdd51..0000000 --- a/images/icon_dem.png +++ /dev/null @@ -41,21 +41,6 @@ body.Communist header.your_turn { background-color: hsl(355, 70%, 75%); } #log .h2 { background-color: wheat } #log .h3 { background-color: wheat } -#log .marginalia { - display: block; - float: right; - text-indent: 0; - margin: 0; - margin-right: 6px; - padding: 0; -} - -#log .group .marginalia { - margin-right: 0; -} - -#log > div { clear: right } - #log .h1, .h2, .h3 { font-variant-caps: small-caps; border-top: 1px solid black; @@ -102,28 +87,6 @@ body.Communist header.your_turn { background-color: hsl(355, 70%, 75%); } #log .number.d_tst { background-color: hsl(206, 85%, 80%); } #log .number.c_tst { background-color: hsl(355, 70%, 80%); } -#log .icon { - display: inline-block; - vertical-align: -2px; - background-size: 10px 10px; - background-repeat: no-repeat; - background-color: white; - border: 1px solid #444; - width: 10px; - height: 10px; -} - -X#log .com_nc { background-image: url(images/icon_com.png) } -X#log .dem_nc { background-image: url(images/icon_dem.png) } - -#log .com_c { background-image: url(images/icon_com.png) } -#log .dem_c { background-image: url(images/icon_dem.png) } - -#log .com_c { background-color: hsl(358, 66%, 45%) } -#log .com_nc { background-color: hsl(358, 66%, 80%) } -#log .dem_c { background-color: #147fc0 } -#log .dem_nc { background-color: hsl(206, 85%, 85%) } - /* MAP */ #mapwrap { @@ -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) |