diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -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) |