From 978ff245d63cbacf32b5f7b0293cdb1cbcefc3d8 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 24 Dec 2015 20:47:55 -0500 Subject: [PATCH] Add popup. --- js/form-handling.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.");