Skip to content

Commit 38e7925

Browse files
committed
initial intro
initial intro before anything in Server Software has been selected
1 parent b9d3b61 commit 38e7925

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/js/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ templateContext.keys().forEach(key => {
4141

4242

4343
const render = async () => {
44+
45+
// initial introduction
46+
if (document.getElementById('form-generator').server.value === '') {
47+
document.getElementById('output-header').innerHTML =
48+
`
49+
<h3>Welcome to the Mozilla SSL Config Generator</h3>
50+
<p>Select an application server in Server Software (above) to generate a sample TLS configuration.</p>
51+
<p>When using sample TLS configurations, replace example.com with your server name (e.g. hostname) and replace /path/to/... with actual paths to your local files.</p>
52+
`;
53+
document.getElementById('output-config').innerHTML = '';
54+
document.getElementById('copy').classList.toggle('d-none', true);
55+
return;
56+
}
57+
4458
const _state = await state();
4559

4660
// enable and disable the appropriate fields

0 commit comments

Comments
 (0)