From aa51dea4577178f02a5374b3ad823039744a6d0a Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Wed, 11 Oct 2023 07:38:50 +0200 Subject: style logging --- play.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'play.js') 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) -- cgit v1.2.3