{"id":350,"date":"2023-10-26T22:11:50","date_gmt":"2023-10-26T22:11:50","guid":{"rendered":"https:\/\/st-helena-american-legion.org\/?page_id=350"},"modified":"2023-10-26T22:12:08","modified_gmt":"2023-10-26T22:12:08","slug":"donate-to-the-st-helena-legion","status":"publish","type":"page","link":"https:\/\/st-helena-american-legion.org\/index.php\/donate-to-the-st-helena-legion\/","title":{"rendered":"Donate to the St. Helena Legion"},"content":{"rendered":"<!--themify_builder_content-->\n<div id=\"themify_builder_content-350\" data-postid=\"350\" class=\"themify_builder_content themify_builder_content-350 themify_builder tf_clear\">\n                    <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_js92700 tb_first tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_29ez701 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_1o8y571   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <div>\n<div>\n<div style=\" overflow: auto; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 259px; background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: -2px 10px 5px rgba(0, 0, 0, 0); border-radius: 10px; font-family: SQ Market, Helvetica, Arial, sans-serif; \">\n<div style=\"padding: 20px;\">\n    <a target=\"_blank\" data-url=\"https:\/\/square.link\/u\/2rjvMPrW?src=embd\" href=\"https:\/\/square.link\/u\/2rjvMPrW?src=embed\" style=\" display: inline-block; font-size: 18px; line-height: 48px; height: 48px; color: #ffffff; min-width: 212px; background-color: #000000; text-align: center; box-shadow: 0 0 0 1px rgba(0,0,0,.1) inset; \">Donate<\/a>\n  <\/div>\n<\/div>\n<\/div>\n<p>  <script>\n    function showCheckoutWindow(e) {\n      e.preventDefault();\n\n      const url = document.getElementById('embedded-checkout-modal-checkout-button').getAttribute('data-url');\n      const title = 'Square Online Checkout';\n\n      \/\/ Some platforms embed in an iframe, so we want to top window to calculate sizes correctly\n      const topWindow = window.top ? window.top : window;\n\n      \/\/ Fixes dual-screen position                                Most browsers          Firefox\n      const dualScreenLeft = topWindow.screenLeft !==  undefined ? topWindow.screenLeft : topWindow.screenX;\n      const dualScreenTop = topWindow.screenTop !==  undefined   ? topWindow.screenTop  : topWindow.screenY;\n\n      const width = topWindow.innerWidth ? topWindow.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;\n      const height = topWindow.innerHeight ? topWindow.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;\n\n      const h = height * .75;\n      const w = 500;\n\n      const systemZoom = width \/ topWindow.screen.availWidth;\n      const left = (width - w) \/ 2 \/ systemZoom + dualScreenLeft;\n      const top = (height - h) \/ 2 \/ systemZoom + dualScreenTop;\n      const newWindow = window.open(url, title, `scrollbars=yes, width=${w \/ systemZoom}, height=${h \/ systemZoom}, top=${top}, left=${left}`);\n\n      if (window.focus) newWindow.focus();\n    }\n\n    \/\/ This overrides the default checkout button click handler to show the embed modal\n    \/\/ instead of opening a new tab with the given link url\n    document.getElementById('embedded-checkout-modal-checkout-button').addEventListener('click', function (e) {\n      showCheckoutWindow(e);\n    });\n  <\/script>\n<\/div>\n    <\/div>\n<\/div>\n<!-- \/module text -->        <\/div>\n                        <\/div>\n        <\/div>\n        <\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"<p>Donate<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-350","page","type-page","status-publish","hentry","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"builder_content":"<a target=\"_blank\" data-url=\"https:\/\/square.link\/u\/2rjvMPrW?src=embd\" href=\"https:\/\/square.link\/u\/2rjvMPrW?src=embed\" style=\" display: inline-block; font-size: 18px; line-height: 48px; height: 48px; color: #ffffff; min-width: 212px; background-color: #000000; text-align: center; box-shadow: 0 0 0 1px rgba(0,0,0,.1) inset; \">Donate<\/a> \n<p>","_links":{"self":[{"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/pages\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":2,"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/pages\/350\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/pages\/350\/revisions\/352"}],"wp:attachment":[{"href":"https:\/\/st-helena-american-legion.org\/index.php\/wp-json\/wp\/v2\/media?parent=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}