Support Our Museum

    var insertForm51831808 = function() {
        var html51831808 = '' + 
'.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 .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 .section.recurring{padding-left: 30px}' + 
'' + 
'.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 #frequency{width: 85px;}' + 
'' + 
'.donation-form #start-date{width: 150px;}' + 
'' + 
'.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

' + '
' + '' + '' + '
' + '' + '
' + '
' + '
' + '' + '
' + '
' + '' + '' + '
' + '
' + '' + '' + 'Weekly' + 'Monthly' + 'Quarterly' + 'Yearly' + '' + '
' + '
' + '' + '' + '
' + '' + '
' + ' ' + '
' + '

Contact Information

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

Billing Address

' + '
' + '' + '' + 'Afghanistan' + 'Aland Islands' + 'Albania' + 'Algeria' + 'American Samoa' + 'Andorra' + 'Angola' + 'Anguilla' + 'Antarctica' + 'Antigua and Barbuda' + 'Argentina' + 'Armenia' + 'Aruba' + 'Australia' + 'Austria' + 'Azerbaijan' + 'Bahamas' + 'Bahrain' + 'Bangladesh' + 'Barbados' + 'Belarus' + 'Belgium' + 'Belize' + 'Benin' + 'Bermuda' + 'Bhutan' + 'Bolivia' + 'Bosnia and Herzegovina' + 'Botswana' + 'Bouvet Island' + 'Brazil' + 'British Indian Ocean Territory' + 'Brunei Darussalam' + 'Bulgaria' + 'Burkina Faso' + 'Burundi' + 'Cambodia' + 'Cameroon' + 'Canada' + 'Cape Verde' + 'Cayman Islands' + 'Central African Republic' + 'Chad' + 'Chile' + 'China' + 'Christmas Island' + 'Cocos (Keeling) Islands' + 'Colombia' + 'Comoros' + 'Congo' + 'Democratic Republic of the Congo' + 'Cook Islands' + 'Costa Rica' + 'Cote d\'Ivoire' + 'Croatia' + 'Cuba' + 'Curacao' + 'Cyprus' + 'Czech Republic' + 'Denmark' + 'Djibouti' + 'Dominica' + 'Dominican Republic' + 'Ecuador' + 'Egypt' + 'El Salvador' + 'Equatorial Guinea' + 'Eritrea' + 'Estonia' + 'Eswatini' + 'Ethiopia' + 'Falkland Islands (Malvinas)' + 'Faroe Islands' + 'Fiji' + 'Finland' + 'France' + 'French Guiana' + 'French Polynesia' + 'French Southern Territories' + 'Gabon' + 'Gambia' + 'Georgia' + 'Germany' + 'Ghana' + 'Gibraltar' + 'Greece' + 'Greenland' + 'Grenada' + 'Guadeloupe' + 'Guam' + 'Guatemala' + 'Guernsey' + 'Guinea' + 'Guinea-Bissau' + 'Guyana' + 'Haiti' + 'Heard Island' + 'Honduras' + 'Hong Kong' + 'Hungary' + 'Iceland' + 'India' + 'Indonesia' + 'Islamic Republic of Iran' + 'Iraq' + 'Ireland' + 'Isle of Man' + 'Israel' + 'Italy' + 'Jamaica' + 'Japan' + 'Jersey' + 'Jordan' + 'Kazakhstan' + 'Kenya' + 'Kiribati' + 'Democratic People\'s Republic of Korea' + 'Republic of Korea' + 'Kuwait' + 'Kyrgyzstan' + 'Lao People\'s Democratic Republic' + 'Latvia' + 'Lebanon' + 'Lesotho' + 'Liberia' + 'Libya' + 'Liechtenstein' + 'Lithuania' + 'Luxembourg' + 'Macao' + 'Macedonia' + 'Madagascar' + 'Malawi' + 'Malaysia' + 'Maldives' + 'Mali' + 'Malta' + 'Marshall Islands' + 'Martinique' + 'Mauritania' + 'Mauritius' + 'Mayotte' + 'Mexico' + 'Federated States of Micronesia' + 'Republic of Moldova' + 'Monaco' + 'Mongolia' + 'Montenegro' + 'Montserrat' + 'Morocco' + 'Mozambique' + 'Myanmar' + 'Namibia' + 'Nauru' + 'Nepal' + 'Netherlands' + 'New Caledonia' + 'New Zealand' + 'Nicaragua' + 'Niger' + 'Nigeria' + 'Niue' + 'Norfolk Island' + 'Northern Mariana Islands' + 'Norway' + 'Oman' + 'Pakistan' + 'Palau' + 'State of Palestine' + 'Panama' + 'Papua New Guinea' + 'Paraguay' + 'Peru' + 'Philippines' + 'Pitcairn' + 'Poland' + 'Portugal' + 'Puerto Rico' + 'Qatar' + 'Reunion' + 'Romania' + 'Russian Federation' + 'Rwanda' + 'Saint Barthelemy' + 'Ascension and Tristan da Cunha Saint Helena' + 'Saint Kitts and Nevis' + 'Saint Lucia' + 'Saint Martin (French part)' + 'Saint Pierre and Miquelon' + 'Saint Vincent and the Grenadines' + 'Samoa' + 'San Marino' + 'Sao Tome and Principe' + 'Saudi Arabia' + 'Senegal' + 'Serbia' + 'Seychelles' + 'Sierra Leone' + 'Singapore' + 'Sint Maarten (Dutch part)' + 'Slovakia' + 'Slovenia' + 'Solomon Islands' + 'Somalia' + 'South Africa' + 'South Georgia' + 'South Sudan' + 'Spain' + 'Sri Lanka' + 'Sudan' + 'Suriname' + 'Svalbard and Jan Mayen' + 'Sweden' + 'Switzerland' + 'Syrian Arab Republic' + 'Taiwan' + 'Tajikistan' + 'United Republic of Tanzania' + 'Thailand' + 'Timor-Leste' + 'Togo' + 'Tokelau' + 'Tonga' + 'Trinidad and Tobago' + 'Tunisia' + 'Turkey' + 'Turkmenistan' + 'Turks and Caicos Islands' + 'Tuvalu' + 'Uganda' + 'Ukraine' + 'United Arab Emirates' + 'United Kingdom' + 'United States' + 'United States Minor Outlying Islands' + 'Uruguay' + 'Uzbekistan' + 'Vanuatu' + 'Vatican City' + 'Venezuela' + 'Viet Nam' + 'British Virgin Islands' + 'U.S. Virgin Islands' + 'Wallis and Futuna' + 'Western Sahara' + 'Yemen' + 'Zambia' + 'Zimbabwe' + '' + '
' + '
' + '' + '' + '
' + '
' + '' + '' + '
' + '
' + '' + '' + 'Alabama' + 'Alaska' + 'American Samoa' + 'Arizona' + 'Arkansas' + 'Armed Forces Africa, Canada, Europe, Middle East' + 'Armed Forces Americas (except Canada)' + 'Armed Forces Pacific' + 'California' + 'Colorado' + 'Connecticut' + 'Delaware' + 'District of Columbia' + 'Florida' + 'Georgia' + 'Guam' + 'Hawaii' + 'Idaho' + 'Illinois' + 'Indiana' + 'Iowa' + 'Kansas' + 'Kentucky' + 'Louisiana' + 'Maine' + 'Maryland' + 'Massachusetts' + 'Michigan' + 'Minnesota' + 'Mississippi' + 'Missouri' + 'Montana' + 'Nebraska' + 'Nevada' + 'New Hampshire' + 'New Jersey' + 'New Mexico' + 'New York' + 'North Carolina' + 'North Dakota' + 'Ohio' + 'Oklahoma' + 'Oregon' + 'Pennsylvania' + 'Puerto Rico' + 'Rhode Island' + 'South Carolina' + 'South Dakota' + 'Tennessee' + 'Texas' + 'US Virgin Islands' + 'Utah' + 'Vermont' + 'Virginia' + 'Washington' + 'West Virginia' + 'Wisconsin' + 'Wyoming' + '' + '
' + '
' + '' + '' + 'Alberta' + 'British Columbia' + 'Manitoba' + 'New Brunswick' + 'Newfoundland and Labrador' + 'Northwest Territories' + 'Nova Scotia' + 'Nunavut' + 'Ontario' + 'Prince Edward Island' + 'Quebec' + 'Saskatchewan' + 'Yukon Territory' + '' + '
' + '
' + '' + '' + '
' + '
' + '' + '' + '
' + '' + '
' + '
' + '

Payment Information

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

Increase My Impact

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

Processing...

Your transaction is being processed. Please do not close your browser or leave this page.

' + '
' + '' + '' + '';var successHtml51831808 = '
' + '

Thank You for Your Donation!

' + '

Since 1862, The Buffalo History Museum has been a pillar in our community, preserving and sharing thousands of artifacts that tell the incredible stories of Western New York. Your support ensures the safekeeping of these stories and their ability to inspire generations of visitors.\u0026#160;\r\u003cbr /\u003e\r\u003cbr /\u003e\r\u003cbr /\u003eOur museum invites guests to explore and create deeper connections with history.\u0026#160;We ensure that each generation can search for their own answers and discover their own meanings\u0026#160;with our past. Your contribution brings Buffalo’s past to life, showing the impact history has on the stories of tomorrow.\u0026#160;\r\u003cbr /\u003e\r\u003cbr /\u003e\u0026#160;\r\u003cbr /\u003e\r\u003cbr /\u003eWe love hearing from our friends! You are always welcome to contact us when you wish to see, firsthand, what we accomplished because of your generous spirit. Please feel free to call Megan Hahin, Director of Development, at (716) 873-9644 ext. 344\r\u003cbr /\u003e\r\u003cbr /\u003eThank you for continuing to experience history with us. A formal letter of your official receipt will be mailed to you for your records and tax purposes.

' + '\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/thebuffalohistorymuseum/\" 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/thebuffalohistorymuseum/\" 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 @buffalohistory. You should too!\" class=\"twitter-share-button\"\u003eTweet\u003c/a\u003e \u003c/div\u003e\u003cdiv id=\"followButton\"\u003e \u003ca href=\"https://twitter.com/buffalohistory\" 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('51831808')) { Bloomerang.useProcessor('11352065', 'Stripe', 'pk_live_51Jxb5rK2JIuTUKDlONkG4sBu2vaLHtsVJEcIVL4eMQQ2DIhNcu6m4OSANIFmnYcEmEwT7PxPM88gAbjUJTi8WyuL00nxMxzFqz'); } else { html51831808 = '

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

'; }if (jQuery('#bloomerangForm51831808').length) { if (window.ActiveXObject) { // they are using IE < 11, which doesn't support TLS 1.1 html51831808 = '

Your browser does not support the minimum security requirements for keeping your Credit Card information safe when processing payments. Please upgrade your browser or download the latest version of' + ' Chrome or Firefox.

'; } jQuery('#bloomerangForm51831808').after(html51831808); Bloomerang.Util.requireStripe(function() { Bloomerang.Util.Stripe = Stripe('pk_live_51Jxb5rK2JIuTUKDlONkG4sBu2vaLHtsVJEcIVL4eMQQ2DIhNcu6m4OSANIFmnYcEmEwT7PxPM88gAbjUJTi8WyuL00nxMxzFqz'); let elements = null; // Create an instance of the stripe card element. elements = Bloomerang.Util.Stripe.elements(); Bloomerang.Util.StripeCard = elements.create('card', { hidePostalCode: true, style: { base: { color: "#272D30", fontSize: "14px", fontFamily: "'Century Gothic', verdana, sans-serif" }, invalid: { color: "#272D30" } } }); // Add an instance of the stripe card/payment element into the `card-element`
. Bloomerang.Util.StripeCard.mount('#card-element'); // Handle real-time validation errors from the card Element. Bloomerang.Util.StripeCardIsValid = false; Bloomerang.Util.StripeCard.addEventListener('change', function(event) { var displayError = document.getElementById('card-errors'); if (event.error) { displayError.textContent = event.error.message; } else { displayError.textContent = ''; } if (event.complete) { Bloomerang.Util.StripeCardIsValid = true; } else { Bloomerang.Util.StripeCardIsValid = false; } }); }); jQuery(".donation-form #express-submit").val("Donate"); jQuery(".registration-form #express-submit").val("Register"); jQuery("#express-submit").attr("disabled", false); Bloomerang.Util.IsPayPalVenmoEnabled = false; jQuery("#donation-form .recurring-paypal-venmo-label-info").remove(); jQuery("#paypal-button-container").remove(); jQuery("#donation-form .PayPalVenmo").remove();jQuery("#donation-form .CreditCard").remove(); jQuery("#donation-form .section.payment h3").remove(); }; if (Bloomerang.paymentFormLoaded) { return false; } Bloomerang.paymentFormLoaded = true; window.captchaLoadCallback = function() { Bloomerang.gRecaptchaLoaded = true; }; 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('captcha51831808', { 'sitekey' : '6LdfiVcdAAAAADLtz4eLPPmvBV0FKN9QwoRueVuu' })); }, true, true); Bloomerang.transactionFee = 0.3; Bloomerang.transactionFeeRate = 0.032; Bloomerang.transactionFeeEft = 0; Bloomerang.transactionFeeRateEft = 0; Bloomerang.transactionFeePayPal = 0.49; Bloomerang.transactionFeeRatePayPal = 0.032; Bloomerang.useKey('pub_0b69683d-cad5-11eb-bd4f-02088ed4fa11'); Bloomerang.Util.getDonationAmount = function() { return Number(accounting.unformat(jQuery(".donation-form .section.donation input[name='donation-level']:checked").val() || jQuery(".donation-form #donation-amount").val())); }; // Register proper callbacks for various stages/outcomes of submission Bloomerang.Widget.Donation.OnSubmit = function (args) { jQuery(".btn-submit-donation").val("Donating...").prop("disabled", true).addClass("disabled"); var val = function (selector) { return jQuery(selector).val(); }; var country = val(".donation-form #country"); var state = Bloomerang.Util.getCorrectState(country, val(".donation-form #state"), val(".donation-form #province")); var zipCode = Bloomerang.Util.getCorrectZipCode(country, val(".donation-form #zip-code"), val(".donation-form #postal-code")); Bloomerang.Account .individual() .firstName(val(".donation-form #first-name")) .middleName(val(".donation-form #middle-name")) .lastName(val(".donation-form #last-name")) .homeAddress(val(".donation-form #street-address"), val(".donation-form #city"), state, zipCode, country) .homeEmail(val(".donation-form #email-address")) .homePhone(val(".donation-form #phone-number")) .applyDonationCustomFields(); if (jQuery(".donation-form #consent-all").prop("checked")) { Bloomerang.Account.optedInStatus(jQuery(".donation-form #consent-email").prop("checked"), jQuery(".donation-form #consent-mail").prop("checked"), jQuery(".donation-form #consent-phone").prop("checked")); } var amount = Bloomerang.Util.getDonationAmount() + Bloomerang.Util.getDonationTrueImpactAmount(); if (jQuery(".donation-form #recurring").prop("checked")) { Bloomerang.RecurringDonation .amount(amount) .fundId(val(".donation-form #fund")) .note(val(".donation-form #comment")) .frequency(val(".donation-form #frequency") || "Monthly") .startDate(val(".donation-form #start-date")) .applyDonationCustomFields(); // Need to do a null-check here because they might have a cached version of Bloomerang-v2.js if (Bloomerang.RecurringDonation.trueImpactEnabled && Bloomerang.RecurringDonation.trueImpactUsed) { Bloomerang.RecurringDonation .trueImpactEnabled(jQuery(".donation-form .true-impact .fee-amount").length > 0) .trueImpactUsed(jQuery(".donation-form .true-impact input:checked").length > 0); } } else { Bloomerang.Donation .amount(amount) .fundId(val(".donation-form #fund")) .note(val(".donation-form #comment")) .applyDonationCustomFields(); // Need to do a null-check here because they might have a cached version of Bloomerang-v2.js if (Bloomerang.Donation.trueImpactEnabled && Bloomerang.Donation.trueImpactUsed) { Bloomerang.Donation .trueImpactEnabled(jQuery(".donation-form .true-impact .fee-amount").length > 0) .trueImpactUsed(jQuery(".donation-form .true-impact input:checked").length > 0); } } if (jQuery("#donation-form #Checking").is(":checked") || jQuery("#donation-form #Savings").is(":checked")) { Bloomerang.Eft .accountNumber(val(".donation-form #accountNumber")) .routingNumber(val(".donation-form #routingNumber")) .type(jQuery("#donation-form .section.payment input[type='radio']:checked").attr("id")); } else if (jQuery("#PayPalVenmo").is(":checked")) { Bloomerang.Donation .type(jQuery("#donation-form .section.payment input[type='radio']:checked").attr("id")); } }; Bloomerang.ValidateDonationFormCaptcha = function() { if (typeof(grecaptcha) !== "undefined" && jQuery("#captcha" + Bloomerang.Data.WidgetIds.Donation).children().length) { var captchaResponse = grecaptcha.getResponse(jQuery(".donation-form").data("captcha-id")); if (captchaResponse) { jQuery(".donation-form .noCaptchaResponseError").hide(); Bloomerang.captchaResponse(captchaResponse); return true; } else { jQuery(".donation-form .noCaptchaResponseError").show(); return false; } } else return true; }; Bloomerang.scrollToElement = function(element) { var distance = 100; var offset = element.offset().top; var offsetTop = offset > distance ? offset - distance : offset; jQuery('html, body').animate({ scrollTop : offsetTop}, 500); }; Bloomerang.Api.OnSuccess = Bloomerang.Widget.Donation.OnSuccess = function (response) { jQuery("#donation-processing-container").hide(); var formContainer = jQuery("#donation-form-container"); formContainer.show(); formContainer.html(successHtml51831808); Bloomerang.scrollToElement(formContainer); }; Bloomerang.Api.OnError = Bloomerang.Widget.Donation.OnError = function (response) { jQuery(".btn-submit-donation").prop("disabled", false).removeClass("disabled"); Bloomerang.Util.updateDonateButtonText(); jQuery("#donation-form-container .errors").removeClass("hidden").html(response.Message); jQuery("#donation-processing-container").hide(); jQuery("#donation-form-container").show(); Bloomerang.scrollToElement(jQuery("#donation-form-container .errors")); Bloomerang.cancelFinancialSubmission(jQuery("#donation-form")); if (typeof(SpreedlyExpress) !== 'undefined') { SpreedlyExpress.unload(); Bloomerang.initSpreedly(); } if (typeof(grecaptcha) !== "undefined" && jQuery("#captcha" + Bloomerang.Data.WidgetIds.Donation).children().length) { grecaptcha.reset(jQuery(".donation-form").data("captcha-id")); } }; Bloomerang.Util.applyDonationCustomFields = function (obj, type) { // Clear any fields from a previous failed submission obj.clearCustomFields(); // Apply all (not multiselect), and