diff options
Diffstat (limited to 'webchat')
-rw-r--r-- | webchat/hello_web.js | 6 | ||||
-rw-r--r-- | webchat/krebs-img.js | 6 | ||||
-rw-r--r-- | webchat/public/krebs.png | bin | 0 -> 956 bytes | |||
-rw-r--r-- | webchat/public/reset.css | 8 |
4 files changed, 11 insertions, 9 deletions
diff --git a/webchat/hello_web.js b/webchat/hello_web.js index e1f8f312..aa580652 100644 --- a/webchat/hello_web.js +++ b/webchat/hello_web.js @@ -3,7 +3,6 @@ var http = require('https'); var sockjs = require('sockjs'); var connect = require('connect'); var irc = require('irc'); -var krebsimage = require('./krebs-img.js'); var Clients = []; Clients.broadcast = function(object) { Clients.forEach(function(client) { @@ -59,7 +58,7 @@ conn.write(JSON.stringify({from: 'system', message: 'hello'})) var object = JSON.parse(message); object.from = name console.log(object.message); - irc_client.say("#krebs", name + '→' + object.message); + irc_client.say("#krebs", name + ' → ' + object.message); Clients.broadcast(object); } catch (error) { @@ -88,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(krebsimage+'<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/krebs-img.js b/webchat/krebs-img.js deleted file mode 100644 index b7be37da..00000000 --- a/webchat/krebs-img.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports='<img src="data:image/png; charset=unknown;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAB/OfnX0gAAAAlwSFlzAAA9hAAAPYQB1ayvdAAAAAd0SU1FB9sIFBYiEPmIRMMAAAQ6SURBVHja7dwxaxRBGIDhb+Jx2ptGkSNEOLFQgvXV1oLYGbA48D+kyfwNIb3/wTqktNAiGDDIFSGF9iYqY2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BBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEBAAAEEEKA/BkawOOO0HUflrkHQUK5kDSdA/sON+GoIIID99M0BGwQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBHB1Dsu9aq7luGy0ut56nDZeY5y2PSRLMkpTQ5gjRewWYwCcAAF65Cczj2SzJnZVUQAAAABJRU5ErkJggg==">' - -function secretfunc(){ - return("you will never use me"); -} -console.log("haha, im a require text message"); diff --git a/webchat/public/krebs.png b/webchat/public/krebs.png Binary files differnew file mode 100644 index 00000000..263d5b1c --- /dev/null +++ b/webchat/public/krebs.png 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; +} |