From 4640a9affe7633628ce95de0bb5640e30dd71039 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 15 Dec 2023 00:48:43 +0100 Subject: log styling --- play.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index b8d9e00..7eb87af 100644 --- a/play.js +++ b/play.js @@ -479,6 +479,14 @@ function on_log(text) { text = text.substring(4) p.className = "h2" } + else if (text.match(/^>/)) { + text = text.substring(1) + p.className = "ind" + } + else if (text.match(/^\.i /)) { + text = text.substring(3) + p.className = "i" + } text = text.replace(/\bC\d+\b/g, sub_card) text = text.replace(/\b[DPRBK]\d\b/g, sub_icon) -- cgit v1.2.3