summaryrefslogtreecommitdiff
path: root/htroot/rssTerminal.html
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2013-07-04 17:12:19 +0200
committerMichael Peter Christen <mc@yacy.net>2013-07-04 17:12:19 +0200
commit3054a6d4b95f6e6e179ba295ce9b53d3ef14e5fe (patch)
tree3b2f15344cd0b8c6e3398fa1255f44c548f7f217 /htroot/rssTerminal.html
parent78af998f8f8a6706373dbddc032245183fe2ea02 (diff)
added a patch from Sebastian M.B., submitted by email for coloring of
rss terminal
Diffstat (limited to 'htroot/rssTerminal.html')
-rw-r--r--htroot/rssTerminal.html15
1 files changed, 12 insertions, 3 deletions
diff --git a/htroot/rssTerminal.html b/htroot/rssTerminal.html
index 5ac9a22ed..658e3ff48 100644
--- a/htroot/rssTerminal.html
+++ b/htroot/rssTerminal.html
@@ -10,7 +10,7 @@ div#feedbox {
margin: 0;
background: #fff;
text-align:left;
- font:9px 'Lucida Console', 'Courier New', monospace;
+ font:9px 'Droid Sans', 'Lucida Console', 'Courier New', monospace;
}
div#feedbox p {
@@ -37,6 +37,8 @@ var tab = "&nbsp;&nbsp;";
var lastShow = new Date();
var set = "";
var requestCount = 0;
+var fntcolor = "000000";
+var setcolors = new Array("PEERNEWS:606060","REMOTESEARCH:ffab00","LOCALSEARCH:dd0000","REMOTEINDEXING:ccbb00","LOCALINDEXING:562b29","DHTRECEIVE:006600","DHTSEND:002a97","PROXY:8d85f3");
function fillLines() {
alert(maxlines);
@@ -48,11 +50,18 @@ alert(maxlines);
}
function addLine(line) {
+ if (typeof query.cf!=='undefined') {
+ for (var i=0;i<setcolors.length;i++) {
+ if (line.match(setcolors[i].split(":")[0])) {
+ fntcolor = setcolors[i].split(":")[1];
+ }
+ }
+ }
while (line.length > maxwidth) {
- lines.push(line.substring(0, maxwidth));
+ lines.push("<font style=\"color:#" + fntcolor + ";\">" + line.substring(0, maxwidth) + "</font>");
line = tab + line.substring(maxwidth);
}
- lines.push(line);
+ lines.push("<font style=\"color:#" + fntcolor + ";\">" + line + "</font>");
if (lines.length > maxlines) {
if (scroller != null) {
window.clearInterval(scroller);