Add popup.
This commit is contained in:
parent
7e6bee7633
commit
978ff245d6
1 changed files with 5 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue