BCRF's Official Podcast
When you give to BCRF, you're funding critical hours in the lab. More time for research means longer, healthier lives for the ones we love.
Please remember BCRF in your will planning. Learn More
(function (win) { win.egProps = { campaigns: [ { campaignId: ‘515186’, customDomain: ‘give.bcrf.org’, donation: { modal: { urlParams: { …readURLParams(), …{ egfa: true, egrn: true } }, elementSelector: ” }, // ADD ABANDON CART NUDGE CODE HERE TO ENABLE nudgeTrays: [ // CUSTOMIZE YOUR MESSAGE { title: ‘Make a difference 💗’, content: ‘Complete your gift to support lifesaving breast cancer research’, ctaLabel: ‘Give Now’, ctaColor: ‘#d0006f’, triggerEvent: ‘eg:donation:incomplete’, }, ], } }, { campaignId: ‘515186’, customDomain: ‘give.bcrf.org’, donation: { inline: { urlParams: { egfa: true }, elementSelector: ‘.footer-donate-form’ } } } ] } win.document.body.appendChild(makeEGScript()) /* Create the embed script */ function makeEGScript() { var egScript = win.document.createElement(‘script’) egScript.setAttribute(‘type’, ‘text/javascript’) egScript.setAttribute(‘async’, ‘true’) egScript.setAttribute(‘src’, ‘https://sdk.classy.org/embedded-giving.js’) return egScript } /* Read URL Params from your website. This could potentially be included in the embed snippet */ function readURLParams() { const searchParams = new URLSearchParams(location.search) const validUrlParams = [‘c_src’, ‘c_src2’, ‘amount’, ‘recurring’, ‘designation’] return validUrlParams.reduce(function toURLParamsMap(urlParamsSoFar, validKey) { const value = searchParams.get(validKey) return value === null ? urlParamsSoFar : { …urlParamsSoFar, [validKey]: value } }, {}) } })(window)