no-acme #10

Merged
lastlink merged 13 commits from lastlink/bluecrypt-keypairs.js:no-acme into master 2019-05-11 22:32:00 +00:00
1 changed files with 22 additions and 2 deletions
Showing only changes of commit 49ab998242 - Show all commits

20
app.js
View File

@ -118,7 +118,27 @@
}); });
}); });
$('form.js-keysign').addEventListener('submit', function (ev) {
ev.preventDefault();
ev.stopPropagation();
$('.js-pem-loading').hidden = false;
$('.js-toc-jws').hidden = true;
$('.js-toc-jwt').hidden = true;
$$('input').map(function ($el) { $el.disabled = true; });
$$('button').map(function ($el) { $el.disabled = true; });
// function here
// keys.generate()
// jws = jwk.sign(payload)
// jwt = jws.protected + '.' + jws.payload + '.' + jws.signature
// promise call back
$('.js-pem-loading').hidden = true;
$$('input').map(function ($el) { $el.disabled = false; });
$$('button').map(function ($el) { $el.disabled = false; });
});
$('.js-generate').hidden = false; $('.js-generate').hidden = false;
$('.js-sign').hidden = false;
} }
window.addEventListener('load', run); window.addEventListener('load', run);