diff options
-rw-r--r-- | public/scripts/main.js | 1 | ||||
-rw-r--r-- | views/index.pug | 11 |
2 files changed, 8 insertions, 4 deletions
diff --git a/public/scripts/main.js b/public/scripts/main.js index d732b97..409580d 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -6,4 +6,3 @@ const peer = new Peer(userId, {host: '127.0.0.1', port: 4242, path: '/'}); peer.on('open', id => { console.log('[LOG] Your ID is ' + id) }); - diff --git a/views/index.pug b/views/index.pug index acee1dd..e09cc9d 100644 --- a/views/index.pug +++ b/views/index.pug @@ -8,9 +8,14 @@ block content section.nes-container.with-title h2.title Chat Window .containers + pre#incoming.nes-container.with-title form.form.nes-container.with-title .field - label(for='incoming') - textarea#incoming.nes-textarea + label(for='outgoing') Message + textarea#outgoing.nes-textarea button(type=submit).nes-btn.is-primary Submit - pre#outgoing.nes-container.with-title + form.form.nes-container.with-title + .field + label(for='user_id') Your friend's ID + input#user_id.nes-input + button(type=submit).nes-btn.is-primary Submit |