<!-- sp:pagelayer/pl_post_props {"post_title":"Upload","post_status":"publish","post_date":"2023-12-14 09:15:01","post_author":"1","post_name":"upload","featured_image":"","post_excerpt":"","post_password":"","comment_status":"","ping_status":"","post_sticky":"","post_parent":0,"menu_order":0,"post_category":"","post_tags":"","pagelayer-id":"kwz5189"} /-->
<!-- sp:pagelayer/pl_row {"stretch":"auto","col_gap":10,"width_content":"auto","row_height":"default","overlay_hover_delay":400,"row_shape_top_color":"#227bc3","row_shape_top_width":100,"row_shape_top_height":100,"row_shape_bottom_color":"#e44993","row_shape_bottom_width":100,"row_shape_bottom_height":100,"pagelayer-id":"u3w6289"} -->
<!-- sp:pagelayer/pl_col {"widget_space":15,"overlay_hover_delay":400,"pagelayer-id":"uh02782"} -->
<!-- sp:pagelayer/pl_shortcodes {"data":"\u003ciframe\n      id=\u0022JotFormIFrame-233441492452555\u0022\n      title=\u0022Upload your Documents (Mountian View Mosselbay) \u0022\n      onload=\u0022window.parent.scrollTo(0,0)\u0022\n      allowtransparency=\u0022true\u0022\n      allowfullscreen=\u0022true\u0022\n      allow=\u0022geolocation; microphone; camera\u0022\n      src=\u0022https://form.jotform.com/233441492452555\u0022\n      frameborder=\u00220\u0022\n      style=\u0022min-width:100%;max-width:100%;height:539px;border:none;\u0022\n      scrolling=\u0022no\u0022\n    \u003e\n    \u003c/iframe\u003e\n    \u003cscript type=\u0022text/javascript\u0022\u003e\n    var ifr = document.getElementById(\u0022JotFormIFrame-233441492452555\u0022);\n    if (ifr) {\n      var src = ifr.src;\n      var iframeParams = [];\n      if (window.location.href \u0026\u0026 window.location.href.indexOf(\u0022?\u0022) \u003e -1) {\n        iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf(\u0022?\u0022) + 1).split('\u0026'));\n      }\n      if (src \u0026\u0026 src.indexOf(\u0022?\u0022) \u003e -1) {\n        iframeParams = iframeParams.concat(src.substr(src.indexOf(\u0022?\u0022) + 1).split(\u0022\u0026\u0022));\n        src = src.substr(0, src.indexOf(\u0022?\u0022))\n      }\n      iframeParams.push(\u0022isIframeEmbed=1\u0022);\n      ifr.src = src + \u0022?\u0022 + iframeParams.join('\u0026');\n    }\n    window.handleIFrameMessage = function(e) {\n      if (typeof e.data === 'object') { return; }\n      var args = e.data.split(\u0022:\u0022);\n      if (args.length \u003e 2) { iframe = document.getElementById(\u0022JotFormIFrame-\u0022 + args[(args.length - 1)]); } else { iframe = document.getElementById(\u0022JotFormIFrame\u0022); }\n      if (!iframe) { return; }\n      switch (args[0]) {\n        case \u0022scrollIntoView\u0022:\n          iframe.scrollIntoView();\n          break;\n        case \u0022setHeight\u0022:\n          iframe.style.height = args[1] + \u0022px\u0022;\n          if (!isNaN(args[1]) \u0026\u0026 parseInt(iframe.style.minHeight) \u003e parseInt(args[1])) {\n            iframe.style.minHeight = args[1] + \u0022px\u0022;\n          }\n          break;\n        case \u0022collapseErrorPage\u0022:\n          if (iframe.clientHeight \u003e window.innerHeight) {\n            iframe.style.height = window.innerHeight + \u0022px\u0022;\n          }\n          break;\n        case \u0022reloadPage\u0022:\n          window.location.reload();\n          break;\n        case \u0022loadScript\u0022:\n          if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; }\n          var src = args[1];\n          if (args.length \u003e 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 \u0022exitFullscreen\u0022:\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(\u0022jotform\u0022) \u003e -1) ? true : false;\n      if(isJotForm \u0026\u0026 \u0022contentWindow\u0022 in iframe \u0026\u0026 \u0022postMessage\u0022 in iframe.contentWindow) {\n        var urls = {\u0022docurl\u0022:encodeURIComponent(document.URL),\u0022referrer\u0022:encodeURIComponent(document.referrer)};\n        iframe.contentWindow.postMessage(JSON.stringify({\u0022type\u0022:\u0022urls\u0022,\u0022value\u0022:urls}), \u0022*\u0022);\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(\u0022message\u0022, handleIFrameMessage, false);\n    } else if (window.attachEvent) {\n      window.attachEvent(\u0022onmessage\u0022, handleIFrameMessage);\n    }\n    \u003c/script\u003e","pagelayer-id":"hph1091"} --><iframe
      id="JotFormIFrame-233441492452555"
      title="Upload your Documents (Mountian View Mosselbay) "
      onload="window.parent.scrollTo(0,0)"
      allowtransparency="true"
      allowfullscreen="true"
      allow="geolocation; microphone; camera"
      src="https://form.jotform.com/233441492452555"
      frameborder="0"
      style="min-width:100%;max-width:100%;height:539px;border:none;"
      scrolling="no"
    >
    </iframe>
    <script type="text/javascript">
    var ifr = document.getElementById("JotFormIFrame-233441492452555");
    if (ifr) {
      var src = ifr.src;
      var iframeParams = [];
      if (window.location.href && window.location.href.indexOf("?") > -1) {
        iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf("?") + 1).split('&'));
      }
      if (src && src.indexOf("?") > -1) {
        iframeParams = iframeParams.concat(src.substr(src.indexOf("?") + 1).split("&"));
        src = src.substr(0, src.indexOf("?"))
      }
      iframeParams.push("isIframeEmbed=1");
      ifr.src = src + "?" + iframeParams.join('&');
    }
    window.handleIFrameMessage = function(e) {
      if (typeof e.data === 'object') { return; }
      var args = e.data.split(":");
      if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[(args.length - 1)]); } else { iframe = document.getElementById("JotFormIFrame"); }
      if (!iframe) { return; }
      switch (args[0]) {
        case "scrollIntoView":
          iframe.scrollIntoView();
          break;
        case "setHeight":
          iframe.style.height = args[1] + "px";
          if (!isNaN(args[1]) && parseInt(iframe.style.minHeight) > parseInt(args[1])) {
            iframe.style.minHeight = args[1] + "px";
          }
          break;
        case "collapseErrorPage":
          if (iframe.clientHeight > window.innerHeight) {
            iframe.style.height = window.innerHeight + "px";
          }
          break;
        case "reloadPage":
          window.location.reload();
          break;
        case "loadScript":
          if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; }
          var src = args[1];
          if (args.length > 3) {
              src = args[1] + ':' + args[2];
          }
          var script = document.createElement('script');
          script.src = src;
          script.type = 'text/javascript';
          document.body.appendChild(script);
          break;
        case "exitFullscreen":
          if      (window.document.exitFullscreen)        window.document.exitFullscreen();
          else if (window.document.mozCancelFullScreen)   window.document.mozCancelFullScreen();
          else if (window.document.mozCancelFullscreen)   window.document.mozCancelFullScreen();
          else if (window.document.webkitExitFullscreen)  window.document.webkitExitFullscreen();
          else if (window.document.msExitFullscreen)      window.document.msExitFullscreen();
          break;
      }
      var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false;
      if(isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) {
        var urls = {"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)};
        iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}), "*");
      }
    };
    window.isPermitted = function(originUrl, whitelisted_domains) {
      var url = document.createElement('a');
      url.href = originUrl;
      var hostname = url.hostname;
      var result = false;
      if( typeof hostname !== 'undefined' ) {
        whitelisted_domains.forEach(function(element) {
            if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) ||  hostname === element ) {
                result = true;
            }
        });
        return result;
      }
    };
    if (window.addEventListener) {
      window.addEventListener("message", handleIFrameMessage, false);
    } else if (window.attachEvent) {
      window.attachEvent("onmessage", handleIFrameMessage);
    }
    </script><!-- /sp:pagelayer/pl_shortcodes -->
<!-- /sp:pagelayer/pl_col -->
<!-- /sp:pagelayer/pl_row -->
