Tied in new homepage with the rest of the app.
This commit is contained in:
parent
62f3d28a71
commit
3cfbc9339b
|
@ -7,7 +7,7 @@
|
||||||
<body hidden>
|
<body hidden>
|
||||||
<div class="column-container wide">
|
<div class="column-container wide">
|
||||||
<div class="column-row">
|
<div class="column-row">
|
||||||
<img src="img/greenlock-146.png">
|
<img src="../img/greenlock-820x150.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="column-row">
|
<div class="column-row">
|
||||||
<h1>Get the green lock for your website</h1>
|
<h1>Get the green lock for your website</h1>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
var apiUrl = 'https://acme-{{env}}.api.letsencrypt.org/directory';
|
var apiUrl = 'https://acme-{{env}}.api.letsencrypt.org/directory';
|
||||||
function updateApiType() {
|
function updateApiType() {
|
||||||
|
console.log("type updated");
|
||||||
var input = this || Array.prototype.filter.call(
|
var input = this || Array.prototype.filter.call(
|
||||||
$qsa('.js-acme-api-type'), function ($el) { return $el.checked; }
|
$qsa('.js-acme-api-type'), function ($el) { return $el.checked; }
|
||||||
)[0];
|
)[0];
|
||||||
|
@ -507,8 +508,22 @@
|
||||||
hideForms();
|
hideForms();
|
||||||
$qs('.js-acme-form-download').hidden = false;
|
$qs('.js-acme-form-download').hidden = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
steps[1]();
|
steps[1]();
|
||||||
|
|
||||||
|
var params = new URLSearchParams(window.location.search);
|
||||||
|
var apiType = params.get('acme-api-type') || "staging-v02";
|
||||||
|
|
||||||
|
if(params.has('acme-domains')) {
|
||||||
|
console.log("acme-domains param: ", params.get('acme-domains'));
|
||||||
|
$qs('.js-acme-domains').value = params.get('acme-domains');
|
||||||
|
|
||||||
|
$qsa('.js-acme-api-type').forEach(function(ele) {
|
||||||
|
if(ele.value === apiType) {
|
||||||
|
ele.checked = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
submitForm();
|
||||||
|
}
|
||||||
|
|
||||||
$qs('body').hidden = false;
|
$qs('body').hidden = false;
|
||||||
}());
|
}());
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
</label>
|
</label>
|
||||||
<label><input name="acme-api-type" type="radio" value="staging-v02" required>
|
<label><input name="acme-api-type" type="radio" value="staging-v02" required>
|
||||||
Testing</label>
|
Testing</label>
|
||||||
<input id="js-acme-api-url" name="acme-api-url" type="url" placeholder="ACME directory url">
|
<input id="js-acme-api-url" type="url" placeholder="ACME directory url">
|
||||||
<div>
|
<div>
|
||||||
<a href="https://git.coolaj86.com/coolaj86/greenlock.html">View Source</a> (git)
|
<a href="https://git.coolaj86.com/coolaj86/greenlock.html">View Source</a> (git)
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue