]> git.wh0rd.org Git - tt-rss.git/commitdiff
debug window look tweaks
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 8 Jun 2006 08:12:22 +0000 (09:12 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 8 Jun 2006 08:12:22 +0000 (09:12 +0100)
functions.js
tt-rss.css

index 1331eb8d45fdf05082885d60499d1e1a1f1acb8a..93a36b587d24568fe653bdcd5685748ad358009b 100644 (file)
@@ -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 = "<li>[" + ts + "] " + msg + "</li>" + c.innerHTML;
+               c.innerHTML = "<li class=\"" + ctx.debug_last_class + "\"><span class=\"debugTS\">[" + ts + "]</span> " + 
+                       msg + "</li>" + c.innerHTML;
        }
 }
 
index 2a8d70972f6a52d5583da98f808dff84e7c7bc1b..c228562b2abae2abdf12d8b7d365ec51eb68104b 100644 (file)
@@ -1119,3 +1119,7 @@ div.feedExtInfo {
        color : gray;
        font-weight : normal;
 }
+
+span.debugTS {
+       color : #4684ff;
+}