diff options
author | Ev Bogue <ev@evbogue.com> | 2019-11-16 16:44:32 -0600 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2019-11-17 02:37:07 +0100 |
commit | 86f284e9b1e5d13b9a0b17617f5bcc40c77b93cc (patch) | |
tree | d14b227bb262f3fee5210533bc5f8216283e23e3 /views.js | |
parent | f4feab4ca28cc5136ae00cd9a85681a95848bdd8 (diff) |
add profile photos that are cropped to 250 by 250 and saved to your log
Diffstat (limited to 'views.js')
-rw-r--r-- | views.js | 47 |
1 files changed, 1 insertions, 46 deletions
@@ -10,7 +10,6 @@ function profilePage (src, keys) { scroller.appendChild(profile) - if (src != keys.publicKey) { reply = { author: src } scroller.appendChild(composer(keys, reply)) @@ -22,49 +21,16 @@ function profilePage (src, keys) { sync(subs, keys) - var input = h('input', {placeholder: 'Nova nomo'}) - profile.appendChild(h('a', {href: '#' + src}, [getName(src, keys)])) - profile.appendChild(h('br')) - var identify = h('div', [ - input, - h('button', { - onclick: function () { - if (input.value) { - content = { - type: 'name', - named: src, - name: input.value - } - localforage.removeItem('name:' + src) - publish(content, keys).then(post => { - open(post).then(msg => { - input.value = '' - scroller.insertBefore(render(msg, keys), scroller.childNodes[1]) - }) - }) - } - } - }, ['Identigi']) - ]) - - var identifyButton = h('button', { - onclick: function () { - profile.appendChild(identify) - identifyButton.parentNode.removeChild(identifyButton) - } - }, ['Identigi ' + src.substring(0, 10) + '...']) - var mentionsButton = h('button', { onclick: function () { location.href = '#?' + src } }, ['Mencioj']) - profile.appendChild(identifyButton) - + profile.appendChild(identify(src, profile, keys)) profile.appendChild(mentionsButton) localforage.getItem('subscriptions').then(function (subs) { @@ -103,22 +69,11 @@ function profilePage (src, keys) { }) } }) - - /*bog(src).then(log => { - if (log) { - log.forEach(function (msg) { - open(msg).then(post => { - scroller.appendChild(render(post, keys)) - }) - }) - } - })*/ } function searchPage (src, keys) { var search = src.substring(1).replace("%20"," ").toUpperCase() - //scroller.appendChild(composer(keys)) bog().then(log => { if (log) { log.forEach(function (msg) { |