diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-03-23 15:09:46 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:18 +0100 |
commit | 91af980dfff5ea7648ce882c3ae3d2b94eb96fa1 (patch) | |
tree | 212faed7f9b9d6a0f42318b49b7a9a81f89ca4a6 /play.js | |
parent | ca668622e99b6a6257d58d98970c982d6602a7f3 (diff) | |
download | hammer-of-the-scots-91af980dfff5ea7648ce882c3ae3d2b94eb96fa1.tar.gz |
Show current scenario in game log.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -58,7 +58,9 @@ function on_log(text) { text = text.replace(/^([A-Z]):/, '<span class="$1"> $1 </span>'); - if (text.match(/^~ .* ~$/)) + if (text.match(/^Scenario: /)) + p.className = 'st', text = text.substring(10); + else if (text.match(/^~ .* ~$/)) p.className = 'br', text = text.substring(2, text.length-2); else if (text.match(/^Start England turn/)) p.className = 'E'; |