summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webchat/hello_web.js3
-rw-r--r--webchat/public/reset.css8
2 files changed, 10 insertions, 1 deletions
diff --git a/webchat/hello_web.js b/webchat/hello_web.js
index 19bfd7be..aa580652 100644
--- a/webchat/hello_web.js
+++ b/webchat/hello_web.js
@@ -87,10 +87,11 @@ var app = connect()
res.write('<script src="sockjs-0.3.min.js"></script>');
res.write('<script src="jquery-2.0.3.min.js"></script>');
res.write('<script src="client.js"></script>');
- res.write('<img src="krebs.png"><br>');
+ res.write('<div id=bg>');
res.write('hello, this is #krebs:<br>');
res.write('<table id="chatbox"></table>');
res.end('<input type="text" id="input"><br>');
+ res.write('</div>');
})
var server = http.createServer(options, app);
diff --git a/webchat/public/reset.css b/webchat/public/reset.css
index 746b81c4..46b52478 100644
--- a/webchat/public/reset.css
+++ b/webchat/public/reset.css
@@ -58,3 +58,11 @@ q:before, q:after {
.chat_from:after {
content: ":";
}
+#bg {
+ background-image: url(krebs.png);
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}