var insertForm1351680 = function() {
var html1351680 = '' +
'.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{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;}' +
'' +
'' +
'' +
'' +
'' +
'
Processing...
Your transaction is being processed. Please do not close your browser or leave this page.
' +
'
' +
'' +
'' + '';var successHtml1351680 = '' +
'
Thank You for Your Donation!
' +
'
Your generous gift has been processed. We truly appreciate your continued support.
' +
'\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/provegusa\" 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/provegusa\" 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 @ProVeg_US. You should too!\" class=\"twitter-share-button\"\u003eTweet\u003c/a\u003e \u003c/div\u003e\u003cdiv id=\"followButton\"\u003e \u003ca href=\"https://twitter.com/ProVeg_US\" 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('1351680')) {
Bloomerang.useProcessor('56320', 'Spreedly', 'OqOMv1ksjPtXEYHtCYsVXzEpCbR');
} else {
html1351680 = 'Only one donation or event registration form can be used on each page.
';
}if (jQuery('#bloomerangForm1351680').length) {
if (window.ActiveXObject) { // they are using IE < 11, which doesn't support TLS 1.1
html1351680 = '​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('#bloomerangForm1351680').after(html1351680);
if (!Bloomerang.SpreedlyScriptLoaded) {
Bloomerang.Util.load('https://core.spreedly.com/iframe/express-2.min.js',
function() { return SpreedlyExpress != undefined; },
function() {
SpreedlyExpress.onInit(function() { jQuery('#express-submit').attr('disabled', false); });
Bloomerang.initSpreedly = function() {
SpreedlyExpress.init('OqOMv1ksjPtXEYHtCYsVXzEpCbR', { 'company_name': 'ProVeg International' });
};
Bloomerang.initSpreedly();
});
}
Bloomerang.SpreedlyScriptLoaded = true;
};
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('captcha1351680', { 'sitekey' : '6LehnaEaAAAAAGbZSUNAP7F2UrJxmFfpORyk1bdI' }));
},
true,
true);
Bloomerang.transactionFee = 0.29; Bloomerang.transactionFeeRate = 0.0249;
Bloomerang.transactionFeeEft = 0.80; Bloomerang.transactionFeeRateEft = 0;
Bloomerang.useKey('pub_4caceeb6-8fe4-11ea-b9cf-02f6ce2e5c3e');
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"));
}
};
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(successHtml1351680);
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"));
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