Newsletter template

Newsletter template

|

|

GET INSPIRED, ENRAGED,
ENGAGED…
AND INVOLVED!

SUBSCRIBE TO OUR MONTHLY NEWSLETTER

' + '
' + '
' + '' + '
' + '
' + '' + '
' + '' + '
' + ' ' + ' ' + '
' + ' ' + '' + '' + '
' + ' ' + '
' + '' + '' + '';var successHtml120832 = '\u003cscript\u003ewindow.location.replace(\'https://smallchangefund.ca/\')\u003c/script\u003e';( function($) {if (!Bloomerang.useEmailId('120832')) { html120832 = '

Only one email sign-up form can be used on each page.

'; } if (jQuery('#bloomerangForm120832').length) { jQuery('#bloomerangForm120832').after(html120832); }; if (Bloomerang.emailSignupFormLoaded) { return false; } Bloomerang.emailSignupFormLoaded = true; jQuery('.email-registration-form .section.captcha').attr('style', 'display: none'); Bloomerang.useKey('pub_51043c6a-356a-11ef-886a-065cb98c8979'); // Register proper callbacks for various stages/outcomes of submission Bloomerang.Widget.Email.OnSubmit = function (args) { jQuery(".btn-submit-email").val("Registering...").prop("disabled", true).addClass("disabled"); var val = function (selector) { return jQuery(selector).val(); }; Bloomerang.Account .individual() .firstName(val(".email-registration-form #first-name")) .lastName(val(".email-registration-form #last-name")) .homeEmail(val(".email-registration-form #email-address")) .applyEmailSignupCustomFields(); Bloomerang.Interaction.applyEmailSignupCustomFields(); }; Bloomerang.ValidateEmailSignupFormCaptcha = function() { if (typeof(grecaptcha) !== "undefined" && jQuery("#captcha" + Bloomerang.Data.WidgetIds.EmailSignup).children().length) { var captchaResponse = grecaptcha.getResponse(jQuery(".email-registration-form").data("captcha-id")); if (captchaResponse) { jQuery(".email-registration-form .noCaptchaResponseError").hide(); Bloomerang.captchaResponse(captchaResponse); return true; } else { jQuery(".email-registration-form .noCaptchaResponseError").show(); return false; } } else return true; }; Bloomerang.Api.OnSuccess = Bloomerang.Widget.Email.OnSuccess = function (response) { jQuery("#email-registration-form-container").html(successHtml120832); var distance = 100; var offset = jQuery("#email-registration-form-container").offset().top; var offsetTop = offset > distance ? offset - distance : offset; jQuery('html, body').animate({ scrollTop : offsetTop}, 500); }; Bloomerang.Api.OnError = Bloomerang.Widget.Email.OnError = function (response) { jQuery(".btn-submit-email").val("Register").prop("disabled", false).removeClass("disabled"); jQuery("#email-registration-form-container .errors").removeClass("hidden").html(response.Message); var distance = 100; var offset = jQuery("#email-registration-form-container .errors").offset().top; var offsetTop = offset > distance ? offset - distance : offset; jQuery('html, body').animate({ scrollTop : offsetTop}, 500); if (typeof(grecaptcha) !== "undefined" && jQuery("#captcha" + Bloomerang.Data.WidgetIds.EmailSignup).children().length) { grecaptcha.reset(jQuery(".email-registration-form").data("captcha-id")); } }; Bloomerang.Util.applyEmailSignupCustomFields = function (obj, type) { // Clear any fields from a previous failed submission obj.clearCustomFields(); // Apply all (not multiselect),

GET INSPIRED, ENRAGED,
ENGAGED...
AND INVOLVED!

SUBSCRIBE TO OUR MONTHLY NEWSLETTER