From b643cace7a120dbd2cd724a46cfcf8a6d4d9910c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 16 Oct 2014 17:02:32 -0400 Subject: make the output look a bit better --- termcast_server/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'termcast_server') diff --git a/termcast_server/index.html b/termcast_server/index.html index 7e37c06..c79d5fe 100644 --- a/termcast_server/index.html +++ b/termcast_server/index.html @@ -13,6 +13,7 @@ .term table { border-collapse: collapse; + background-color: black; } .term td { @@ -70,7 +71,7 @@ socket.onmessage = function (e) { term += '"'; } term += '>'; - if (cell.contents == " ") { + if (cell.contents == " " || cell.contents == "") { term += " "; } else { @@ -98,7 +99,7 @@ socket.onmessage = function (e) { td.style.setProperty('color', colors[update.cell.fgcolor]); } else { - td.style.removeProperty('color'); + td.style.setProperty('color', "#FFFFFF"); } if (update.cell.bgcolor) { td.style.setProperty('background-color', colors[update.cell.bgcolor]); -- cgit v1.2.3-54-g00ecf