From e8614131e893af473e0a585addb19d9f4e8b8973 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Jun 2006 09:12:22 +0100 Subject: [PATCH] debug window look tweaks --- functions.js | 11 ++++++++++- tt-rss.css | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/functions.js b/functions.js index 1331eb8d4..93a36b587 100644 --- a/functions.js +++ b/functions.js @@ -1272,9 +1272,17 @@ function getHeadlinesContext() { } } +var debug_last_class = "even"; + function debug(msg) { var ctx = getMainContext(); + if (ctx.debug_last_class == "even") { + ctx.debug_last_class = "odd"; + } else { + ctx.debug_last_class = "even"; + } + var c = ctx.document.getElementById('debug_output'); if (c && c.style.display == "block") { while (c.lastChild != 'undefined' && c.childNodes.length > 100) { @@ -1284,7 +1292,8 @@ function debug(msg) { var d = new Date(); var ts = leading_zero(d.getHours()) + ":" + leading_zero(d.getMinutes()) + ":" + leading_zero(d.getSeconds()); - c.innerHTML = "
  • [" + ts + "] " + msg + "
  • " + c.innerHTML; + c.innerHTML = "
  • [" + ts + "] " + + msg + "
  • " + c.innerHTML; } } diff --git a/tt-rss.css b/tt-rss.css index 2a8d70972..c228562b2 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1119,3 +1119,7 @@ div.feedExtInfo { color : gray; font-weight : normal; } + +span.debugTS { + color : #4684ff; +}