Commit 3e3f7d8a19eed40a31f1299dfe93be38b27ff638
make New Post a button
Ev Bogue committed on 1/3/2019, 5:32:37 PMParent: 5d055f341136089cb45b7c7feab86b90e8c04232
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -15,9 +15,9 @@ | |||
15 | 15 … | var nav = h('div.navbar', | |
16 | 16 … | h('div.internal', | |
17 | 17 … | h('li', h('a', {href: '#' + id}, h('span.avatar--small', avatar.image(id)))), | |
18 | 18 … | h('li', h('a', {href: '#' + id}, avatar.name(id))), | |
19 | - h('li', h('a', 'Post', { | ||
19 … | + h('li', h('a', h('button', 'New Post', { | ||
20 | 20 … | onclick: function () { | |
21 | 21 … | if (document.getElementById('composer')) { return } | |
22 | 22 … | else { | |
23 | 23 … | var currentScreen = document.getElementById('screen') | |
@@ -30,12 +30,12 @@ | |||
30 | 30 … | currentScreen.firstChild.appendChild(composer) | |
31 | 31 … | } | |
32 | 32 … | } | |
33 | 33 … | } | |
34 | - })), | ||
34 … | + }))), | ||
35 | 35 … | h('li', h('a', {href: '#' }, 'All')), | |
36 | 36 … | h('li', h('a', {href: '#wall/' + id }, 'Wall')), | |
37 | - h('li', h('a', {href: '#key' }, 'Key')), | ||
37 … | + h('li', h('a', {href: '#key' }, 'Your Key')), | ||
38 | 38 … | h('li.right', h('a', {href: 'http://github.com/evbogue/decent'}, '?')), | |
39 | 39 … | ) | |
40 | 40 … | ) | |
41 | 41 … |
Built with git-ssb-web