From 51f594091bfcb00332acd2da0e12201c84d83a37 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Sat, 11 Nov 2023 10:58:14 +0100 Subject: [PATCH] Lint js fix. --- assets/js/contact.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/contact.js b/assets/js/contact.js index 5720920..025263e 100644 --- a/assets/js/contact.js +++ b/assets/js/contact.js @@ -14,21 +14,21 @@ const activateForm = function () { form.setAttribute('action', action); button.removeAttribute('disabled'); - } + }; // Display the hidden form. form.classList.remove('hidden'); // Wait for a mouse to move, indicating they are human. - document.body.addEventListener('mousemove', activateForm, { once: true }); + document.body.addEventListener('mousemove', activateForm, {once: true}); // Wait for a touch move event, indicating that they are human. - document.body.addEventListener('touchmove', activateForm, { once: true }); + document.body.addEventListener('touchmove', activateForm, {once: true}); // A tab or enter key pressed can also indicate they are human. document.body.addEventListener('keydown', function (e) { if ((e.key === 'Tab') || (e.key === 'Enter')) { activateForm(); } - }, { once: true }); + }, {once: true}); // Mark the form as submitted. button.addEventListener('click', () => form.classList.add('js-submitted'));