Permalink
Browse files

Added on touchmove to contact.js.

  • Loading branch information...
frjo committed Jun 14, 2018
1 parent 6215621 commit b6f2b9168b3bfb444a483e68f25d03310f327ab6
Showing with 7 additions and 0 deletions.
  1. +7 −0 static/js/contact.js
View
@@ -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)) {

0 comments on commit b6f2b91

Please sign in to comment.