diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-06 17:05:44 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-06 17:05:44 +0100 |
commit | 7e68e86baf90dfe91abae7c4589091f089f8565b (patch) | |
tree | 855f6bb2fcad3742c8683b538296ae348c59636d | |
parent | da171ecdd8a43848e6ce21dd6e540ffc52d2af89 (diff) |
webchat: krebs now as background
-rw-r--r-- | webchat/hello_web.js | 3 | ||||
-rw-r--r-- | webchat/public/reset.css | 8 |
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; +} |