-
-
Save gugote/764c1e8465a0267cb6fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// hover text change | |
$('a.questions').mouseenter(function() { | |
$(this).html('[email protected]'); | |
}); | |
$('a.questions').mouseleave(function() { | |
$(this).html('Questions? Drop us a line.'); | |
}); | |
$('a.questionsspanish').mouseenter(function() { | |
$(this).html('[email protected]'); | |
}); | |
$('a.questionsspanish').mouseleave(function() { | |
$(this).html('¿Preguntas? Escribenos.'); | |
}); | |
$('a.moreinfo').mouseenter(function() { | |
$(this).html('[email protected]'); | |
}); | |
$('a.moreinfo').mouseleave(function() { | |
$(this).html('Request more info'); | |
}); | |
$('a.moreinfospanish').mouseenter(function() { | |
$(this).html('[email protected]'); | |
}); | |
$('a.moreinfospanish').mouseleave(function() { | |
$(this).html('Pedir más información'); | |
}); | |
// remodal | |
var inst = $('[data-remodal-id=signup]').remodal(); | |
// WOW | |
wow = new WOW({ | |
animateClass: 'animated', | |
offset: 100 | |
} | |
); | |
wow.init(); | |
// validate the comment form when it is submitted | |
$( "#theform" ).validate({ | |
rules: { | |
email: { | |
required: true, | |
email: true | |
} | |
} | |
// send mail php | |
var sendMailUrl = $("#sendMailUrl").val(); | |
//vars | |
var username = $("#username").val(); | |
var email = $("#email").val(); | |
var message = $("#message").val(); | |
var data = { "username": username, "email":email,"message": message }; | |
// ajax | |
$.ajax({ | |
type:"POST", | |
url: sendMailUrl, | |
data: data, | |
success: function(){ | |
$("#theform").fadeOut(); | |
$("#sent-form-msg").fadeIn(); | |
} | |
}); | |
return false; | |
}); | |
// hide messages | |
$("#sent-form-msg").hide(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment