{"id":327,"date":"2022-09-11T23:04:05","date_gmt":"2022-09-11T23:04:05","guid":{"rendered":"https:\/\/templates.homherodev.com\/burleigh\/?page_id=327"},"modified":"2022-09-11T23:04:43","modified_gmt":"2022-09-11T23:04:43","slug":"availability-chart","status":"publish","type":"page","link":"https:\/\/templates.homherodev.com\/burleigh\/availability-chart\/","title":{"rendered":"Availability Chart"},"content":{"rendered":"<iframe id=\"availability-chart\" frameborder=\"0\" height=\"1050\" src=\"https:\/\/booking.homhero.com.au\/booking-chart.html?key=2265ea2c-fb4d-4946-9ac6-2db3dd68a66f\" scrolling=\"yes\"><\/iframe>    <style>iframe#availability-chart{width: 1px;min-width: 100%;}<\/style>\r\n    <script type=\"text\/javascript\">\r\n    var parentObj = {};\r\n    \/\/ Get the window displayed in the iframe.\r\n    var receiver = document.getElementById(\"booking-frame\").contentWindow;\r\n    \/\/ A function to handle sending messages.\r\n    function sendMessage() {\r\n        receiver.postMessage(JSON.stringify(parentObj), \"*\");\r\n    }\r\n    jQuery(window).scroll(function() {\r\n        parentObj.method = \"parentScroll\";\r\n        parentObj.vars = {};\r\n        parentObj.vars.scrollHeight = window.document.body.scrollHeight;\r\n        parentObj.vars.scrollTop = jQuery(this).scrollTop();\r\n        parentObj.vars.documentHeight = jQuery(window.document).height();\r\n        parentObj.vars.windowHeight = jQuery(window).height();\r\n        sendMessage();\r\n    });\r\n\r\n    var childObj = {};\r\n    \/\/ A function to handle incoming messages\r\n    function receiveMessage(e) {\r\n        if (e.data != \"\") {\r\n            var args = JSON.parse(e.data);\r\n            if (!args.__postRobot__) {\r\n                childObj = eval(args.vars);\r\n                eval(args.method + \"(childObj)\");\r\n            }\r\n        }\r\n    }\r\n    window.addEventListener(\"message\", receiveMessage);\r\n\r\n    function errorScroll() {\r\n        var cal = childObj.bodyScrollHeight \/ window.document.body.scrollHeight;\r\n        pos = (childObj.scrollTop * cal) - 30;\r\n        jQuery(window.document).scrollTop(pos);\r\n    }\r\n    <\/script>\r\n    ","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-327","page","type-page","status-publish","hentry","entry"],"acf":[],"featured_image_src":null,"featured_image_src_square":null,"_links":{"self":[{"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/pages\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":5,"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/pages\/327\/revisions"}],"predecessor-version":[{"id":1100,"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/pages\/327\/revisions\/1100"}],"wp:attachment":[{"href":"https:\/\/templates.homherodev.com\/burleigh\/wp-json\/wp\/v2\/media?parent=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}