client/modules/key.jsView |
---|
14 | 14 … | screen_view: function (path, sbot) { |
15 | 15 … | if(path === 'Key') { |
16 | 16 … | if(process.title === 'browser') { |
17 | 17 … | console.log(config.path) |
| 18 … | + var appName = h('input.import', {placeholder: localStorage.appname, name:'textarea', style: 'width: 50%'}) |
18 | 19 … | var importKey = h('textarea.import', {placeholder: 'Import your Decent public/private key', name: 'textarea', style: 'width: 97%; height: 100px;'}) |
19 | 20 … | var importRemote = h('textarea.import', {placeholder: 'Import a new Decent websocket remote', name: 'textarea', style: 'width: 97%;'}) |
20 | 21 … | var content = h('div.column.scroller__content') |
21 | 22 … | var div = h('div.column.scroller', |
64 | 65 … | alert('Your websocket remote has been updated') |
65 | 66 … | } |
66 | 67 … | location.hash = "" |
67 | 68 … | location.reload() |
68 | | - }}, 'Import remote') |
| 69 … | + }}, 'Import remote'), |
| 70 … | + h('hr'), |
| 71 … | + appName, |
| 72 … | + h('button.btn.btn-success', {onclick: function (e){ |
| 73 … | + if(appName.value) { |
| 74 … | + localStorage.appname = appName.value |
| 75 … | + e.preventDefault() |
| 76 … | + alert('Your appname is set to '+ localStorage.appname) |
| 77 … | + } |
| 78 … | + location.hash = "" |
| 79 … | + location.reload() |
| 80 … | + }}, 'Change appname'), |
69 | 81 … | ) |
70 | 82 … | ) |
71 | 83 … | ) |
72 | 84 … | ) |