Add popup.

This commit is contained in:
Marc 2015-12-24 20:47:55 -05:00
parent 7e6bee7633
commit 978ff245d6

View file

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