{"id":708,"date":"2017-03-16T09:18:40","date_gmt":"2017-03-16T08:18:40","guid":{"rendered":"https:\/\/www.degeelebosch.nl\/reserveren\/"},"modified":"2024-04-25T16:45:24","modified_gmt":"2024-04-25T14:45:24","slug":"book-online","status":"publish","type":"page","link":"https:\/\/www.degeelebosch.nl\/en\/book-online\/","title":{"rendered":"Book online"},"content":{"rendered":"<!-- HFCM by 99 Robots - Snippet # 9: Recranet config script + sdk (EN) -->\n<script type=\"text\/javascript\">\r\n    window.recranetConfig = {\r\n        organization: '1211',\r\n        locale: 'en',\r\n        currency: 'EUR',\r\n        googleApiKey: 'hPdRpaNNKS_d9dNtn5-cdkDz3YA8LuIgAyi8_2f'\r\n    };\r\n<\/script>\r\n\r\n\r\n<script>\r\n  document.addEventListener('DOMContentLoaded', function() {\r\n    function getRandomTimestamp(start, end) {\r\n      \/\/ Calculate a random time between start and end\r\n      const randomTime = start + Math.random() * (end - start);\r\n      \r\n      \/\/ Create a new Date object using the random time\r\n      const randomDate = new Date(randomTime);\r\n      \r\n      \/\/ Return the timestamp in milliseconds\r\n      return randomDate.getTime();\r\n    }\r\n\r\n    const thirtyDaysAgo = Date.now() - 30 * 24 * 60 * 60 * 1000; \/\/ 30 days in milliseconds\r\n    const now = Date.now();\r\n    const randomTimestamp = getRandomTimestamp(thirtyDaysAgo, now);\r\n\r\n    \/\/ Create a script element\r\n    const scriptElement = document.createElement('script');\r\n    \r\n    \/\/ Set the src attribute with the random timestamp\r\n    scriptElement.src = `https:\/\/static.recranet.com\/elements\/en\/sdk.js?timestamp=${randomTimestamp}`;\r\n\r\n    \/\/ Use the onload event to ensure the script is loaded after the random timestamp is generated\r\n    scriptElement.onload = function() {\r\n      console.log('External script loaded successfully.');\r\n    };\r\n\r\n    \/\/ Append the script element to the document body\r\n    document.body.appendChild(scriptElement);\r\n  });\r\n<\/script>\r\n\r\n\r\n\n<!-- \/end HFCM by 99 Robots -->\n\n<!-- HFCM by 99 Robots - Snippet # 10: Recranet base tag+element en\/book-online (EN) -->\n<base href=\"\/en\/book-online\">\r\n<recranet-accommodations class=\"recranet-element\"><\/recranet-accommodations>\n<!-- \/end HFCM by 99 Robots -->\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-empty.php","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/pages\/708"}],"collection":[{"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":3,"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/pages\/708\/revisions"}],"predecessor-version":[{"id":1272,"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/pages\/708\/revisions\/1272"}],"wp:attachment":[{"href":"https:\/\/www.degeelebosch.nl\/en\/wp-json\/wp\/v2\/media?parent=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}