Newsletter Sign Up
"*" indicates required fields
(function () {
var LOGO_WIDTH = '200px';
function setImp(el, props) {
for (var k in props) { el.style.setProperty(k, props[k], 'important'); }
}
function fixNewsletterForm() {
document.querySelectorAll('.nl-form').forEach(function (root) {
root.querySelectorAll('.gform_footer, .gform-footer, .gform_page_footer').forEach(function (f) {
setImp(f, { 'display': 'flex', 'flex-direction': 'column', 'align-items': 'stretch', 'justify-content': 'center', 'width': '100%', 'text-align': 'center' });
});
root.querySelectorAll('.gform_footer input[type="submit"], .gform_footer button, .gform-footer input[type="submit"], .gform-footer button, .gform_page_footer input[type="submit"]').forEach(function (b) {
setImp(b, { 'display': 'block', 'width': '100%', 'max-width': '100%', 'float': 'none', 'margin-left': '0', 'margin-right': '0' });
});
root.querySelectorAll('.gform_heading img, .gfield--type-html img, .gfield_html img, .gform_description img').forEach(function (img) {
setImp(img, { 'display': 'block', 'width': LOGO_WIDTH, 'max-width': '100%', 'height': 'auto', 'margin-left': 'auto', 'margin-right': 'auto' });
});
root.querySelectorAll('.gfield--type-email').forEach(function (field) {
setImp(field, { 'grid-column': '1 / -1', 'width': '100%', 'max-width': '100%', 'flex': '0 0 100%' });
field.querySelectorAll('.ginput_container, .ginput_container_email').forEach(function (c) {
setImp(c, { 'width': '100%', 'max-width': '100%' });
});
field.querySelectorAll('input').forEach(function (i) {
setImp(i, { 'width': '100%', 'max-width': '100%', 'min-width': '0' });
});
});
});
}
var timer;
function schedule() { clearTimeout(timer); timer = setTimeout(fixNewsletterForm, 50); }
document.addEventListener('DOMContentLoaded', fixNewsletterForm);
window.addEventListener('load', fixNewsletterForm);
if (window.jQuery) { jQuery(document).on('gform_post_render', schedule); }
new MutationObserver(schedule).observe(document.documentElement, { childList: true, subtree: true });
fixNewsletterForm();
})();