cleanup
This commit is contained in:
parent
5e51935601
commit
fde9edd139
10
index.html
10
index.html
|
@ -34,14 +34,20 @@
|
|||
<h1><label>What's your email?</label></h1>
|
||||
<input class="js-acme-account-email" type="email" placeholder="john@doe.family" required>
|
||||
<br>
|
||||
<br>
|
||||
<label><input class="js-acme-account-tos" type="checkbox" required>
|
||||
Agree to <a class="js-acme-tos-url" target="acme-tos">Let's Encrypt Terms of Service</a>?</label>
|
||||
<br>
|
||||
<br>
|
||||
<label><input class="js-greenlock-account-tos" type="checkbox" required>
|
||||
Agree to <a class="js-gl-tos">Greenlock Terms of Service</a>?</label>
|
||||
<br>
|
||||
<br>
|
||||
<!--
|
||||
<a href="#">advanced (use existing account)</a>
|
||||
<br>
|
||||
<br>
|
||||
-->
|
||||
<button type="submit">Next</button>
|
||||
</form>
|
||||
|
||||
|
@ -152,12 +158,12 @@
|
|||
<form class="js-acme-form js-acme-form-download">
|
||||
<div>
|
||||
<h2><label>privkey.pem</label></h2>
|
||||
<textarea class="js-privkey">-</textarea>
|
||||
<textarea cols="80" rows="10" class="js-privkey">-</textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2><label>fullchain.pem</label></h2>
|
||||
<textarea class="js-fullchain">-</textarea>
|
||||
<textarea cols="80" rows="60" class="js-fullchain">-</textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
if (a > b) { return -1; }
|
||||
});
|
||||
|
||||
return BACME.directory($qs('.js-acme-directory-url').value).then(function (directory) {
|
||||
return BACME.directory({ directoryUrl: $qs('.js-acme-directory-url').value }).then(function (directory) {
|
||||
$qs('.js-acme-tos-url').href = directory.meta.termsOfService;
|
||||
return BACME.nonce().then(function (_nonce) {
|
||||
nonce = _nonce;
|
||||
|
|
|
@ -33,8 +33,8 @@ BACME._logBody = function (body) {
|
|||
console.log('');
|
||||
};
|
||||
|
||||
BACME.directory = function (url) {
|
||||
return webFetch(directoryUrl, { mode: 'cors' }).then(function (resp) {
|
||||
BACME.directory = function (opts) {
|
||||
return webFetch(opts.directoryUrl || directoryUrl, { mode: 'cors' }).then(function (resp) {
|
||||
BACME._logHeaders(resp);
|
||||
return resp.json().then(function (body) {
|
||||
directory = body;
|
||||
|
|
Loading…
Reference in New Issue