From 6a288ba963ae487c68cdd3f599ee0850872877e5 Mon Sep 17 00:00:00 2001 From: yova Date: Sun, 10 Oct 2021 01:48:44 +0200 Subject: [PATCH] add tks --- README.md | 4 ++++ static/contact-form/form.js | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 53ca799..56e1f6b 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,7 @@ hugo serve `$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 +- diff --git a/static/contact-form/form.js b/static/contact-form/form.js index bba2df0..b6e4bd7 100644 --- a/static/contact-form/form.js +++ b/static/contact-form/form.js @@ -55,14 +55,13 @@ $(function() $btn.text('Sending ...'); }); - $('#error_message').hide(); - + //todo fetch error here + $.ajax({ type: "POST", url: '/contact-form/handler.php', data: $form.serialize(), success: after_form_submitted, - error: submit_error(null), dataType: 'json' });