diff options
-rw-r--r-- | app.js | 4 | ||||
-rw-r--r-- | lib.js | 4 |
2 files changed, 3 insertions, 5 deletions
@@ -1,8 +1,6 @@ var screen = h('div', {id: 'screen'}) document.body.appendChild(screen) -//var header = h('div', {classList: 'message'}) - var keys = getKeys() var navbar = h('div', {classList: 'navbar'}, [ @@ -140,7 +138,7 @@ function route () { document.getElementById("inp").addEventListener("change", readFile); } - var ws = new WebSocket('ws://localhost:8080/' + src) + var ws = new WebSocket('ws://bogbook.com/' + src) var clientLog = { publicKey: src @@ -169,7 +169,7 @@ function renderMessage (post) { if (post.content.reply) { message.appendChild(h('span', [ 're: ', - h('a', {href: '#' + post.content.reply}, [post.content.reply]) + h('a', {href: '#' + post.content.reply}, [post.content.reply.substring(0, 10) + '...']) ])) } @@ -234,7 +234,7 @@ function getImage (id) { } function getName (id) { - var name = h('span', [id]) + var name = h('span', [id.substring(0, 10) + '...']) if (localStorage[id]) { var log = JSON.parse(localStorage[id]) for (var i=0; i < log.length; i++) { |