mirror of
https://github.com/dawidolko/Website-Templates.git
synced 2026-02-04 17:40:04 +00:00
Website templates
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
$(document).ready(function() {
|
||||
"use strict";
|
||||
// --------------Newsletter-----------------------
|
||||
|
||||
$(".newsletter-signup").ajaxChimp({
|
||||
callback: mailchimpResponse,
|
||||
url: "" // Replace your mailchimp post url inside double quote "".
|
||||
});
|
||||
$( window ).resize(function() {
|
||||
location.reload();
|
||||
});
|
||||
function mailchimpResponse(resp) {
|
||||
if(resp.result === 'success') {
|
||||
|
||||
$('.alert-success').html(resp.msg).fadeIn().delay(3000).fadeOut();
|
||||
|
||||
} else if(resp.result === 'error') {
|
||||
$('.alert-warning').html(resp.msg).fadeIn().delay(3000).fadeOut();
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user