{"id":4591,"date":"2023-11-08T03:15:21","date_gmt":"2023-11-08T03:15:21","guid":{"rendered":"https:\/\/ag-invest.es\/?page_id=4591"},"modified":"2024-02-13T16:57:36","modified_gmt":"2024-02-13T16:57:36","slug":"mogent6","status":"publish","type":"page","link":"https:\/\/ag-invest.es\/es\/mogent6\/","title":{"rendered":"Mogent 6 apartment"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4591\" class=\"elementor elementor-4591\">\n\t\t\t\t<div class=\"has_eae_slider elementor-element elementor-element-a2af253 e-con-full e-flex e-con e-parent\" data-eae-slider=\"38459\" data-id=\"a2af253\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-53772ae elementor-widget elementor-widget-heading\" data-id=\"53772ae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Mogent 6 apartment<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"has_eae_slider elementor-element elementor-element-2d5ee32 e-con-full e-flex e-con e-parent\" data-eae-slider=\"1434\" data-id=\"2d5ee32\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"has_eae_slider elementor-element elementor-element-a76d0be e-con-full e-flex e-con e-child\" data-eae-slider=\"13503\" data-id=\"a76d0be\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"has_eae_slider elementor-element elementor-element-a8e6f69 e-con-full e-flex e-con e-child\" data-eae-slider=\"88963\" data-id=\"a8e6f69\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9f12515 elementor-widget__width-auto eae-pop-btn-type-text elementor-widget elementor-widget-wts-modal-popup\" data-id=\"9f12515\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wts-modal-popup.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"eae-popup-wrapper eae-popup-eae-pupup-item-102751034\" data-id=\"eae-pupup-item-102751034\" data-preview-modal=\"\" data-close-button-type=\"icon\" data-close-btn=\"fas fa-times\" data-close-in-out=\"true\" data-effect=\"\">\n\t\t\t<a class=\"eae-popup-link icon-position-before\"\n\t\t\tdata-id=\"eae-pupup-item-102751034\" data-ctrl-id=\"9f12515\" href=\"#eae-pupup-item-102751034\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"eae-popup-btn-icon\">\n\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"eae-popup-btn-text\">\n\t\t\t\t\t\t\tBOOK NOW\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t<\/div>\n\n\t\t<div id=\"eae-pupup-item-102751034\" class=\"eae-popup-eae-pupup-item-102751034 mfp-hide eae-popup-container\">\n\t\t\t<input class=\"eae-hidden-post-id\" type=\"hidden\" name=\"eae_hidden_post_id\" data-id=\"eae-pupup-item-102751034\" value=\"0\" \/>\n\t\t\t<div class=\"eae-popup-content\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"eae-modal-title mfp-title\">\n\t\t\t\t\t\t\tModal Title\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"eae-modal-content\">\n\t\t\t\t\t\t\t\t<div data-elementor-type=\"section\" data-elementor-id=\"459\" class=\"elementor elementor-459\">\n\t\t\t\t<div class=\"has_eae_slider elementor-element elementor-element-a4e3418 e-flex e-con-boxed e-con e-parent\" data-eae-slider=\"81918\" data-id=\"a4e3418\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-002719c elementor-widget__width-inherit elementor-widget elementor-widget-wp-widget-mod_vikbooking_horizontalsearch\" data-id=\"002719c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wp-widget-mod_vikbooking_horizontalsearch.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n<div class=\"vbmodhorsearchmaindiv vbo-horizsearch-humanformat-wrap\">\n\t<form action=\"https:\/\/ag-invest.es\/es\/search-field-3\/?task=search\" method=\"post\" id=\"vbo-mod-horsearch-form-347\">\n\t\t<input type=\"hidden\" name=\"task\" value=\"search\" \/>\n\t\t<div class=\"vbmodhorsearch-hum-dates-wrap\">\n\t\t\t<div class=\"vbmodhorsearch-humcalcont vbmodhorsearchcheckindiv\">\n\t\t\t\t<label class=\"vbo-horizsearch-lbl-dt-347\">Check-in date<\/label>\n\t\t\t\t<div class=\"vbo-horizsearch-showcalendar vbo-horizsearch-showcalendar-from\" id=\"vbo-horizsearch-checkin347\">\n\t\t\t\t\t<i class=\"far fa-calendar-alt\"><\/i>\t\t\t\t\t<span class=\"vbo-horizsearch-placeholder\">Select date<\/span>\n\t\t\t\t\t<div id=\"vbo-horizsearch-period347-from\" class=\"vbo-horizsearch-period-from\">\n\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-mday\"><\/span>\n\t\t\t\t\t\t<div class=\"vbo-horizsearch-period-dt\">\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-month\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-year\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-wday\"><\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vbo-horizsearch-dpicker-cont vbo-horizsearch-dpicker-from\" id=\"checkindatemod347\" style=\"display: none;\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"checkindate\" id=\"inp-checkindatemod347\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkinh\" value=\"15\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkinm\" value=\"0\"\/>\n\t\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearch-humcalcont vbmodhorsearchcheckoutdiv\">\n\t\t\t\t<label class=\"vbo-horizsearch-lbl-dt-347\">Check-out date<\/label>\n\t\t\t\t<div class=\"vbo-horizsearch-showcalendar vbo-horizsearch-showcalendar-to\" id=\"vbo-horizsearch-checkout347\">\n\t\t\t\t\t<i class=\"far fa-calendar-alt\"><\/i>\t\t\t\t\t<span class=\"vbo-horizsearch-placeholder\">Select date<\/span>\n\t\t\t\t\t<div id=\"vbo-horizsearch-period347-to\" class=\"vbo-horizsearch-period-to\">\n\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-mday\"><\/span>\n\t\t\t\t\t\t<div class=\"vbo-horizsearch-period-dt\">\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-month\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-year\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-wday\"><\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vbo-horizsearch-dpicker-cont vbo-horizsearch-dpicker-to\" id=\"checkoutdatemod347\" style=\"display: none;\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"checkoutdate\" id=\"inp-checkoutdatemod347\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkouth\" value=\"10\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkoutm\" value=\"0\"\/>\n\t\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearchtotnights\" id=\"vbjstotnightsmod347\"><\/div>\n\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-wrap\">\n\t\t\t\n\t\t\t<label onclick=\"jQuery('#vbmodhorsearch-hum-guests-count347').trigger('click');\">Guests<\/label>\n\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-count\" id=\"vbmodhorsearch-hum-guests-count347\">\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-rooms\">\n\t\t\t\t\t<label>Rooms<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-rooms347\">1<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-adults\">\n\t\t\t\t\t<label>Adults<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-adults347\">1<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-children\">\n\t\t\t\t\t<label>Children<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-children347\">0<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-modifier\" style=\"display: none;\">\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-modifier-inner\">\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"vbmodhorsearchroomsel\">\n\t\t\t\t\t\t<label for=\"vbmodformroomsn347\">Rooms<\/label>\n\t\t\t\t\t\t<span class=\"vbhsrnselsp\"><select name=\"roomsnum\" id=\"vbmodformroomsn347\" onchange=\"vbSetRoomsAdultsMod347(this.value);\">\n<option value=\"1\">1<\/option>\n<option value=\"2\">2<\/option>\n<option value=\"3\">3<\/option>\n<option value=\"4\">4<\/option>\n<option value=\"5\">5<\/option>\n<\/select><\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"vbmodhorsearchroomdentr\">\n\t\t\t\t\t\t<div class=\"vbmodhorsearchroomdentrfirst\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"horsrnum\">Room 1<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"horsanumdiv\">\n\t\t\t\t\t\t\t\t<label class=\"horsanumlb\" for=\"vbo-mhs-adults-347\">Adults<\/label>\n\t\t\t\t\t\t\t\t<span class=\"horsanumsel\"><select name=\"adults[]\" id=\"vbo-mhs-adults-347\" onchange=\"vbCountTotGuests347();\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><\/select><\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"horscnumdiv\">\n\t\t\t\t\t\t\t\t<label class=\"horscnumlb\" for=\"vbo-mhs-children-347\">Children<\/label>\n\t\t\t\t\t\t\t\t<span class=\"horscnumsel\"><select name=\"children[]\" id=\"vbo-mhs-children-347\" onchange=\"vbCountTotGuests347();\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><\/select><\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"vbmoreroomscontmod\" id=\"vbmoreroomscontmod347\"><\/div>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearchcategoriesblock\">\n\t\t\t<label class=\"vbmodhscategories\" for=\"vbmodhscategories347\">Category<\/label>\n\t\t\t<span class=\"vbhsrcselsp\">\n\t\t\t\t<select name=\"categories\" id=\"vbmodhscategories347\">\n\t\t\t\t\t<option value=\"all\">Any<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"4\">Alfons Magnanim<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"16\">Avenida del Cid<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"9\">Celsa<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"17\">Enric L\u00f3pez<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"5\">Fernando de los Rios<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"6\">Germans Serra<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"15\">Juan Valera<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"7\">Maresme<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"14\">Maria Benlliure<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"8\">Mogent 6<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"10\">Olivera<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"12\">Princep Jordi<\/option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"11\">Saturn<\/option>\n\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"vbmodhorsearchbookdiv\">\n\t\t\t<button type=\"submit\" id=\"vbo-mod-horsearch-sbt-347\" class=\"btn vbsearchinputmodhors vbo-pref-color-btn\">Book Now<\/button>\n\t\t<\/div>\n\n\t\t<script type=\"text\/javascript\">\n\t\t\tjQuery(function() {\n\t\t\t\tjQuery('button#vbo-mod-horsearch-sbt-347').on('click', function(e) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tjQuery(this).prop('disabled', true);\n\t\t\t\t\tjQuery(this).html('<i class=\"fas fa-circle-notch fa-spin fa-fw\"><\/i> ' + jQuery(this).text());\n\t\t\t\t\tjQuery(this).closest('form').submit();\n\t\t\t\t});\n\t\t\t});\n\t\t<\/script>\n\t\t<\/form>\n<\/div>\n\n<div class=\"vbo-modhs-js-helpers\" style=\"display: none;\">\n\t<div class=\"vbo-modhs-add-element-html\">\n\t\t<div class=\"vbmodhorsearchroomdentr\">\n\t\t\t<span class=\"horsrnum\">Room %d<\/span>\n\t\t\t<div class=\"horsanumdiv\">\n\t\t\t\t<label style=\"display: none;\" for=\"vbo-mhs-adults-347-hid\">Adults<\/label>\n\t\t\t\t<span class=\"horsanumsel\"><select name=\"adults[]\" id=\"vbo-mhs-adults-347-hid\" onchange=\"vbCountTotGuests347();\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><\/select><\/span>\n\t\t\t\t\t\t\t<div class=\"horscnumdiv\">\n\t\t\t\t\t<label style=\"display: none;\" for=\"vbo-mhs-children-347-hid\">Children<\/label>\n\t\t\t\t\t<span class=\"horscnumsel\"><select name=\"children[]\" id=\"vbo-mhs-children-347-hid\" onchange=\"vbCountTotGuests347();\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><\/select><\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n<script type=\"text\/javascript\">\nfunction vboModHorSearchSendRequest(elem, formId) {\n\tvar form_el = document.getElementById('vbo-mod-horsearch-form-' + formId);\n\tif (!form_el) {\n\t\tconsole.error('form not found', formId);\n\t\treturn false;\n\t}\n\n\t\/\/ valid all form required fields\n\tif (typeof form_el.checkValidity === 'function' && !form_el.checkValidity()) {\n\t\t\/\/ modern browsers will support this HTML5 method to check the form required fields\n\t\talert(Joomla.JText._('VBO_PLEASE_FILL_FIELDS'));\n\t\treturn false;\n\t}\n\n\t\/\/ make sure the dates have been selected\n\tvar checkin_date_el = jQuery(form_el).find('input[name=\"checkindate\"]');\n\tvar checkout_date_el = jQuery(form_el).find('input[name=\"checkoutdate\"]');\n\tif (!checkin_date_el.length || !checkin_date_el.val().length || !checkout_date_el.length || !checkout_date_el.val().length) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\t\/\/ make sure the dates are not identical to have a min stay of 1 night\n\t\/\/ as by default the datepicker could set equal dates to the hidden fields.\n\tif (checkin_date_el.val() == checkout_date_el.val()) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\n\t\/\/ disable the send request button to avoid double submissions\n\telem.disabled = true;\n\t\n\t\/\/ get form values\n\tvar qstring = jQuery(form_el).serialize();\n\n\t\/\/ make sure the task is not set\n\tqstring = qstring.replace('task=search', '');\n\tqstring = qstring.replace('view=search', '');\n\n\t\/\/ make the ajax request to the controller\n\tjQuery.ajax({\n\t\ttype: \"POST\",\n\t\turl: \"https:\/\/ag-invest.es\/wp-admin\/admin-ajax.php?task=submit_inquiry&Itemid=3436&action=vikbooking&vik_ajax_client=site\",\n\t\tdata: qstring\n\t}).done(function(res) {\n\t\tif (!res.hasOwnProperty('status')) {\n\t\t\talert('Invalid response');\n\t\t\t\/\/ re-enable the button\n\t\t\telem.disabled = false;\n\t\t\treturn false;\n\t\t}\n\t\tif (!res.status) {\n\t\t\talert(res.error);\n\t\t\t\/\/ re-enable the button\n\t\t\telem.disabled = false;\n\t\t\treturn false;\n\t\t}\n\t\t\/\/ show success message by replacing all fields\n\t\tjQuery('.vbo-mod-horsearch-inquiry-fields').html('<p class=\"vbo-mod-horsearch-inquiry-mess-success\">' + Joomla.JText._('VBO_THANKS_INQ_SUBMITTED') + '<\/p>');\n\t\t\/\/ remove submit button container\n\t\tjQuery('.vbo-mod-horsearch-inquiry-submit').remove();\n\t}).fail(function(err) {\n\t\talert(err.responseText);\n\t\t\/\/ re-enable the button\n\t\telem.disabled = false;\n\t});\n}\n\nfunction vboModHorSearchBookOnline(formId) {\n\tvar form_el = document.getElementById('vbo-mod-horsearch-form-' + formId);\n\tif (!form_el) {\n\t\tconsole.error('form not found', formId);\n\t\treturn false;\n\t}\n\n\t\/\/ we need to let a button of type button trigger the submit of the \"check availability\"\n\t\/\/ or in case of inquiry, the browser will check the validity of the required fields.\n\n\t\/\/ we only check if the dates have been selected\n\tvar checkin_date_el = jQuery(form_el).find('input[name=\"checkindate\"]');\n\tvar checkout_date_el = jQuery(form_el).find('input[name=\"checkoutdate\"]');\n\tif (!checkin_date_el.length || !checkin_date_el.val().length || !checkout_date_el.length || !checkout_date_el.val().length) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\n\t\/\/ make sure the dates are not identical to have a min stay of 1 night\n\t\/\/ as by default the datepicker could set equal dates to the hidden fields.\n\tif (checkin_date_el.val() == checkout_date_el.val()) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\n\t\/\/ simply submit the form to start the booking process\n\tform_el.submit();\n\n\treturn true;\n}\n\nfunction vbAddElementMod347() {\n\tvar ni = document.getElementById('vbmoreroomscontmod347');\n\tvar numi = document.getElementById('vbroomhelpermod347');\n\tvar num = (document.getElementById('vbroomhelpermod347').value -1) + 2;\n\tnumi.value = num;\n\tvar newdiv = document.createElement('div');\n\tvar divIdName = 'vb'+num+'racont';\n\tnewdiv.setAttribute('id', divIdName);\n\t\/\/ build HTML content to append to new element\n\tvar new_element_html = document.getElementsByClassName('vbo-modhs-add-element-html')[0].innerHTML;\n\t\/\/ set room number\n\tlet rp_rgx = new RegExp('%d', 'g');\n\tnew_element_html = new_element_html.replace(rp_rgx, num);\n\t\/\/ get rid of label tag (Web Accessibility)\n\tlet lbl_rgx = new RegExp(\/<label\\s.+>.+<\\\/label>\/, 'g');\n\tnew_element_html = new_element_html.replace(lbl_rgx, '');\n\t\/\/ get rid of any id attribute (Web Accessibility)\n\tlet idattr_rgx = new RegExp(\/id=\"[^\\\"]+\"\/, 'g');\n\tnew_element_html = new_element_html.replace(idattr_rgx, '');\n\t\/\/ set HTML content and append element\n\tnewdiv.innerHTML = new_element_html;\n\tni.appendChild(newdiv);\n}\n\nfunction vbSetRoomsAdultsMod347(totrooms) {\n\tvar actrooms = parseInt(document.getElementById('vbroomhelpermod347').value);\n\tvar torooms = parseInt(totrooms);\n\tvar difrooms;\n\tif (torooms > actrooms) {\n\t\tdifrooms = torooms - actrooms;\n\t\tfor (var ir = 1; ir <= difrooms; ir++) {\n\t\t\tvbAddElementMod347();\n\t\t}\n\t}\n\tif (torooms < actrooms) {\n\t\tfor (var ir = actrooms; ir > torooms; ir--) {\n\t\t\tif (ir > 1) {\n\t\t\t\tvar rmra = document.getElementById('vb' + ir + 'racont');\n\t\t\t\trmra.parentNode.removeChild(rmra);\n\t\t\t}\n\t\t}\n\t\tdocument.getElementById('vbroomhelpermod347').value = torooms;\n\t}\n\tif (document.getElementById('vbmodhorsearch-hum-guests-rooms347')) {\n\t\tdocument.getElementById('vbmodhorsearch-hum-guests-rooms347').innerText = torooms;\n\t\tvbCountTotGuests347();\n\t}\n}\n\nfunction vbCountTotGuests347() {\n\tif (!document.getElementById('vbmodhorsearch-hum-guests-rooms347')) {\n\t\treturn;\n\t}\n\tvar totadults = 0;\n\tvar totchildren = 0;\n\tjQuery('#vbmodhorsearch-hum-guests-count347').parent().find('select[name=\"adults[]\"]').each(function() {\n\t\tvar curel = jQuery(this).find('option:selected');\n\t\tif (curel.length) {\n\t\t\ttotadults += parseInt(curel.val());\n\t\t}\n\t});\n\tjQuery('#vbmodhorsearch-hum-guests-adults347').text(totadults);\n\tif (jQuery('#vbmodhorsearch-hum-guests-children347').length) {\n\t\tjQuery('#vbmodhorsearch-hum-guests-count347').parent().find('select[name=\"children[]\"]').each(function() {\n\t\t\tvar curel = jQuery(this).find('option:selected');\n\t\t\tif (curel.length) {\n\t\t\t\ttotchildren += parseInt(curel.val());\n\t\t\t}\n\t\t});\n\t\tjQuery('#vbmodhorsearch-hum-guests-children347').text(totchildren);\n\t}\n}\n\nfunction vbCalcNightsMod347() {\n\tvar vbcheckin = document.getElementById('inp-checkindatemod347').value;\n\tvar vbcheckout = document.getElementById('inp-checkoutdatemod347').value;\n\tif (vbcheckin.length > 0 && vbcheckout.length > 0) {\n\t\tvar vbcheckinp = vbcheckin.split(\"\/\");\n\t\tvar vbcheckoutp = vbcheckout.split(\"\/\");\n\t\t\tvar vbinmonth = parseInt(vbcheckinp[1]);\n\t\tvbinmonth = vbinmonth - 1;\n\t\tvar vbinday = parseInt(vbcheckinp[0], 10);\n\t\tvar vbcheckind = new Date(vbcheckinp[2], vbinmonth, vbinday);\n\t\tvar vboutmonth = parseInt(vbcheckoutp[1]);\n\t\tvboutmonth = vboutmonth - 1;\n\t\tvar vboutday = parseInt(vbcheckoutp[0], 10);\n\t\tvar vbcheckoutd = new Date(vbcheckoutp[2], vboutmonth, vboutday);\n\t\t\t\tvar vbdivider = 1000 * 60 * 60 * 24;\n\t\tvar vbints = vbcheckind.getTime();\n\t\tvar vboutts = vbcheckoutd.getTime();\n\t\tif (vboutts > vbints) {\n\t\t\t\/\/var vbnights = Math.ceil((vboutts - vbints) \/ (vbdivider));\n\t\t\tvar utc1 = Date.UTC(vbcheckind.getFullYear(), vbcheckind.getMonth(), vbcheckind.getDate());\n\t\t\tvar utc2 = Date.UTC(vbcheckoutd.getFullYear(), vbcheckoutd.getMonth(), vbcheckoutd.getDate());\n\t\t\tvar vbnights = Math.ceil((utc2 - utc1) \/ vbdivider);\n\t\t\tif (vbnights > 0) {\n\t\t\t\tdocument.getElementById('vbjstotnightsmod347').innerHTML = '<div class=\"vbo-horizsearch-numnights-inner\"><span>Nights:<\/span> <span>'+vbnights+'<\/span><\/div>';\n\t\t\t} else {\n\t\t\t\tdocument.getElementById('vbjstotnightsmod347').innerHTML = '';\n\t\t\t}\n\t\t} else {\n\t\t\tdocument.getElementById('vbjstotnightsmod347').innerHTML = '';\n\t\t}\n\t} else {\n\t\tdocument.getElementById('vbjstotnightsmod347').innerHTML = '';\n\t}\n}\n<\/script>\n\n<input type=\"hidden\" id=\"vbroomhelpermod347\" value=\"1\"\/>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dfa18c4 elementor-widget__width-initial elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"dfa18c4\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;pulse&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-small\">Choose category \"<b>Mogent6<\/b>\"<\/h1>\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<div class=\"has_eae_slider elementor-element elementor-element-5a019bc e-con-full e-flex e-con e-child\" data-eae-slider=\"23569\" data-id=\"5a019bc\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"has_eae_slider elementor-element elementor-element-ef183bb e-con-full e-flex e-con e-child\" data-eae-slider=\"68522\" data-id=\"ef183bb\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d2b1b15 elementor-widget elementor-widget-heading\" data-id=\"d2b1b15\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">About this space<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-80bc2af elementor-widget elementor-widget-text-editor\" data-id=\"80bc2af\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: left;\">Comfortable apartment with WIFI.<br \/>Just 15 minutes walk to the sea and the beach.<br \/>10 min from the shopping center \"Diagonal Mar\"!<br \/>There are 3 bedrooms and a living room with a balcony. In building with elevator. Metro station one minute walk from the apartment, and it takes only 15 min by subway to the city center.<br \/>There is a large Spanish supermarket \"Mercadona\" where you can find everything you need, also fresh fish and seafood.<br \/>There are also other \u201cDay\u201d, \u201cConsum\u201d supermarkets, cafes and different bakeries.<\/p><p>Perfect for families and groups who like beaches and enjoy shopping!<br \/>There is a living room, equipped kitchen and 3 bedrooms.<br \/>Comfortable for 4 people (3 bedrooms: 1 with double bed, 2 with single bed)<br \/>It has everything you need to relax. All appliances (TV, washing machine, wifi connection, etc.)<br \/>Linens and towels are included in the price.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e857b61 elementor-widget elementor-widget-heading\" data-id=\"e857b61\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h6 class=\"elementor-heading-title elementor-size-default\">Guest access<\/h6>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ceee9f6 elementor-widget elementor-widget-text-editor\" data-id=\"ceee9f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f9040f8 elementor-widget elementor-widget-text-editor\" data-id=\"f9040f8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\"><div class=\"elementor-widget-container\"><div class=\"_50mnu4\"><div class=\"focus-visible\" tabindex=\"-1\" data-focus-visible-added=\"\"><div class=\"_178zopn\"><div class=\"_pgfqnw\"><p>The apartment has a very convenient transport connection. \"Bes\u00f2s Mar\" Metro Station is a 1-minute walk away, and \"El Maresme y Forum\" is a 5-minute walk away. There are many coffee shops, restaurants, pharmacies, banks and grocery stores near the apartment. In addition, a large Diagonal Mar shopping mall where you can experience top-notch shopping.<br \/>The best way to see Barcelona is to use the \"Bus turistic\", which is very easy to take as the nearest stop is just 5 minutes walk from the apartment.<\/p><\/div><\/div><\/div><\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dd7d18b elementor-widget elementor-widget-text-editor\" data-id=\"dd7d18b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"_178zopn\"><div class=\"_pgfqnw\"><div class=\"_178zopn\"><div class=\"_pgfqnw\"><div class=\"_178zopn\"><p class=\"_pgfqnw\"><span style=\"font-size: 16px;\">Tourist License - HUTB-007339<\/span><\/p><p><span style=\"font-size: 16px;\">Registration Number - HUTB-007339<\/span><\/p><\/div><\/div><\/div><\/div><\/div>\t\t\t\t\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\t\t<\/div>\n\t\t<div class=\"has_eae_slider elementor-element elementor-element-df8ea7b e-con-full e-flex e-con e-parent\" data-eae-slider=\"79651\" data-id=\"df8ea7b\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"has_eae_slider elementor-element elementor-element-7f7ce87 e-con-full e-flex e-con e-child\" data-eae-slider=\"8848\" data-id=\"7f7ce87\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-662ba6b elementor-widget elementor-widget-text-editor\" data-id=\"662ba6b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"text-decoration: underline;\"><strong>Other things to note:<\/strong><\/span> Please don't make any noise, especially after 10pm. The apartment is only for over 21 years old. Check-in after 10pm -23:45 AM max. ( LATE check in) +20 euros. No pats and no parties please. Tourist Permit-HUTB-007339<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-14d78b4 elementor-widget elementor-widget-heading\" data-id=\"14d78b4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Address: Barcelona, Catalunya, Spain<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-26222b9 elementor-widget__width-initial elementor-widget elementor-widget-html\" data-id=\"26222b9\" 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<iframe data-src=\"https:\/\/www.google.com\/maps\/d\/u\/1\/embed?mid=12VIqgAggfnhU8iZRIvZAFwOdiDrTxfE&ehbc=2E312F&noprof=1\" width=\"640\" height=\"480\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe>\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\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Mogent 6 apartment BOOK NOW Modal Title Check-In Date Select date Check-Out Date Select date Guests Rooms 1 Adults 1 Children 0 Rooms 12345 Room 1 Adults 12345678910 Children 01234 Category AnyAlfons MagnanimCelsaFamily ApartmentFernando de los RiosGermans SerraHoliday ApartmentMaresmeMogent 6OliveraPrincep JordiSaturnStudio Room %d 12345678910 01234 Choose category \"Mogent6\" About this space Comfortable apartment with WIFI.Just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1311,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"property":[],"real_estate":[37],"class_list":["post-4591","page","type-page","status-publish","has-post-thumbnail","hentry","real_estate-apartment"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/pages\/4591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/comments?post=4591"}],"version-history":[{"count":41,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/pages\/4591\/revisions"}],"predecessor-version":[{"id":5695,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/pages\/4591\/revisions\/5695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/media\/1311"}],"wp:attachment":[{"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/media?parent=4591"}],"wp:term":[{"taxonomy":"property","embeddable":true,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/property?post=4591"},{"taxonomy":"real_estate","embeddable":true,"href":"https:\/\/ag-invest.es\/es\/wp-json\/wp\/v2\/real_estate?post=4591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}