{"id":1522,"date":"2025-09-16T22:31:14","date_gmt":"2025-09-16T13:31:14","guid":{"rendered":"https:\/\/km9203km9203maruyama.com\/?page_id=1522"},"modified":"2025-09-16T22:31:14","modified_gmt":"2025-09-16T13:31:14","slug":"%e3%82%b7%e3%83%a7%e3%83%83%e3%83%97","status":"publish","type":"page","link":"https:\/\/km9203km9203maruyama.com\/?page_id=1522","title":{"rendered":"\u30b7\u30e7\u30c3\u30d7"},"content":{"rendered":"<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  \"><\/p>\n<div style=\"padding: 20px;\">\n<p style=\"\n    font-size: 18px;\n    line-height: 20px;\n  \">\u304a\u652f\u6255\u3044<\/p>\n<p>    <a target=\"_blank\" data-url=\"https:\/\/square.link\/u\/7wXHetyI?src=embd\" href=\"https:\/\/square.link\/u\/7wXHetyI?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: 6px;\n  \">\u4eca\u3059\u3050\u652f\u6255\u3046<\/a>\n  <\/div>\n<\/div>\n<p>  <script>\n    function showCheckoutWindow(e) {\n      e.preventDefault();<\/p>\n<p>      const url = document.getElementById('embedded-checkout-modal-checkout-button').getAttribute('data-url');\n      const title = 'Square Payment Links';<\/p>\n<p>      \/\/ Some platforms embed in an iframe, so we want to top window to calculate sizes correctly\n      const topWindow = window.top ? window.top : window;<\/p>\n<p>      \/\/ 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;<\/p>\n<p>      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;<\/p>\n<p>      const h = height * .75;\n      const w = 500;<\/p>\n<p>      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}`);<\/p>\n<p>      if (window.focus) newWindow.focus();\n    }<\/p>\n<p>    \/\/ 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>\u304a\u652f\u6255\u3044 \u4eca\u3059\u3050\u652f\u6255\u3046<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"class_list":["post-1522","page","type-page","status-publish"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=\/wp\/v2\/pages\/1522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1522"}],"version-history":[{"count":2,"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=\/wp\/v2\/pages\/1522\/revisions"}],"predecessor-version":[{"id":1524,"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=\/wp\/v2\/pages\/1522\/revisions\/1524"}],"wp:attachment":[{"href":"https:\/\/km9203km9203maruyama.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}