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');
|
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.");
|
||||||
|
|
Loading…
Reference in a new issue