taking out from gitignore for github pages

This commit is contained in:
Arjun Patel
2019-01-25 01:16:53 -08:00
parent 586c848b7f
commit 748f25ce2c
5 changed files with 63 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
$(document).ready(function() {
$('#email-form').submit(function(e) {
e.preventDefault();
$.ajax({
url: 'http://localhost:3000/api/users/landing',
type: 'post',
data: $('#email-form').serialize(),
success: function(data) {
//whatever you wanna do after the form is successfully submitted
$('#popup')
.text('Added to list! Thank you for joining!')
.slideDown()
.delay(4000)
.slideUp();
},
error: function(error) {
$('#popup')
.text('Email invalid or exists')
.slideDown()
.delay(4000)
.slideUp();
}
});
});
});