Minor style fix to contact.js.
This commit is contained in:
parent
7df8e982ab
commit
14f336f1d0
1 changed files with 3 additions and 3 deletions
|
|
@ -12,14 +12,14 @@
|
||||||
const action = form.getAttribute('data-protect');
|
const action = form.getAttribute('data-protect');
|
||||||
const body = document.querySelector('body');
|
const body = document.querySelector('body');
|
||||||
|
|
||||||
// Display the hidden form.
|
|
||||||
form.classList.remove('hidden');
|
|
||||||
|
|
||||||
function activateForm() {
|
function activateForm() {
|
||||||
form.setAttribute('action', action);
|
form.setAttribute('action', action);
|
||||||
button.removeAttribute('disabled');
|
button.removeAttribute('disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display the hidden form.
|
||||||
|
form.classList.remove('hidden');
|
||||||
|
|
||||||
// Wait for a mouse to move, indicating they are human.
|
// Wait for a mouse to move, indicating they are human.
|
||||||
body.addEventListener('mousemove', () => activateForm());
|
body.addEventListener('mousemove', () => activateForm());
|
||||||
// Wait for a touch move event, indicating that they are human.
|
// Wait for a touch move event, indicating that they are human.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue