diff --git a/pwa/app.js b/pwa/app.js index eddfa8d..5e3044c 100644 --- a/pwa/app.js +++ b/pwa/app.js @@ -46,6 +46,16 @@ class Account { console.log('Sub-addr: ' + test_addr.genSubAddr('test')); }); +document.querySelector('#btn-generate').addEventListener('click', (event) => { + event.preventDefault(); + console.log('TODO: address generation'); + ['a', 'b'].forEach((e) => { + const test_addr = new Account(e, '+', 'example.org', '11voiefK5PgCX5F1TTcuoQ=='); + console.log(test_addr); + console.log('Sub-addr: ' + test_addr.genSubAddr('test')); + }); +}); + window.addEventListener('load', () => { if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw.js'); diff --git a/pwa/index.html b/pwa/index.html index 05f400c..1c6bb00 100644 --- a/pwa/index.html +++ b/pwa/index.html @@ -12,5 +12,45 @@ +
+
+
+
+

New email address

+
+ +
+
+
+ +
+
+

+ New +

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+