{"id":970,"date":"2019-03-25T10:24:33","date_gmt":"2019-03-25T10:24:33","guid":{"rendered":"https:\/\/visionrcl.org.uk\/?page_id=970"},"modified":"2021-12-07T14:46:18","modified_gmt":"2021-12-07T14:46:18","slug":"swim-vision-waiting-list","status":"publish","type":"page","link":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/swim-vision-waiting-list\/","title":{"rendered":"Swim Vision Waiting List"},"content":{"rendered":"<div class=\"wp-bootstrap-blocks-container container mb-2\">\n\t\n\n<p>If you would like to be added to the swimming waiting list, please complete the form below. Before submitting, please ensure you have read our full <strong><a href=\"https:\/\/visionrcl.org.uk\/sport-health-physical-fitness\/swimming-lessons\/swim-vision-terms-and-conditions\/\" target=\"_blank\" rel=\"noopener\">terms and conditions<\/a><\/strong>.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n    <iframe\n      id=\"JotFormIFrame-213403716283956\"\n      title=\"Swim Vision Waiting List\"\n      onload=\"window.parent.scrollTo(0,0)\"\n      allowtransparency=\"true\"\n      allowfullscreen=\"true\"\n      allow=\"geolocation; microphone; camera\"\n      src=\"https:\/\/visionrcl.jotform.com\/213403716283956\"\n      frameborder=\"0\"\n      style=\"\n      min-width: 100%;\n      height:539px;\n      border:none;\"\n      scrolling=\"no\"\n    >\n    <\/iframe>\n    <script type=\"text\/javascript\">\n      var ifr = document.getElementById(\"JotFormIFrame-213403716283956\");\n      if (ifr) {\n        var src = ifr.src;\n        var iframeParams = [];\n        if (window.location.href && window.location.href.indexOf(\"?\") > -1) {\n          iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf(\"?\") + 1).split('&'));\n        }\n        if (src && src.indexOf(\"?\") > -1) {\n          iframeParams = iframeParams.concat(src.substr(src.indexOf(\"?\") + 1).split(\"&\"));\n          src = src.substr(0, src.indexOf(\"?\"))\n        }\n        iframeParams.push(\"isIframeEmbed=1\");\n        ifr.src = src + \"?\" + iframeParams.join('&');\n      }\n      window.handleIFrameMessage = function(e) {\n        if (typeof e.data === 'object') { return; }\n        var args = e.data.split(\":\");\n        if (args.length > 2) { iframe = document.getElementById(\"JotFormIFrame-\" + args[(args.length - 1)]); } else { iframe = document.getElementById(\"JotFormIFrame\"); }\n        if (!iframe) { return; }\n        switch (args[0]) {\n          case \"scrollIntoView\":\n            iframe.scrollIntoView();\n            break;\n          case \"setHeight\":\n            iframe.style.height = args[1] + \"px\";\n            break;\n          case \"collapseErrorPage\":\n            if (iframe.clientHeight > window.innerHeight) {\n              iframe.style.height = window.innerHeight + \"px\";\n            }\n            break;\n          case \"reloadPage\":\n            window.location.reload();\n            break;\n          case \"loadScript\":\n            if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; }\n            var src = args[1];\n            if (args.length > 3) {\n                src = args[1] + ':' + args[2];\n            }\n            var script = document.createElement('script');\n            script.src = src;\n            script.type = 'text\/javascript';\n            document.body.appendChild(script);\n            break;\n          case \"exitFullscreen\":\n            if      (window.document.exitFullscreen)        window.document.exitFullscreen();\n            else if (window.document.mozCancelFullScreen)   window.document.mozCancelFullScreen();\n            else if (window.document.mozCancelFullscreen)   window.document.mozCancelFullScreen();\n            else if (window.document.webkitExitFullscreen)  window.document.webkitExitFullscreen();\n            else if (window.document.msExitFullscreen)      window.document.msExitFullscreen();\n            break;\n        }\n        var isJotForm = (e.origin.indexOf(\"jotform\") > -1) ? true : false;\n        if(isJotForm && \"contentWindow\" in iframe && \"postMessage\" in iframe.contentWindow) {\n          var urls = {\"docurl\":encodeURIComponent(document.URL),\"referrer\":encodeURIComponent(document.referrer)};\n          iframe.contentWindow.postMessage(JSON.stringify({\"type\":\"urls\",\"value\":urls}), \"*\");\n        }\n      };\n      window.isPermitted = function(originUrl, whitelisted_domains) {\n        var url = document.createElement('a');\n        url.href = originUrl;\n        var hostname = url.hostname;\n        var result = false;\n        if( typeof hostname !== 'undefined' ) {\n          whitelisted_domains.forEach(function(element) {\n              if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) ||  hostname === element ) {\n                  result = true;\n              }\n          });\n          return result;\n        }\n      };\n      if (window.addEventListener) {\n        window.addEventListener(\"message\", handleIFrameMessage, false);\n      } else if (window.attachEvent) {\n        window.attachEvent(\"onmessage\", handleIFrameMessage);\n      }\n      <\/script>\n\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-general-article.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-970","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/pages\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/comments?post=970"}],"version-history":[{"count":2,"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/pages\/970\/revisions"}],"predecessor-version":[{"id":66476,"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/pages\/970\/revisions\/66476"}],"wp:attachment":[{"href":"https:\/\/isca00.bigwaveserver.co.uk\/~visionrc\/wp-json\/wp\/v2\/media?parent=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}