.btn-submit-donation { background-color: white; }

    var insertForm30154752 = function() {
        var html30154752 = '' + 
'.donation-form label{color: #404040;' + 
'                display: block;}' + 
'' + 
'.donation-form label.error,' + 
'                     .donation-form #card-errors{color: #900;}' + 
'' + 
'.donation-form label.error{display: inline-block;' + 
'                padding: 0 10px;}' + 
'' + 
'.donation-form section{padding: 5px;}' + 
'' + 
'.donation-form .field{padding: 4px 0;}' + 
'' + 
'.donation-form .field .required-star{color: #aa0000; ' + 
'                display: inline-block; ' + 
'                margin-left: 5px;}' + 
'' + 
'.donation-form .field .checkboxes{max-width:275px;' + 
'                border: 1px solid #A9A9A9;' + 
'                -webkit-transition: all .3s ease-out;' + 
'                -moz-transition: all .3s ease-out;' + 
'                transition: all .3s ease-out;}' + 
'' + 
'.donation-form .field .checkbox{display:block;' + 
'                position:relative;' + 
'                -moz-box-sizing:border-box;' + 
'                box-sizing:border-box;' + 
'                height:30px;' + 
'                line-height:26px;' + 
'                padding:2px 28px 2px 8px;' + 
'                border-bottom:1px solid rgba(0,0,0,0.1);' + 
'                color:#404040;  ' + 
'                overflow:hidden;' + 
'                text-decoration:none; }' + 
'' + 
'.donation-form .field .checkbox input{opacity:0.01;' + 
'                position:absolute;' + 
'                left:-50px;  ' + 
'                z-index:-5;}' + 
'' + 
'.donation-form .field .checkbox:last-child{border-bottom:none;}' + 
'' + 
'.donation-form .field .checkbox.selected{background: rgb(50, 142, 253);' + 
'                color:#fff; }' + 
'' + 
'.donation-form .field .checkbox.selected:before{color:#fff;' + 
'                line-height:30px;' + 
'                position:absolute;' + 
'                right:10px; }' + 
'' + 
'.donation-form .field input,' + 
'                     .donation-form .field select,' + 
'                     .donation-form .field textarea,' + 
'                     .donation-form #card-element,' + 
'                     .donation-form #paypal-button-container{padding: 4px; ' + 
'                max-width: 275px;' + 
'                width: 96%}' + 
'' + 
'.donation-form .start-date label.error{padding: 4px; ' + 
'                max-width: 350px;' + 
'                width: 96%}' + 
'' + 
'.donation-form .field .StripeElement{background-color: white;' + 
'                background-color: -moz-field;' + 
'                border: 1px solid darkgray;' + 
'                display: inline-block;}' + 
'' + 
'.donation-form .field textarea.international{height: 120px;}' + 
'' + 
'.donation-form .field select{box-sizing: content-box;}' + 
'' + 
'.donation-form .field.radio label,' + 
'                     .donation-form .field.checkbox label{display: inline-block;}' + 
'' + 
'.donation-form .field.radio input,' + 
'                     .donation-form .field.checkbox input{width: auto;' + 
'                margin-left:0;}' + 
'' + 
'.donation-form .section.consent .field.checkbox:not(.consent-all){margin-left: 20px;}' + 
'' + 
'.donation-form #cardExpirationMonth,' + 
'                     .donation-form #cardExpirationYear{width: 85px;}' + 
'' + 
'.donation-form #security-code{width: 55px;}' + 
'' + 
'.donation-form .field .sidenote{color: #999;' + 
'                font-size: 10px; }' + 
'' + 
'.donation-form .field.other-option,' + 
'                     .donation-form .field.other-amount,' + 
'                     .donation-form .field.cardExpirationMonth,' + 
'                     .donation-form .field.cardExpirationYear{display: inline-block;}' + 
'' + 
'.donation-form .field.other-amount{padding-left: 6px;}' + 
'' + 
'.donation-form .field.cardExpirationMonth{padding-right: 20px;}' + 
'' + 
'.donation-form #other-amount{width: 65px;}' + 
'' + 
'.donation-form .errors{border: 1px solid #900;' + 
'                color: #900;  ' + 
'                padding: 10px;}' + 
'' + 
'.donation-form .radio label.error{display: inline-block;' + 
'                padding-right: 86%;  ' + 
'                float: right;}' + 
'' + 
'.donation-form .hidden{display: none;}' + 
'' + 
'.btn-group .btn-submit-donation{padding: 4px 10px;}' + 
'' + 
'iframe#spreedly-iframe[style=\'visibility: hidden;\']{display: none;}' + 
'' + 
'input, select, textarea, button{font-family: inherit;}' + 
'' + 
'#spreedly-modal-overlay[style="visibility:hidden"]{display: none;}' + 
'' + 
'' + 
'' + 
'
' + '
' + ' ' + '
' + '

Donation

' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '' + '
' + '
' + '
' + '' + '
' + '
' + '' + '' + '
' + '' + '' + '
' + ' ' + '
' + '
' + '' + '' + '
' + '' + '
' + '
' + '

Contact Information

' + '
' + '' + '' + '
' + '
' + '' + '' + '
' + '' + '
' + '' + '' + '
' + '' + '
' + '
' + '

Billing Address

' + '
' + '' + '' + '
' + '
' + '' + '' + '
' + '
' + '' + '' + '
' + '
' + '' + '' + '
' + '' + '
' + '' + '' + '
' + '' + '' + '
' + '
' + '

Payment Information

' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + ' ' + '
' + ' ' + '
' + '' + '
' + ' ' + '
' + '
' + '' + '' + '
' + '' + '
' + ' ' + '
' + '

Increase My Impact

' + '
' + '' + '
' + '' + '
' + '
' + '
' + '' + '
' + '
' + ' ' + '
' + '
' + '
' + '
' + '' + '' + '' + '';var successHtml30154752 = '
' + '

Thank You for Your Donation!

' + '

Your generous gift has been processed. We truly appreciate your support of our mission.

' + '\u003cdiv class=\"social-media-buttons\" style=\"margin-top:10px;\"\u003e\u003cdiv id=\"twitter-buttons\"\u003e\u003c/div\u003e\u003cdiv class=\"fb-like\" data-href=\"https://facebook.com/tristatefoodbank\" data-layout=\"button_count\" data-show-faces=\"true\" style=\"padding-right: 10px;\" data-action=\"like\" \u003e\u003c/div\u003e\u003cdiv id=\"facebookShareOnly\" class=\"fb-share-button\" data-href=\"https://facebook.com/tristatefoodbank\" data-layout=\"button_count\"\u003e\u003c/div\u003e\u003cscript type=\u0027text/javascript\u0027\u003edocument.getElementById(\u0027facebookShareOnly\u0027).setAttribute(\u0027data-href\u0027, window.location.href);\u003c/script\u003e\u003c/div\u003e \u003cscript\u003e\r\n if (navigator.userAgent.indexOf(\u0027Edge/\u0027) === -1) {\r\n !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\"http\":\"https\";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document, \"script\", \"twitter-wjs\");\r\n var twitterButtons = document.getElementById(\u0027twitter-buttons\u0027);\r\n twitterButtons.innerHTML = \u0027\u003cdiv id=\"tweetButton\" style=\"float:left; margin-right:10px\"\u003e \u003ca href=\"https://twitter.com/share\" data-text=\"I just made a donation to @3statefoodbank. You should too!\" class=\"twitter-share-button\"\u003eTweet\u003c/a\u003e \u003c/div\u003e\u003cdiv id=\"followButton\"\u003e \u003ca href=\"https://twitter.com/3statefoodbank\" class=\"twitter-follow-button\"\u003eFollow\u003c/a\u003e \u003c/div\u003e\u0027;\r\n twitterButtons.style.height = \u002735px\u0027;\r\n }\r\n \u003c/script\u003e \u003cdiv id=\"fb-root\"\u003e\u003c/div\u003e \u003cscript\u003e(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1\u0026version=v2.8\"; fjs.parentNode.insertBefore(js, fjs); }(document, \u0027script\u0027, \u0027facebook-jssdk\u0027));\u003c/script\u003e ' + '
';( function($) {if (Bloomerang.useDonationId('30154752')) { Bloomerang.useProcessor('30144513', 'StripeExpress', 'pk_live_iZYXFefCkt380zu63aqUIo7y'); } else { html30154752 = '

Only one donation or event registration form can be used on each page.

'; }if (jQuery('#bloomerangForm30154752').length) { if (window.ActiveXObject) { // they are using IE 11, which doesn't support TLS 1.1 html30154752 = '<p style="color: red">Your browser does not support the minimum security requirement for keeping your Credit Card information safe when processing payments. Please upgrade your browser or download the latest version of' + ' Chrome or Firefox.

'; } jQuery('#bloomerangForm30154752').after(html30154752); Bloomerang.Util.requireStripe(function() { Bloomerang.Util.Stripe = Stripe('pk_live_iZYXFefCkt380zu63aqUIo7y'); Bloomerang.useKey('pub_dd02b4f0-153d-11ea-9b7c-0a70650fa90a'); // Means we didn't set the client secret for self-hosted forms so we create one! if(!Bloomerang.StripePaymentElement) { Bloomerang.Util.createInitialIntentForSelfHosted(false); } else { Bloomerang.Util.mountStripePaymentElements(false); } jQuery(".donation-form #express-submit").val("Donate"); jQuery(".registration-form #express-submit").val("Register"); jQuery(".membership-form #express-submit").val("Join"); jQuery("#express-submit").attr("disabled", false); }); Bloomerang.Data.PayPal.IsPayPalVenmoEnabled = false; jQuery("#donation-form .recurring-paypal-venmo-label-info").remove(); jQuery("#paypal-button-container").remove(); jQuery("#donation-form .PayPalVenmo").remove(); jQuery("#donation-form .PayPal").remove(); jQuery("#donation-form .Venmo").remove(); Bloomerang.Data.PayPal.IsPayPalPaymentMethodVaultingEnabled = false;Bloomerang.Data.PayPal.IsVenmoSameDayDonationEnabled = false; }; if (Bloomerang.paymentFormLoaded) { return false; } Bloomerang.paymentFormLoaded = true; Bloomerang.reCaptchaV3SiteKey = '6LfNxQ4rAAAAAJsnsJroooW2pgn9ro0ySFwAtGGm'; Bloomerang.gRecaptchaV3Threshold = 0.5; window.captchaLoadCallback = function() { Bloomerang.gRecaptchaLoaded = true; }; window.captchaV3LoadCallback = function() { Bloomerang.gRecaptchaV3Loaded = true; }; if(Bloomerang.donationFormReCaptchaV3SelfHostedFlag === undefined) { function success (result) { Bloomerang.donationFormReCaptchaV3SelfHostedFlag = result.DonationFormReCaptchaV3SelfHostedFlag; initializeCaptcha(); } function failure (result) { Bloomerang.donationFormReCaptchaV3SelfHostedFlag = false; initializeCaptcha(); } Bloomerang.Api._post('v1/ReCaptchaV3SelfHostedFlag', {}, success, failure); } else { initializeCaptcha(); } function initializeCaptcha() { Bloomerang.Util.load('https://www.google.com/recaptcha/api.js?onload=captchaLoadCallback&render=explicit', function() { return Bloomerang.gRecaptchaLoaded; }, function() { jQuery('.section.captcha').removeAttr('style'); jQuery('form.donation-form').data('captcha-id', grecaptcha.render('captcha30154752', { 'sitekey' : '6Lcexw4rAAAAAG-3cVzS88Tz04K-iP8XzON0hBjS' })); if((Bloomerang.donationFormReCaptchaV3Flag && Bloomerang.isBloomerangHostedForm && Bloomerang.isDonationForm) || (Bloomerang.donationFormReCaptchaV3SelfHostedFlag && !Bloomerang.isBloomerangHostedForm && Bloomerang.reCaptchaV3SiteKey && Bloomerang.isDonationForm)) { jQuery('.section.captcha').attr('style', 'display: none'); } }, true, true); if((Bloomerang.donationFormReCaptchaV3Flag && Bloomerang.isBloomerangHostedForm && Bloomerang.isDonationForm) || (Bloomerang.donationFormReCaptchaV3SelfHostedFlag && !Bloomerang.isBloomerangHostedForm && Bloomerang.isDonationForm && Bloomerang.reCaptchaV3SiteKey)) { Bloomerang.Util.load(`https://www.google.com/recaptcha/api.js?onload=captchaV3LoadCallback&render=${Bloomerang.reCaptchaV3SiteKey}`, function() { return Bloomerang.gRecaptchaV3Loaded; }, function() { grecaptcha.ready(function() { grecaptcha.execute(Bloomerang.reCaptchaV3SiteKey, {action: 'submit'}).then(function(token) { function success (result) { if(parseFloat(result.Score) $0"); } Bloomerang.Util.calculateDonationTrueImpact = function() { if (!jQuery(".donation-form .true-impact .fee-amount").length) { return; } // Note that we don't really care about JS floating point math. It's OK if the numbers are a couple cents off. var amount = Bloomerang.Util.getDonationAmount(); var isEft = (jQuery("#donation-form #Checking").is(":checked") || jQuery("#donation-form #Savings").is(":checked")); var isPayPalVenmo = jQuery("#donation-form #PayPalVenmo").is(":checked"); var isPayPal = jQuery("#donation-form #PayPal").is(":checked"); var isVenmo = jQuery("#donation-form #Venmo").is(":checked"); var isStripeExpress = Bloomerang.Api.ProcessorType === "StripeExpress"; var feeRate = isEft ? Bloomerang.transactionFeeRateEft : Bloomerang.transactionFeeRate; var newTotal = (amount + (isEft ? Bloomerang.transactionFeeEft : Bloomerang.transactionFee)) / (1 - feeRate); var impactAmount; if(isPayPalVenmo || isPayPal || isVenmo){ var paypalFee = Bloomerang.transactionFeePayPal; var paypalPercentage = Bloomerang.transactionFeeRatePayPal; newTotal = (amount + paypalFee) / (1 - paypalPercentage); impactAmount = Number((Math.floor((newTotal - amount)*100)/100).toFixed(2)); } else{ impactAmount = isStripeExpress ? Number((Math.floor((newTotal - amount)*100)/100).toFixed(2)) : Number((newTotal - amount).toFixed(2)); } jQuery(".donation-form .true-impact .fee-amount").text(accounting.formatMoney(impactAmount)); return impactAmount; }; Bloomerang.Util.getDonationTrueImpactAmount = function() { if (jQuery(".donation-form .true-impact input:checked").length) { return Bloomerang.Util.calculateDonationTrueImpact(); } return 0; }; Bloomerang.Util.updateDonateButtonText = function() { if (jQuery("#donation-form #Checking").is(":checked") || jQuery("#donation-form #Savings").is(":checked") || Bloomerang.Util.isProcessorStripe()) { var amount = Bloomerang.Util.getDonationAmount(); var impactAmount = Bloomerang.Util.getDonationTrueImpactAmount(); jQuery(".btn-submit-donation").val("Donate " + accounting.formatMoney(amount + impactAmount)); } else { jQuery(".btn-submit-donation").val("Enter Payment"); } }; // Changing the value of other-amount should change the value of other-option jQuery(".donation-form #other-amount").change(function () { jQuery(".donation-form #other-option").val(jQuery(this).val()); Bloomerang.Util.calculateDonationTrueImpact(); Bloomerang.Util.updateDonateButtonText(); }); jQuery(".donation-form #donation-amount").change(function() { Bloomerang.Util.calculateDonationTrueImpact(); Bloomerang.Util.updateDonateButtonText(); }); // Clicking into the other-amount field should select the other-option jQuery(".donation-form #other-amount").click(function() { jQuery(".donation-form #other-option").prop('checked',true); toggleOtherAmountRequired(); Bloomerang.Util.calculateDonationTrueImpact(); }); jQuery.validator.addMethod("startDateVenmo", function (value, element) { return this.optional(element) || !jQuery("#donation-form #Venmo").is(":checked") || value 0 && !jQuery("#donation-form #CreditCard").prop("checked") && !jQuery("#donation-form #PayPalVenmo").prop("checked") && !jQuery("#donation-form #PayPal").prop("checked") && !jQuery("#donation-form #Venmo").prop("checked"); if (Bloomerang.Util.isProcessorStripe() && !isEft && !Bloomerang.Util.StripeCardIsValid) { document.getElementById('card-errors').textContent = "Valid card info is required"; return false; } if(Bloomerang.UsePaymentElement && !isEft && !Bloomerang.Util.RecurringStripeCardIsValid) { document.getElementById('card-errors').textContent = "Valid card info is required"; return false; } if (isEft) { submitDonation(); } else { var val = function (selector) { return jQuery(selector).val(); }; var amount = Bloomerang.Util.getDonationAmount() + Bloomerang.Util.getDonationTrueImpactAmount(); var selectedDonationLevel = jQuery(".donation-form .section.donation input[name='donation-level']:checked").parent().text(); selectedDonationLevel = (selectedDonationLevel.indexOf("-") == -1 ? "" : selectedDonationLevel.substr(selectedDonationLevel.indexOf("-") + 2) ); var oldMeta = ''; if (jQuery('meta[name="viewport"]').length) { oldMeta = jQuery('meta[name="viewport"]').attr('content'); } else { jQuery('head').append(''); } jQuery('meta[name="viewport"]').attr('content', 'width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1'); jQuery('meta[name="viewport"]').attr('content', oldMeta); if (Bloomerang.Util.isProcessorStripe()) { submitDonation(); } else { SpreedlyExpress.setDisplayOptions({ "amount": accounting.formatMoney(amount), "full_name": val(".donation-form #first-name") + " " + val(".donation-form #last-name"), "sidebar_bottom_description": selectedDonationLevel, "submit_label": "Donate"}); SpreedlyExpress.setPaymentMethodParams({ "email": val(".donation-form #email-address"), "phone_number": val(".donation-form #phone-number"), "address1": val(".donation-form #street-address"), "city": val(".donation-form #city"), "state": val(".donation-form #state") || val(".donation-form #province"), "zip": val(".donation-form #zip-code") || val(".donation-form #postal-code"), "country": val(".donation-form #country")}); SpreedlyExpress.onPaymentMethod(function(token, paymentMethod) { Bloomerang.CreditCard.spreedlyToken(token); submitDonation(); }); SpreedlyExpress.openView(); } } }; submitDonation = function() { if (!Bloomerang.continueFinancialSubmission(jQuery("#donation-form"))) { return false; } Bloomerang.Api.OnSubmit = Bloomerang.Widget.Donation.OnSubmit; Bloomerang.Api.OnSuccess = Bloomerang.Widget.Donation.OnSuccess; Bloomerang.Api.OnError = Bloomerang.Widget.Donation.OnError; var processingMessage = jQuery("#donation-processing-container"); processingMessage.show(); jQuery("#donation-form-container").hide(); Bloomerang.scrollToElement(processingMessage); var tmp = jQuery(".donation-form #recurring").prop("checked") ? Bloomerang.Api.recurringDonate() : Bloomerang.Api.donate(); }; if(jQuery("#donation-form #DebitCard").length === 0 || jQuery("#donation-form #DebitCard").hasClass("hidden")) { jQuery("#donation-form #CreditCard").prop("checked", true); } else { jQuery("#donation-form #DebitCard").prop("checked", true); } jQuery("#donation-form .section.payment input[type='radio']").click(function() { Bloomerang.Util.calculateDonationTrueImpact(); Bloomerang.Util.updateDonateButtonText(); if (jQuery(this).attr("id") == "DebitCard" || jQuery(this).attr("id") == "CreditCard") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#paypal-button-container").hide(); jQuery("#stripe-cc-fields").show(); if((Bloomerang.donationFormReCaptchaV3Flag && Bloomerang.isBloomerangHostedForm) || (Bloomerang.donationFormReCaptchaV3SelfHostedFlag && !Bloomerang.isBloomerangHostedForm && Bloomerang.reCaptchaV3SiteKey)) { if(Bloomerang.isForcePuzzle) { jQuery(".donation-form .section.captcha").show(); } } else { jQuery(".donation-form .section.captcha").show(); } jQuery("#donation-form .btn-group").show(); } else if(jQuery(this).attr("id") == "PayPalVenmo") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#stripe-cc-fields").hide(); jQuery(".donation-form .section.captcha").hide(); jQuery("#donation-form .btn-group").hide(); jQuery("#paypal-button-container").show(); } else if(jQuery(this).attr("id") == "PayPal") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#stripe-cc-fields").hide(); jQuery(".donation-form .section.captcha").hide(); jQuery("#donation-form .btn-group").hide(); Bloomerang.Util.renderOnlyPayPal(false); jQuery("#paypal-button-container").show(); } else if(jQuery(this).attr("id") == "Venmo") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#stripe-cc-fields").hide(); jQuery(".donation-form .section.captcha").hide(); jQuery("#donation-form .btn-group").hide(); Bloomerang.Util.renderOnlyVenmo(); jQuery("#paypal-button-container").show(); } else { jQuery("#stripe-cc-fields").hide(); jQuery("#paypal-button-container").hide(); jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").show(); if((Bloomerang.donationFormReCaptchaV3Flag && Bloomerang.isBloomerangHostedForm) || (Bloomerang.donationFormReCaptchaV3SelfHostedFlag && !Bloomerang.isBloomerangHostedForm && Bloomerang.reCaptchaV3SiteKey)) { if(Bloomerang.isForcePuzzle) { jQuery(".donation-form .section.captcha").show(); } } else { jQuery(".donation-form .section.captcha").show(); } jQuery("#donation-form .btn-group").show(); if (jQuery("#donation-form .sample-check").length == 0) { var checkImage = new Image(); checkImage.src = 'https://s3-us-west-2.amazonaws.com/bloomerang-public-cdn/public-gallery/SampleCheck.png'; jQuery(checkImage).addClass("sample-check"); jQuery("#donation-form .accountNumber").after(checkImage); } } }); jQuery("#donation-form .section.movedpayment input[type='radio']").click(function() { Bloomerang.Util.calculateDonationTrueImpact(); Bloomerang.Util.updateDonateButtonText(); if (Bloomerang.Data.PayPal.IsVenmoSameDayDonationEnabled && jQuery(".donation-form .field.start-date input").is(":visible")) { jQuery(".donation-form .field.start-date input").valid(); } if (jQuery(this).attr("id") == "DebitCard" || jQuery(this).attr("id") == "CreditCard") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#paypal-button-container").hide(); jQuery("#stripe-cc-fields").show(); if((Bloomerang.donationFormReCaptchaV3Flag && Bloomerang.isBloomerangHostedForm) || (Bloomerang.donationFormReCaptchaV3SelfHostedFlag && !Bloomerang.isBloomerangHostedForm && Bloomerang.reCaptchaV3SiteKey)) { if(Bloomerang.isForcePuzzle) { jQuery(".donation-form .section.captcha").show(); } } else { jQuery(".donation-form .section.captcha").show(); } jQuery("#donation-form .btn-group").show(); } else if(jQuery(this).attr("id") == "PayPalVenmo") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#stripe-cc-fields").hide(); jQuery(".donation-form .section.captcha").hide(); jQuery("#donation-form .btn-group").hide(); jQuery("#paypal-button-container").show(); } else if(jQuery(this).attr("id") == "PayPal") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#stripe-cc-fields").hide(); jQuery(".donation-form .section.captcha").hide(); jQuery("#donation-form .btn-group").hide(); Bloomerang.Util.renderOnlyPayPal(jQuery(".donation-form .field.start-date input").val() > new Date().toISOString().split('T')[0]); jQuery("#paypal-button-container").show(); } else if(jQuery(this).attr("id") == "Venmo") { jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").hide(); jQuery("#stripe-cc-fields").hide(); jQuery(".donation-form .section.captcha").hide(); jQuery("#donation-form .btn-group").hide(); Bloomerang.Util.renderOnlyVenmo(); jQuery("#paypal-button-container").show(); } else { jQuery("#stripe-cc-fields").hide(); jQuery("#paypal-button-container").hide(); jQuery("#donation-form .accountNumber, \ #donation-form .routingNumber, \ #donation-form .sample-check").show(); if((Bloomerang.donationFormReCaptchaV3Flag && Bloomerang.isBloomerangHostedForm) || (Bloomerang.donationFormReCaptchaV3SelfHostedFlag && !Bloomerang.isBloomerangHostedForm && Bloomerang.reCaptchaV3SiteKey)) { if(Bloomerang.isForcePuzzle) { jQuery(".donation-form .section.captcha").show(); } } else { jQuery(".donation-form .section.captcha").show(); } jQuery("#donation-form .btn-group").show(); if (jQuery("#donation-form .sample-check").length == 0) { var checkImage = new Image(); checkImage.src = 'https://s3-us-west-2.amazonaws.com/bloomerang-public-cdn/public-gallery/SampleCheck.png'; jQuery(checkImage).addClass("sample-check"); jQuery("#donation-form .accountNumber").after(checkImage); } } }); jQuery("#donation-form #true-impact").change(function() { Bloomerang.Util.updateDonateButtonText(); }); // Show opt-in options based on the setting of the global opt-in jQuery(".donation-form .field.consent-all").change(function() { jQuery(".donation-form .field.consent-all").siblings().each(function(i, e) { jQuery(e).toggle(); }); }); })(jQuery); }; var startBloomerangLoad = function() { if (window.bloomerangLoadStarted == undefined) { window.bloomerangLoadStarted = true; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://crm.bloomerang.co/Content/Scripts/Api/Bloomerang-v2.js?nocache=1734641697'; document.getElementsByTagName('head')[0].appendChild(script); waitForBloomerangLoad(function() { Bloomerang.Util.requireJQueryValidationAndStripe(function() { insertForm30154752(); })}); } else { waitForBloomerangLoad(function() { Bloomerang.Util.requireJQueryValidationAndStripe(function() { insertForm30154752(); })}); } }; var waitForBloomerangLoad = function(callback) { if (typeof(Bloomerang) === 'undefined' || !Bloomerang._isReady) { setTimeout(function () { waitForBloomerangLoad(callback) }, 500); } else { if (true) { callback(); } else { window.bloomerangLoadStarted = undefined; Bloomerang = undefined; // The version of Blomerang.js is not what we want. So blow it away and reload. startBloomerangLoad(); } } }; startBloomerangLoad();