summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-04-01 17:26:46 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-04-01 17:26:46 -0400
commit36d3870eb9eaa056203741c9644cc383902129af (patch)
tree11268303ec7c8938074c1eb49b3ce24da47688d5 /play.js
parent515ada94a8ec8c91f5c633995ae589bbf5e4ac7c (diff)
downloadvijayanagara-36d3870eb9eaa056203741c9644cc383902129af.tar.gz
Adding more logo
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/play.js b/play.js
index 047c5fd..1568708 100644
--- a/play.js
+++ b/play.js
@@ -1363,6 +1363,11 @@ function sub_space(match, p1) {
return `<span class="tip" onmouseenter="on_focus_space_tip(${x})" onmouseleave="on_blur_space_tip(${x})" onmousedown="on_click_space_tip(${x})">${n}</span>`
}
+const E_DS = '<img class="c" src="pieces/ds_governor.svg">'
+const E_BK = '<img class="c" src="pieces/bk_amir.svg">'
+const E_VE = '<img class="c" src="pieces/ve_raja.svg">'
+
+const C_DS = '<img class="c" src="pieces/ds_troop.svg">'
const C_MI = '<img class="c" src="pieces/mongol_invader.svg">'
const F_DS = '<img class="f" src="images/Flags_DS.png">'
const F_BK = '<img class="f" src="images/Flags_BK.png">'
@@ -1382,7 +1387,11 @@ function on_log(text) {
text = text.replace(/</g, "&lt;")
text = text.replace(/>/g, "&gt;")
+ text = text.replace(/\bCDS\b/g, C_DS)
text = text.replace(/\bCMI\b/g, C_MI)
+ text = text.replace(/\bEDS\b/g, E_DS)
+ text = text.replace(/\bEBK\b/g, E_BK)
+ text = text.replace(/\bEVE\b/g, E_VE)
text = text.replace(/\bFDS\b/g, F_DS)
text = text.replace(/\bFBK\b/g, F_BK)
text = text.replace(/\bFVE\b/g, F_VE)