main
yova 3 years ago
parent 3ef82f6b2a
commit 6a288ba963

@ -11,3 +11,7 @@ hugo serve
`$SSH_PRIVATE_KEY` and `$SFTP_USER` need to be set in CI/CD pipelines. `$SSH_PRIVATE_KEY` and `$SFTP_USER` need to be set in CI/CD pipelines.
## used stuff
- hugo-bearblog theme: https://github.com/janraasch/hugo-bearblog
- reusable form: c) 2017 Prasanth Janardanan http://reusableforms.com/d/o5/html5-contact-form-send-email
-

@ -55,14 +55,13 @@ $(function()
$btn.text('Sending ...'); $btn.text('Sending ...');
}); });
$('#error_message').hide(); //todo fetch error here
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: '/contact-form/handler.php', url: '/contact-form/handler.php',
data: $form.serialize(), data: $form.serialize(),
success: after_form_submitted, success: after_form_submitted,
error: submit_error(null),
dataType: 'json' dataType: 'json'
}); });

Loading…
Cancel
Save