function autoResizeIframe(id){try{ console.log('loading iframe'+id); let f=document.getElementById(id),d=f.contentWindow.document,b=d.body,h=d.documentElement;f.style.height=Math.max(b.scrollHeight,b.offsetHeight,h.clientHeight,h.scrollHeight,h.offsetHeight)+'px';f.style.width=Math.max(b.scrollWidth,b.offsetWidth,h.clientWidth,h.scrollWidth,h.offsetWidth)+'px';}catch(e){console.error('Could not access iframe content:',e);}}(function(d, s, id, u) { var ifr, ifrp = d.getElementById(s); if (ifrp == null) { return; } if (d.getElementById(id)) { return; } ifr = d.createElement('iframe'); ifr.id = id; ifr.src = u; ifr.style = 'overflow:hidden;width:100%!important;border:none;'; ifr.scrolling = 'auto';ifr.onload= function(){autoResizeIframe(id, window.document);};window.addEventListener('message', function(event) {if (event.data && event.data.type === 'iframe-resize') {ifr.style.height = event.data.height + 'px';}});ifrp.appendChild(ifr); }(document, 'bu-checkout', 'bu-checkout1', 'https://www.betterunite.com/rootball/Donate?embedded=true'));