{"id":1194,"date":"2024-03-27T20:16:17","date_gmt":"2024-03-27T18:16:17","guid":{"rendered":"https:\/\/rently-il.com\/%d7%94%d7%96%d7%9e%d7%a0%d7%94\/"},"modified":"2025-10-12T22:24:59","modified_gmt":"2025-10-12T20:24:59","slug":"booking","status":"publish","type":"page","link":"https:\/\/rently-il.com\/he\/booking\/","title":{"rendered":"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1194\" class=\"elementor elementor-1194 elementor-394\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-40e9061 e-con-full e-flex e-con e-parent\" data-id=\"40e9061\" data-element_type=\"container\" data-e-type=\"container\" id=\"bookingEngine\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f62df88 elementor-widget elementor-widget-html\" data-id=\"f62df88\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    \/\/ Select the div element\n    var mainNav = document.querySelector('.main-nav.sticky-header');\n    \n    \/\/ Check if the element exists\n    if (mainNav) {\n        mainNav.classList.add('elementor-sticky--effects');\n    }\n    \n    \/\/ Function to parse GET parameters\n    function getParameterByName(param) {\n        let params = new URL(document.location).searchParams;\n        return(params.get(param));\n    }\n    \n    \/\/ Function to format date as YYYY-mm-dd\n    function formatDate(dateString) {\n        var dateParts = dateString.split(\/[-\\\/]\/);\n        var year = dateParts[2];\n        var month = dateParts[1].padStart(2, '0');\n        var day = dateParts[0].padStart(2, '0');\n        return year + '-' + month + '-' + day;\n    }\n\n    \/\/ Get parameters from the URL\n    var city = getParameterByName('city');\n    var country = getParameterByName('country');\n    var minOccupancy = getParameterByName('minOccupancy');\n    var checkIn = getParameterByName('checkIn');\n    var checkOut = getParameterByName('checkOut');\n\n    \/\/ Validate and sanitize parameters\n    var isValidCity = city && \/^[a-zA-Z\\s]*$\/.test(city);\n    var isValidCountry = country && \/^[a-zA-Z\\s]*$\/.test(country);\n    var isValidMinOccupancy = minOccupancy && \/^[0-9]*$\/.test(minOccupancy);\n    var isValidCheckIn = checkIn && \/^[0-9\\-\\\/]*$\/.test(checkIn);\n    var isValidCheckOut = checkOut && \/^[0-9\\-\\\/]*$\/.test(checkOut);\n\n    \/\/ Format dates as YYYY-mm-dd\n    var formattedCheckIn = isValidCheckIn ? formatDate(checkIn) : '';\n    var formattedCheckOut = isValidCheckOut ? formatDate(checkOut) : '';\n\n    \/\/ Construct URL with valid parameters\n    \/\/ var bookingURL = \"https:\/\/rently-seaside.guestybookings.com\/properties?city=Eilat&country=Israel&\";\n    var bookingURL = \"https:\/\/rently.bookingsboom.com\/listings?city&region&neighborhood&children=0&exit-intent=true\";\n    \/*if (isValidCity) bookingURL += \"city=\" + encodeURIComponent(city) + \"&\";\n    if (isValidCountry) bookingURL += \"country=\" + encodeURIComponent(country) + \"&\";*\/\n    if (isValidMinOccupancy) bookingURL += \"&adults=\" + encodeURIComponent(minOccupancy);\n    if (isValidCheckIn) bookingURL += \"&check_in=\" + encodeURIComponent(formattedCheckIn);\n    if (isValidCheckOut) bookingURL += \"&check_out=\" + encodeURIComponent(formattedCheckOut);\n    \n    bookingURL += \"&lang=he\";\n\n    \/\/ Remove trailing '&' if present\n    bookingURL = bookingURL.replace(\/&$\/, \"\");\n\n    \/\/ Load iframe with valid parameters\n        var iframe = document.createElement('iframe');\n        iframe.src = bookingURL;\n        \n        \/\/ Append iframe to bookingEngine div\n        var bookingEngineDiv = document.getElementById('bookingEngine');\n        bookingEngineDiv.appendChild(iframe);\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1123,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1194","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u05d4\u05d6\u05de\u05e0\u05d5\u05ea - Rently<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rently-il.com\/he\/booking\/\" \/>\n<meta property=\"og:locale\" content=\"he_IL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea - Rently\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rently-il.com\/he\/booking\/\" \/>\n<meta property=\"og:site_name\" content=\"Rently\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Rentlyys\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-12T20:24:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1248\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rently-il.com\/he\/booking\/\",\"url\":\"https:\/\/rently-il.com\/he\/booking\/\",\"name\":\"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea - Rently\",\"isPartOf\":{\"@id\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/rently-il.com\/he\/booking\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/rently-il.com\/he\/booking\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg\",\"datePublished\":\"2024-03-27T18:16:17+00:00\",\"dateModified\":\"2025-10-12T20:24:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/rently-il.com\/he\/booking\/#breadcrumb\"},\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rently-il.com\/he\/booking\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\/\/rently-il.com\/he\/booking\/#primaryimage\",\"url\":\"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg\",\"contentUrl\":\"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg\",\"width\":2048,\"height\":1248},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rently-il.com\/he\/booking\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/rently-il.com\/he\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/#website\",\"url\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/\",\"name\":\"rently\",\"description\":\"Your Next Vacation.\",\"publisher\":{\"@id\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"he-IL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/#organization\",\"name\":\"rently\",\"url\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/02\/logo-removebg.png\",\"contentUrl\":\"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/02\/logo-removebg.png\",\"width\":732,\"height\":341,\"caption\":\"rently\"},\"image\":{\"@id\":\"https:\/\/fsbgfenm.elementor.cloud\/he\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Rentlyys\",\"https:\/\/www.instagram.com\/rently.ys\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea - Rently","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rently-il.com\/he\/booking\/","og_locale":"he_IL","og_type":"article","og_title":"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea - Rently","og_url":"https:\/\/rently-il.com\/he\/booking\/","og_site_name":"Rently","article_publisher":"https:\/\/www.facebook.com\/Rentlyys","article_modified_time":"2025-10-12T20:24:59+00:00","og_image":[{"width":2048,"height":1248,"url":"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rently-il.com\/he\/booking\/","url":"https:\/\/rently-il.com\/he\/booking\/","name":"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea - Rently","isPartOf":{"@id":"https:\/\/fsbgfenm.elementor.cloud\/he\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rently-il.com\/he\/booking\/#primaryimage"},"image":{"@id":"https:\/\/rently-il.com\/he\/booking\/#primaryimage"},"thumbnailUrl":"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg","datePublished":"2024-03-27T18:16:17+00:00","dateModified":"2025-10-12T20:24:59+00:00","breadcrumb":{"@id":"https:\/\/rently-il.com\/he\/booking\/#breadcrumb"},"inLanguage":"he-IL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rently-il.com\/he\/booking\/"]}]},{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/rently-il.com\/he\/booking\/#primaryimage","url":"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg","contentUrl":"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/03\/lavander-apt5.jpeg","width":2048,"height":1248},{"@type":"BreadcrumbList","@id":"https:\/\/rently-il.com\/he\/booking\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rently-il.com\/he\/"},{"@type":"ListItem","position":2,"name":"\u05d4\u05d6\u05de\u05e0\u05d5\u05ea"}]},{"@type":"WebSite","@id":"https:\/\/fsbgfenm.elementor.cloud\/he\/#website","url":"https:\/\/fsbgfenm.elementor.cloud\/he\/","name":"rently","description":"Your Next Vacation.","publisher":{"@id":"https:\/\/fsbgfenm.elementor.cloud\/he\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fsbgfenm.elementor.cloud\/he\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"he-IL"},{"@type":"Organization","@id":"https:\/\/fsbgfenm.elementor.cloud\/he\/#organization","name":"rently","url":"https:\/\/fsbgfenm.elementor.cloud\/he\/","logo":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/fsbgfenm.elementor.cloud\/he\/#\/schema\/logo\/image\/","url":"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/02\/logo-removebg.png","contentUrl":"https:\/\/rently-il.com\/wp-content\/uploads\/2024\/02\/logo-removebg.png","width":732,"height":341,"caption":"rently"},"image":{"@id":"https:\/\/fsbgfenm.elementor.cloud\/he\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Rentlyys","https:\/\/www.instagram.com\/rently.ys\/"]}]}},"_links":{"self":[{"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/pages\/1194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/comments?post=1194"}],"version-history":[{"count":17,"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/pages\/1194\/revisions"}],"predecessor-version":[{"id":2503,"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/pages\/1194\/revisions\/2503"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/media\/1123"}],"wp:attachment":[{"href":"https:\/\/rently-il.com\/he\/wp-json\/wp\/v2\/media?parent=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}