diff --git a/js/form-handling.js b/js/form-handling.js index d0ae224..e09e67d 100644 --- a/js/form-handling.js +++ b/js/form-handling.js @@ -1,3 +1,7 @@ +/* +* Contact form handling using AJAX, sends request to Formspree.io +*/ + var $contactForm = $('#contactme'); $contactForm.submit(function(e) { @@ -16,7 +20,7 @@ $contactForm.submit(function(e) { console.log("Sending."); }, success: function(data) { - console.log("Sent."); + $("#contact-popup").fadeIn(); }, error: function(err) { console.log("Failed.");