{"id":2,"date":"2018-11-13T12:27:29","date_gmt":"2018-11-13T12:27:29","guid":{"rendered":"https:\/\/honorary.com.hk\/recruit\/?page_id=2"},"modified":"2022-03-04T15:49:18","modified_gmt":"2022-03-04T07:49:18","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/honorary.com.hk\/recruit\/","title":{"rendered":""},"content":{"rendered":"<p><iframe id=\"JotFormIFrame-220522095228450\" title=\"\u8077\u4f4d\u7533\u8acb\u8868\u683c - \u9d3b\u9f4a\u6587\u5316\u6709\u9650\u516c\u53f8\" onload=\"window.parent.scrollTo(0,0)\" allowtransparency=\"true\" allowfullscreen=\"true\" allow=\"geolocation; microphone; camera\" src=\"https:\/\/form.jotform.com\/220522095228450\" frameborder=\"0\" style=\"\n      min-width: 100%;\n      height:3000px;\n      border:none;\" scrolling=\"no\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\"><br \/>\n      var ifr = document.getElementById(\"JotFormIFrame-220522095228450\");<br \/>\n      if (ifr) {<br \/>\n        var src = ifr.src;<br \/>\n        var iframeParams = [];<br \/>\n        if (window.location.href && window.location.href.indexOf(\"?\") > -1) {<br \/>\n          iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf(\"?\") + 1).split('&'));<br \/>\n        }<br \/>\n        if (src && src.indexOf(\"?\") > -1) {<br \/>\n          iframeParams = iframeParams.concat(src.substr(src.indexOf(\"?\") + 1).split(\"&\"));<br \/>\n          src = src.substr(0, src.indexOf(\"?\"))<br \/>\n        }<br \/>\n        iframeParams.push(\"isIframeEmbed=1\");<br \/>\n        ifr.src = src + \"?\" + iframeParams.join('&');<br \/>\n      }<br \/>\n      window.handleIFrameMessage = function(e) {<br \/>\n        if (typeof e.data === 'object') { return; }<br \/>\n        var args = e.data.split(\":\");<br \/>\n        if (args.length > 2) { iframe = document.getElementById(\"JotFormIFrame-\" + args[(args.length - 1)]); } else { iframe = document.getElementById(\"JotFormIFrame\"); }<br \/>\n        if (!iframe) { return; }<br \/>\n        switch (args[0]) {<br \/>\n          case \"scrollIntoView\":<br \/>\n            iframe.scrollIntoView();<br \/>\n            break;<br \/>\n          case \"setHeight\":<br \/>\n            iframe.style.height = args[1] + \"px\";<br \/>\n            break;<br \/>\n          case \"collapseErrorPage\":<br \/>\n            if (iframe.clientHeight > window.innerHeight) {<br \/>\n              iframe.style.height = window.innerHeight + \"px\";<br \/>\n            }<br \/>\n            break;<br \/>\n          case \"reloadPage\":<br \/>\n            window.location.reload();<br \/>\n            break;<br \/>\n          case \"loadScript\":<br \/>\n            if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; }<br \/>\n            var src = args[1];<br \/>\n            if (args.length > 3) {<br \/>\n                src = args[1] + ':' + args[2];<br \/>\n            }<br \/>\n            var script = document.createElement('script');<br \/>\n            script.src = src;<br \/>\n            script.type = 'text\/javascript';<br \/>\n            document.body.appendChild(script);<br \/>\n            break;<br \/>\n          case \"exitFullscreen\":<br \/>\n            if      (window.document.exitFullscreen)        window.document.exitFullscreen();<br \/>\n            else if (window.document.mozCancelFullScreen)   window.document.mozCancelFullScreen();<br \/>\n            else if (window.document.mozCancelFullscreen)   window.document.mozCancelFullScreen();<br \/>\n            else if (window.document.webkitExitFullscreen)  window.document.webkitExitFullscreen();<br \/>\n            else if (window.document.msExitFullscreen)      window.document.msExitFullscreen();<br \/>\n            break;<br \/>\n        }<br \/>\n        var isJotForm = (e.origin.indexOf(\"jotform\") > -1) ? true : false;<br \/>\n        if(isJotForm && \"contentWindow\" in iframe && \"postMessage\" in iframe.contentWindow) {<br \/>\n          var urls = {\"docurl\":encodeURIComponent(document.URL),\"referrer\":encodeURIComponent(document.referrer)};<br \/>\n          iframe.contentWindow.postMessage(JSON.stringify({\"type\":\"urls\",\"value\":urls}), \"*\");<br \/>\n        }<br \/>\n      };<br \/>\n      window.isPermitted = function(originUrl, whitelisted_domains) {<br \/>\n        var url = document.createElement('a');<br \/>\n        url.href = originUrl;<br \/>\n        var hostname = url.hostname;<br \/>\n        var result = false;<br \/>\n        if( typeof hostname !== 'undefined' ) {<br \/>\n          whitelisted_domains.forEach(function(element) {<br \/>\n              if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) ||  hostname === element ) {<br \/>\n                  result = true;<br \/>\n              }<br \/>\n          });<br \/>\n          return result;<br \/>\n        }<br \/>\n      };<br \/>\n      if (window.addEventListener) {<br \/>\n        window.addEventListener(\"message\", handleIFrameMessage, false);<br \/>\n      } else if (window.attachEvent) {<br \/>\n        window.attachEvent(\"onmessage\", handleIFrameMessage);<br \/>\n      }<br \/>\n      <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/pages\/2"}],"collection":[{"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":17,"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/pages\/2\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/honorary.com.hk\/recruit\/wp-json\/wp\/v2\/media?parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}