diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-02 11:39:53 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-02 11:39:53 +0200 |
commit | 761bb17f71c63fc7602f6290b24a042be836e0c2 (patch) | |
tree | 655e7c160b3fbc0bb83185122db62a171bce128a | |
parent | 958a4caf1a001c7abe2a928835cae640ec23012a (diff) | |
download | algeria-761bb17f71c63fc7602f6290b24a042be836e0c2.tar.gz |
log indent
-rw-r--r-- | play.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -422,6 +422,12 @@ function on_update() { // eslint-disable-line no-unused-vars function on_log(text) { // eslint-disable-line no-unused-vars let p = document.createElement("div") + + if (text.match(/^>/)) { + text = text.substring(1) + p.className = "i" + } + if (text.match(/^\.h1/)) { text = text.substring(4) p.className = 'h1' |