{"id":239,"date":"2021-09-13T20:15:29","date_gmt":"2021-09-13T20:15:29","guid":{"rendered":"https:\/\/optimistclubofchwk.com\/?page_id=239"},"modified":"2022-11-01T01:50:05","modified_gmt":"2022-11-01T01:50:05","slug":"donate-now","status":"publish","type":"page","link":"https:\/\/optimistclubofchwk.com\/?page_id=239","title":{"rendered":"Donate to the Optimist Club of Chilliwack"},"content":{"rendered":"\n<figure class=\"wp-block-image alignright size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/optimistclubofchwk.com\/wp-content\/uploads\/2022\/11\/hands-1797401_1280-300x200.jpg\" alt=\"\" class=\"wp-image-447\" srcset=\"https:\/\/optimistclubofchwk.com\/wp-content\/uploads\/2022\/11\/hands-1797401_1280-300x200.jpg 300w, https:\/\/optimistclubofchwk.com\/wp-content\/uploads\/2022\/11\/hands-1797401_1280-1024x682.jpg 1024w, https:\/\/optimistclubofchwk.com\/wp-content\/uploads\/2022\/11\/hands-1797401_1280-768x512.jpg 768w, https:\/\/optimistclubofchwk.com\/wp-content\/uploads\/2022\/11\/hands-1797401_1280-391x260.jpg 391w, https:\/\/optimistclubofchwk.com\/wp-content\/uploads\/2022\/11\/hands-1797401_1280.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p>Thank you to Chilliwack for your support, without your help we can not meet the growing needs of youth and children in our community.<\/p>\n\n\n\n<p>Your donation goes to help provide the following for our youth and children in need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Medical expenses (dental, eyeglasses, food supplements).<\/li><li>Support for mental health programs.<\/li><li>Scholarships and bursaries.<\/li><li>Extracurricular activities and programs in local schools.<\/li><li>Basic necessities for families in crisis.<\/li><\/ul>\n\n\n\n<p>The Optimist Club of Chilliwack is a registered charity with the Canada Revenue Agency. A tax receipt will be provided for all donations of $20 or more.<\/p>\n\n\n\n<div>\n  <div><div id=\"renderedCheckoutButtonHTML\" style=\"\n  overflow: auto;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  align-items: center;\n  width: 258.96px;\n  background: #FFFFFF;\n  border: 1px solid rgba(0, 0, 0, 0.1);\n  box-shadow: -2px 10px 5px rgba(0, 0, 0, 0);\n  border-radius: 10px;\n  font-family: SQ Market, SQ Market, Helvetica, Arial, sans-serif;\n  \">\n  <div style=\"padding: 20px;\">\n  \n  <a id=\"embedded-checkout-modal-checkout-button\" target=\"_blank\" data-url=\"https:\/\/square.link\/u\/kVhUzd9C?src=embd\" href=\"https:\/\/square.link\/u\/kVhUzd9C?src=embed\" style=\"\n    display: inline-block;\n    font-size: 18px;\n    line-height: 48px;\n    height: 48px;\n    color: #ffffff;\n    min-width: 212px;\n    background-color: #006aff;\n    text-align: center;\n    box-shadow: 0 0 0 1px rgba(0,0,0,.1) inset;\n    border-radius: 50px;\n  \" rel=\"noopener\">Donate now<\/a>\n  <\/div>\n<\/div>\n<textarea class=\"checkout-button-html-hidden-textarea embedded-checkout-link\"><\/textarea><\/div>\n\n  <style>\n    .embedded-checkout-link-html-hidden-textarea,\n    .checkout-button-html-hidden-textarea {\n      opacity: 0;\n      position: absolute;\n    }\n  <\/style>\n\n  <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","protected":false},"excerpt":{"rendered":"<p>Thank you to Chilliwack for your support, without your help we can not meet the growing needs of youth and children in our community. Your donation goes to help provide the following for our youth and children in need: Medical<\/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-239","page","type-page","status-publish","hentry","","tg-column-two"],"_links":{"self":[{"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=\/wp\/v2\/pages\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":10,"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=\/wp\/v2\/pages\/239\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=\/wp\/v2\/pages\/239\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/optimistclubofchwk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}