diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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, "<") text = text.replace(/>/g, ">") + 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) |