summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-11 07:38:50 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-11 07:38:50 +0200
commitaa51dea4577178f02a5374b3ad823039744a6d0a (patch)
treea09ff0bd3aeb09ca354a701ea27db2aef3d5844e /play.js
parente80931401bb39f54bd1cf8a9faf2f7fe102d608a (diff)
downloadalgeria-aa51dea4577178f02a5374b3ad823039744a6d0a.tar.gz
style logging
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/play.js b/play.js
index 0d5845e..f892bd9 100644
--- a/play.js
+++ b/play.js
@@ -583,6 +583,13 @@ function on_log(text) { // eslint-disable-line no-unused-vars
else if (text.match(/^\.h2/)) {
text = text.substring(4)
p.className = 'h2'
+ if (text.match(/^FLN /)) {
+ p.classList.add("fln")
+ } else if (text.match(/^Government /)) {
+ p.classList.add("gov")
+ } else {
+ p.classList.add("both")
+ }
}
else if (text.match(/^\.h3/)) {
text = text.substring(4)