mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
add success message + effect
This commit is contained in:
parent
15aeb408c6
commit
5d44f0e35f
2 changed files with 3 additions and 22 deletions
|
@ -46,6 +46,7 @@
|
|||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<input class="btn-blue-solid reset" type="submit" value="Send Message">
|
||||
<div id="msg_sent" style="display: none;"> Message Sent! </div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -6,30 +6,10 @@
|
|||
var email = $('#contact_email').val();
|
||||
var category = $('#contact_category').val();
|
||||
var message = $('#contact_message').val();
|
||||
// $.ajax({
|
||||
// type: 'POST',
|
||||
// url: 'https://mandrillapp.com/api/1.0/messages/send.json',
|
||||
// data: {
|
||||
// 'key': 'YOUR API KEY HERE',
|
||||
// 'message': {
|
||||
// 'from_email': 'YOUR@EMAIL.HERE',
|
||||
// 'to': [
|
||||
// {
|
||||
// 'email': 'RECIPIENT@EMAIL.HERE',
|
||||
// 'name': 'RECIPIENT NAME (OPTIONAL)',
|
||||
// 'type': 'to'
|
||||
// }
|
||||
// ],
|
||||
// 'autotext': 'true',
|
||||
// 'subject': 'YOUR SUBJECT HERE!',
|
||||
// 'html': 'YOUR EMAIL CONTENT HERE! YOU CAN USE HTML!'
|
||||
// }
|
||||
// }
|
||||
// }).done(function(response) {
|
||||
// console.log(response); // if you're into that sorta thing
|
||||
// });
|
||||
console.log(name,email,category,message);
|
||||
$(this).closest('form').find('input[type=text], textarea').val('');
|
||||
$('#msg_sent').css('display', 'inline-block');
|
||||
$('#msg_sent' ).fadeOut(3000);
|
||||
});
|
||||
});
|
||||
}(jQuery));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue