diff --git a/new/includes/examples/on-demand.md b/new/includes/examples/on-demand.md new file mode 100644 index 0000000..aa3553a --- /dev/null +++ b/new/includes/examples/on-demand.md @@ -0,0 +1,36 @@ + + +
+ +```caddy +{ + on_demand_tls { + ask http://localhost:9123/check + } +} + +https:// { + tls { + on_demand + } + # reverse_proxy, etc... +} + +# other sites... +``` + +
diff --git a/new/on-demand-tls.html b/new/on-demand-tls.html index 1ff0139..ce24099 100644 --- a/new/on-demand-tls.html +++ b/new/on-demand-tls.html @@ -72,21 +72,7 @@
- { - on_demand_tls { - ask http://localhost:9123/check - } -} - -https:// { - tls { - on_demand - } - # reverse_proxy, etc... -} - -# other sites... - + {{ markdown (include "/includes/examples/on-demand.md") }}
@@ -147,4 +133,4 @@ AAAA -> 2001:db8:900d:1337 {{include "/includes/footer.html"}} - \ No newline at end of file + diff --git a/new/resources/js/common.js b/new/resources/js/common.js index 96d7278..5fa4233 100644 --- a/new/resources/js/common.js +++ b/new/resources/js/common.js @@ -188,11 +188,11 @@ on('mouseover', '.button:not(.cool), button:not(.cool)', (e) => { // mouseover highlights for feature sections that explain config on('mouseover', '.rollover', e => { const target = e.target.closest('.rollover') || e.target; - $$(`.${target.dataset.rollover}`).forEach(elem => elem.classList.add('show')); + $$_(`.${target.dataset.rollover}`).forEach(elem => elem.classList.add('show')); }); on('mouseout', '.rollover', e => { const target = e.target.closest('.rollover') || e.target; - $$(`.${target.dataset.rollover}`).forEach(elem => elem.classList.remove('show')); + $$_(`.${target.dataset.rollover}`).forEach(elem => elem.classList.remove('show')); }); diff --git a/new/resources/js/home.js b/new/resources/js/home.js index 0c40f09..5edd4df 100644 --- a/new/resources/js/home.js +++ b/new/resources/js/home.js @@ -20,14 +20,5 @@ const resp = fetch("/resources/testimonials.json").then(async resp => { } $_(`.testimonial-col:nth-child(${i%3 + 1})`).append(tpl); } - - on('mouseover', '.rollover', e => { - const target = e.target.closest('.rollover') || e.target; - $$_(`.${target.dataset.rollover}`).forEach(elem => elem.classList.add('show')); - }); - on('mouseout', '.rollover', e => { - const target = e.target.closest('.rollover') || e.target; - $$_(`.${target.dataset.rollover}`).forEach(elem => elem.classList.remove('show')); - }); }); });