debug window look tweaks
This commit is contained in:
parent
0a38301319
commit
e8614131e8
11
functions.js
11
functions.js
|
@ -1272,9 +1272,17 @@ function getHeadlinesContext() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var debug_last_class = "even";
|
||||||
|
|
||||||
function debug(msg) {
|
function debug(msg) {
|
||||||
var ctx = getMainContext();
|
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');
|
var c = ctx.document.getElementById('debug_output');
|
||||||
if (c && c.style.display == "block") {
|
if (c && c.style.display == "block") {
|
||||||
while (c.lastChild != 'undefined' && c.childNodes.length > 100) {
|
while (c.lastChild != 'undefined' && c.childNodes.length > 100) {
|
||||||
|
@ -1284,7 +1292,8 @@ function debug(msg) {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var ts = leading_zero(d.getHours()) + ":" + leading_zero(d.getMinutes()) +
|
var ts = leading_zero(d.getHours()) + ":" + leading_zero(d.getMinutes()) +
|
||||||
":" + leading_zero(d.getSeconds());
|
":" + 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1119,3 +1119,7 @@ div.feedExtInfo {
|
||||||
color : gray;
|
color : gray;
|
||||||
font-weight : normal;
|
font-weight : normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.debugTS {
|
||||||
|
color : #4684ff;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue