summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-03 18:31:47 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-03 22:56:32 +0100
commite45bc5b19e36c87b2c1127dee57abf58779271ca (patch)
treee433894190fb177aafe1029d92f6e5152065ce21 /play.js
parente9c7ce634c1aa185df192efc059b1a87d5015bc3 (diff)
downloadalgeria-e45bc5b19e36c87b2c1127dee57abf58779271ca.tar.gz
Logging for events.
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/play.js b/play.js
index 1a26f70..0c62941 100644
--- a/play.js
+++ b/play.js
@@ -1027,6 +1027,10 @@ function on_log(text) { // eslint-disable-line no-unused-vars
text = text.substring(4)
p.className = 'h3'
}
+ else if (text.match(/^\.evt/)) {
+ text = text.substring(5)
+ p.className = 'evt'
+ }
p.innerHTML = text
return p