{"id":5676,"date":"2025-10-11T15:00:49","date_gmt":"2025-10-11T15:00:49","guid":{"rendered":"http:\/\/abraryousaf.com\/?page_id=5676"},"modified":"2025-12-21T22:20:14","modified_gmt":"2025-12-21T22:20:14","slug":"client-portal","status":"publish","type":"page","link":"https:\/\/abraryousaf.com\/?page_id=5676","title":{"rendered":"Client Portal"},"content":{"rendered":"<h2 style=\"text-align: left;\">Welcome to the Portal<\/h2>\n<p style=\"text-align: left;\">Click on the link below:<\/p>\n<p>\u00a0<\/p>\n\n\n<div>\n  <div style=\"\n    overflow: auto;\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-end;\n    align-items: center;\n    width: 259px;\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      <a id=\"embedded-checkout-modal-checkout-button\"\n         target=\"_blank\"\n         data-url=\"https:\/\/aycpapc.cchifirm.ca\/3\/clientportal\"\n         href=\"https:\/\/aycpapc.cchifirm.ca\/3\/clientportal\"\n         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: 6px;\n         \">Client Portal<\/a>\n    <\/div>\n  <\/div>\n\n  <script>\n    function showCheckoutWindow(e) {\n      e.preventDefault();\n      const url = document.getElementById('embedded-checkout-modal-checkout-button').getAttribute('data-url');\n      const title = 'Client Portal';\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      \/\/ 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      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      const h = height * .75;\n      const w = 500;\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\n\n\n\n<div>\n  <div style=\"\n    overflow: auto;\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-end;\n    align-items: center;\n    width: 259px;\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      <a id=\"embedded-checkout-modal-checkout-button\"\n         target=\"_blank\"\n         data-url=\"https:\/\/aycpapc.cchifirm.ca\/3\/clientportal\"\n         href=\"https:\/\/aycpapc.cchifirm.ca\/3\/clientportal\"\n         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: 6px;\n         \">Client Portal<\/a>\n    <\/div>\n  <\/div>\n\n  <script>\n    function showCheckoutWindow(e) {\n      e.preventDefault();\n      const url = document.getElementById('embedded-checkout-modal-checkout-button').getAttribute('data-url');\n      const title = 'Client Portal';\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      \/\/ 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      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      const h = height * .75;\n      const w = 500;\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\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the Portal Click on the link below: \u00a0 Client Portal function showCheckoutWindow(e) { e.preventDefault(); const url = document.getElementById(&#8217;embedded-checkout-modal-checkout-button&#8217;).getAttribute(&#8216;data-url&#8217;); const title = &#8216;Client Portal&#8217;; \/\/ Some platforms embed in an iframe, so we want to top window to calculate sizes correctly const topWindow = window.top ? window.top : window; \/\/ Fixes dual-screen position Most [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-5676","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/abraryousaf.com\/index.php?rest_route=\/wp\/v2\/pages\/5676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abraryousaf.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/abraryousaf.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/abraryousaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abraryousaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5676"}],"version-history":[{"count":4,"href":"https:\/\/abraryousaf.com\/index.php?rest_route=\/wp\/v2\/pages\/5676\/revisions"}],"predecessor-version":[{"id":5902,"href":"https:\/\/abraryousaf.com\/index.php?rest_route=\/wp\/v2\/pages\/5676\/revisions\/5902"}],"wp:attachment":[{"href":"https:\/\/abraryousaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}