From 8c76db5275ae8984952efb7027afac0317835d0a Mon Sep 17 00:00:00 2001 From: Felix Hartmann Date: Sun, 20 Jan 2019 05:16:02 +0100 Subject: [PATCH] added ui elements, added display update routine --- src/main.js | 3 ++ src/static/css/main.css | 2 +- src/static/index.html | 17 +++++---- src/static/js/index.js | 79 ++++++++++++++++++++++++++++++++--------- 4 files changed, 77 insertions(+), 24 deletions(-) diff --git a/src/main.js b/src/main.js index 69f50d7..54d8bf3 100644 --- a/src/main.js +++ b/src/main.js @@ -20,6 +20,9 @@ io.on('connection', function(socket){ io.emit('status', {"users": users.length}); get_dirs(socket); + socket.on('log', function(msg){ + console.log('id: ' + this.id + ' LOG:' + msg); + }); socket.on('disconnect', function(){ console.log('id: ' + this.id + ' disconnected'); diff --git a/src/static/css/main.css b/src/static/css/main.css index c55cd71..93fdf52 100644 --- a/src/static/css/main.css +++ b/src/static/css/main.css @@ -25,7 +25,7 @@ body { text-align: right; } -#txt-duration { +.align-right { float: right; text-align: right; } diff --git a/src/static/index.html b/src/static/index.html index 3cf01ab..5c20261 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -21,15 +21,18 @@ - Slowdowner + SlowDowner