diff --git a/src/flo/index.liquid b/src/flo/index.liquid index ca2c3ad..fbdece7 100644 --- a/src/flo/index.liquid +++ b/src/flo/index.liquid @@ -91,7 +91,7 @@ layout: layouts/flo
Any tutorial on running a Navidrome server?
-

Great! I wrote one here.

+

Great! I wrote one here.

@@ -120,7 +120,7 @@ layout: layouts/flo

Join the waitlist

Currently flo is in early preview and we'll let you know when we're on the App Store.

- +
@@ -135,22 +135,36 @@ const submitButton = document.getElementById('submit') openModal.onclick = function() { modal.style.display = 'block' + + setTimeout(function() { + emailForm.focus() + }, 66) } openModal2.onclick = function() { modal.style.display = 'block' + + setTimeout(function() { + emailForm.focus() + }, 66) } closeModal.onclick = function() { modal.style.display = 'none' } -window.onclick = function () { +document.onclick = function () { if (event.target === modal) { modal.style.display = 'none' } } +document.addEventListener('keydown', function(e) { + if (e.key === 'Escape' || e.keyCode === 27) { + modal.style.display = 'none' + } +}) + submitButton.onclick = function() { if (!emailForm.value.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)) { window.alert("email doesnt seem valid")