1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-02 00:05:37 +01:00
site/_src/_assets/javascripts/bigchain/newsletter.js

38 lines
684 B
JavaScript

//=include ../vendor/jquery.ajaxchimp.js
var Newsletter = (function(w, d, $) {
'use strict';
var app, _private, _config;
_config = {
newsletter: $('#newsletter')
},
_private = {
parsley: function() {
if (_config.newsletter.length > 0) {
_config.newsletter.parsley({
trigger: 'change'
});
}
},
ajaxChimp: function() {
_config.newsletter.ajaxChimp();
}
};
app = {
init: function() {
_private.parsley();
_private.ajaxChimp();
}
};
return app;
})(window, document, jQuery);