diff options
author | Alex Auvolat <alex@adnab.me> | 2018-09-26 18:14:32 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-09-26 18:14:32 +0200 |
commit | 26629dc30a116204263ac4b515600649ba742ba0 (patch) | |
tree | a066688ce44e028abd188867bc92b72496d4893a /shardweb/assets | |
parent | 1a13285971ef728109011a93e676e26248b30242 (diff) | |
download | shard-26629dc30a116204263ac4b515600649ba742ba0.tar.gz shard-26629dc30a116204263ac4b515600649ba742ba0.zip |
Web UI for multiple identities
Diffstat (limited to 'shardweb/assets')
-rw-r--r-- | shardweb/assets/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shardweb/assets/js/app.js b/shardweb/assets/js/app.js index c98ec1b..53a0112 100644 --- a/shardweb/assets/js/app.js +++ b/shardweb/assets/js/app.js @@ -28,7 +28,7 @@ if (room_name != undefined) channel.on('shout', function (payload) { // listen to the 'shout' event var li = document.createElement("li"); // creaet new list item DOM element var name = payload.name || 'guest'; // get name from payload or set default - li.innerHTML = '<b>' + name + '</b> <small>' + payload.pk16 + '</small>: ' + payload.message; // set li contents + li.innerHTML = '<b><' + name + '</b> <small>' + payload.pk16 + '</small><b>></b> ' + payload.message; // set li contents console.log(ul.scrollTop + ' ' + ul.scrollHeight + ' ' + ul.clientHeight); var must_scroll = (ul.scrollTop >= ul.scrollHeight - ul.clientHeight - 10); |