diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-15 00:48:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 4640a9affe7633628ce95de0bb5640e30dd71039 (patch) | |
tree | 8d24a8dbae1fce988b2ad1a86e8f7e040db2dd1f /play.js | |
parent | 98b1e64b2c3b697a6e9156b6f75de83402c4cfb8 (diff) | |
download | table-battles-4640a9affe7633628ce95de0bb5640e30dd71039.tar.gz |
log styling
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -479,6 +479,14 @@ function on_log(text) { text = text.substring(4) p.className = "h2" } + else if (text.match(/^>/)) { + text = text.substring(1) + p.className = "ind" + } + else if (text.match(/^\.i /)) { + text = text.substring(3) + p.className = "i" + } text = text.replace(/\bC\d+\b/g, sub_card) text = text.replace(/\b[DPRBK]\d\b/g, sub_icon) |