From 398138dcf935e4ef8e1986b75d584591b3a3f7b5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 8 Jan 2025 18:27:43 +0100 Subject: Remove unused icon images and styles. --- play.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'play.js') 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 `${match.replace("(", "").replace(")", "")}` } const ICONS = { - '£CC': '', - '£CU': '', - '£DC': '', - '£DU': '', - '£UU': '', + '->': '\u2192', '.dT5': '5', '.dT6': '6', '.dT7': '7', @@ -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) -- cgit v1.2.3