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