Added on touchmove to contact.js.
This commit is contained in:
parent
6215621ea5
commit
b6f2b9168b
1 changed files with 7 additions and 0 deletions
|
|
@ -25,6 +25,13 @@
|
|||
$contact_button.attr('disabled', false);
|
||||
});
|
||||
|
||||
// Wait for a touch move event, indicating that they are human.
|
||||
$('body').on('touchmove', function () {
|
||||
// Unlock the form.
|
||||
$contact_form.attr('action', contact_action);
|
||||
$contact_button.attr('disabled', false);
|
||||
});
|
||||
|
||||
// A tab or enter key pressed can also indicate they are human.
|
||||
$('body').keydown(function (e) {
|
||||
if ((e.keyCode === 9) || (e.keyCode === 13)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue