summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-06-05 16:44:49 -0500
committerNeil Moore <neil@s-z.org>2013-06-05 16:44:49 -0500
commit5154444c37381d71db1d2da8a9bc61142cf6ac12 (patch)
tree8aad5d580f733665ceed7d71178b5a08f1e134b1
parenta6e6a6629d2fc763f1127c6d6b256a6b23c9ed66 (diff)
downloadcrawlbot-5154444c37381d71db1d2da8a9bc61142cf6ac12.tar.gz
crawlbot-5154444c37381d71db1d2da8a9bc61142cf6ac12.zip
Log viewer: display join/part noise in faint grey.
-rw-r--r--dat/log/.logview.shtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/dat/log/.logview.shtml b/dat/log/.logview.shtml
index 7644feb..860db6a 100644
--- a/dat/log/.logview.shtml
+++ b/dat/log/.logview.shtml
@@ -20,6 +20,8 @@ wensley = function(logurl, args) {
data = data.replace(/</g, '&lt;');
data = data.replace(/>/g, '&gt;');
+ data = data.replace(/^([0-9:]+ +-\!- .*)/gm, '<span class="noise">$1</span>');
+
// Ugh: try to handle colour and bold tags.
data = data.replace(/\cC(?:0(\d)|([1-9]\d?))(?:,(?:0(\d)|([1-9]\d?)))?([^\cC\cO\n]*\cO?)/g, '<span class="fg$1$2 bg$3$4">$5</span>');
data = data.replace(/\cB([^\cB\cO\n]*)\cO?/g, '<b>$1</b>');
@@ -36,6 +38,7 @@ wensley = function(logurl, args) {
<style type="text/css">
h3 { margin-bottom: 0em; }
.irc { font-family: monospace; }
+ .noise { color: #c0c0c0; }
.fg0 { color: white; }
.fg1 { color: black; }
.fg2 { color: #4040ff; }