Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 | var GIVEPAYMENTS=function(){function e(e){return Object.entries(e).reduce(((e,[t,n])=>`${e}${t}:${n};`),"")}const t={position:"absolute",top:"0px",bottom:"0px",left:"0px",right:"0px",border:"none","white-space":"nowrap","z-index":2147483647,"text-align":"center",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden",display:"none"},n={position:"absolute",top:"20px",cursor:"pointer",right:"20px",background:"none",border:"none",color:"white","font-size":"20px","z-index":21474836474};var o="givepayments-embed";function i(n){const i=s(n),d=n.auto;if(!document.getElementById(o)){const n=document.createElement("iframe");n.setAttribute("id",o),n.setAttribute("allowTransparency","true"),n.setAttribute("style",e(t)),n.setAttribute("data-url",i),n.style.visibility="hidden",document.body.appendChild(n)}d&&!a()&&c(i)}function d(t){const i=document.getElementById(o),d=function(){const t=document.createElement("button");return t.textContent="X",t.setAttribute("style",e(n)),t}();document.body.appendChild(i),document.body.appendChild(d),d.addEventListener("click",(()=>{document.body.removeChild(d),document.body.removeChild(i)})),function(){const e=document.createElement("div");e.setAttribute("id","givepayments-loader");const t="position:fixed;display:table;top:0%;left:50%;transform:translate(-50%,0);border:none;white-space:nowrap;background-color:rgba(0,0,0,0.5);z-index:10000009;width:100%;height:100%;margin:0 auto;overflow:auto;min-height:50%;",n=document.createElement("div");n.setAttribute("allowTransparency","true"),n.setAttribute("style",t);const o="display:table-cell;width:100%;height:100%;vertical-align:middle;text-align:center;",i=document.createElement("div");i.setAttribute("style",o);const d=document.createElement("img");d.setAttribute("class","loaderSVG"),d.setAttribute("type","image/svg+xml"),d.src="https://cdn.givepayments.com/logo.svg",i.appendChild(d),n.appendChild(i),e.appendChild(n),document.body.appendChild(e)}(),i.style.width="100%",i.style.height="100%",i.style.margin="auto",i.style.visibility="visible",i.style.display="block",i.src=t,i.onload=function(){!function(){const e=document.getElementById("givepayments-loader");e&&e.parentNode.removeChild(e)}(),i.style.background="rgba(0,0,0,0.5)",window.scrollTo(0,0)}}function c(e){a()?window.location.replace(`${e}&redirect=true`):d(e)}function a(){const e=navigator.userAgent;return e.match(/Android/i)?"android":e.match(/webOS/i)?"webos":e.match(/iPhone/i)?"iphone":e.match(/iPod/i)?"ipod":e.match(/iPad/i)?"ipad":e.match(/Windows Phone/i)?"windows phone":e.match(/SymbianOS/i)?"symbian":!(!e.match(/RIM/i)&&!e.match(/BB/i))&&"blackberry"}function r(){const e=".loaderSVG {animation: pulse 2s infinite;} @keyframes pulse {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.4);\n }\n 100% {\n transform: scale(1);\n }\n}";if(!document.getElementById("givePaymentsLoaderStyle")){const t=document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.setAttribute("id","givePaymentsLoaderStyle"),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}}function s(e){return e.domainName+`/${e.auto||e.id}?widget=true`}return{init:function(e){const t=e[0];"complete"===document.readyState?(r(),i(t)):window.onload=function(){r(),i(t)}},load:function(e){c(s(e[0]))}}}(); |