{"id":110,"date":"2024-03-25T03:31:09","date_gmt":"2024-03-25T09:31:09","guid":{"rendered":"https:\/\/casasantour.com\/?page_id=110"},"modified":"2024-03-25T03:39:55","modified_gmt":"2024-03-25T09:39:55","slug":"elementor-110","status":"publish","type":"page","link":"https:\/\/casasantour.com\/es\/elementor-110","title":{"rendered":"Elementor #110"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"110\" class=\"elementor elementor-110\">\n\t\t\t\t<div class=\"elementor-element elementor-element-74d769d e-flex e-con-boxed e-con e-parent\" data-id=\"74d769d\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-83e0d94 elementor-widget elementor-widget-wp-widget-mod_vikbooking_currencyconverter\" data-id=\"83e0d94\" data-element_type=\"widget\" data-widget_type=\"wp-widget-mod_vikbooking_currencyconverter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script type=\"text\/javascript\">\nvar sendprices = new Array();\nvar vbcurconvbasepath = 'https:\/\/casasantour.com\/wp-content\/plugins\/vikbooking\/modules\/mod_vikbooking_currencyconverter\/images\/flags\/';\nvar vbcurconvbaseflag = 'https:\/\/casasantour.com\/wp-content\/plugins\/vikbooking\/modules\/mod_vikbooking_currencyconverter\/images\/flags\/MXN.png';\nvar fromCurrency = 'MXN';\nvar fromSymbol;\nvar pricestaken = 0;\njQuery(document).ready(function() {\n\tif (jQuery(\".vbo_price\").length > 0) {\n\t\tjQuery(\".vbo_price\").each(function() {\n\t\t\tsendprices.push(jQuery(this).text());\n\t\t});\n\t\tpricestaken = 1;\n\t}\n\tif (jQuery(\".vbo_currency\").length > 0) {\n\t\tfromSymbol = jQuery(\".vbo_currency\").first().html();\n\t}\n\t});\nfunction vboConvertCurrency(toCurrency) {\n\tif (sendprices.length > 0) {\n\t\tjQuery(\".vbo_currency\").text(toCurrency);\n\t\tjQuery(\".vbo_price\").text(\"\").addClass(\"vbo_converting\");\n\t\tvar modvbocurconvax = jQuery.ajax({\n\t\t\ttype: \"POST\",\n\t\t\turl: \"https:\/\/casasantour.com\/wp-admin\/admin-ajax.php?task=currencyconverter&action=vikbooking&vik_ajax_client=site\",\n\t\t\tdata: {prices: sendprices, fromsymbol: fromSymbol, fromcurrency: fromCurrency, tocurrency: toCurrency, tmpl: \"component\"}\n\t\t}).done(function(resp) {\n\t\t\tjQuery(\".vbo_price\").removeClass(\"vbo_converting\");\n\t\t\tvar convobj = JSON.parse(resp);\n\t\t\tif (convobj.hasOwnProperty(\"error\")) {\n\t\t\t\talert(convobj.error);\n\t\t\t\tvboUndoConversion();\n\t\t\t} else {\n\t\t\t\tjQuery(\".vbo_currency\").html(convobj[0].symbol);\n\t\t\t\tjQuery(\".vbo_price\").each(function(i) {\n\t\t\t\t\tjQuery(this).text(convobj[i].price);\n\t\t\t\t});\n\t\t\t\tif (jQuery('.vbcurconv-flag').length) {\n\t\t\t\t\tjQuery(\".vbcurconv-flag-img\").attr(\"src\", vbcurconvbasepath+toCurrency+\".png\");\n\t\t\t\t\tjQuery(\".vbcurconv-flag-img\").attr(\"alt\", toCurrency);\n\t\t\t\t\tjQuery(\".vbcurconv-flag-img\").attr(\"title\", toCurrency);\n\t\t\t\t\tjQuery(\".vbcurconv-flag-symb\").html(convobj[0].symbol);\n\t\t\t\t}\n\t\t\t}\n\t\t}).fail(function(){\n\t\t\tjQuery(\".vbo_price\").removeClass(\"vbo_converting\");\n\t\t\tvboUndoConversion();\n\t\t});\n\t} else {\n\t\tjQuery(\".modcurconvsel\").val(\"MXN\");\n\t}\n}\nfunction vboUndoConversion() {\n\tjQuery(\".vbo_currency\").text(fromSymbol);\n\tjQuery(\".vbo_price\").each(function(i) {\n\t\tjQuery(this).text(sendprices[i]);\n\t});\n\tif (jQuery('.vbcurconv-flag').length) {\n\t\tjQuery(\".vbcurconv-flag-symb\").text(fromSymbol);\n\t\tjQuery(\".vbcurconv-flag-img\").attr(\"src\", vbcurconvbaseflag);\n\t\tjQuery(\".vbcurconv-flag-img\").attr(\"alt\", fromCurrency);\n\t\tjQuery(\".vbcurconv-flag-img\").attr(\"title\", fromCurrency);\n\t}\n\tjQuery(\".modcurconvsel\").val(fromCurrency);\n}\n<\/script>\n\n<div class=\"vbcurconvcontainer\">\n\t<div class=\"vbcurconv-flag\">\n\t\t<img decoding=\"async\" class=\"vbcurconv-flag-img\" alt=\"MXN\" title=\"MXN\" src=\"https:\/\/casasantour.com\/wp-content\/plugins\/vikbooking\/modules\/mod_vikbooking_currencyconverter\/images\/flags\/MXN.png\"\/>\t\t<span class=\"vbcurconv-flag-symb\">&#36;<\/span>\n\t<\/div>\n\t<div class=\"vbcurconv-menu\">\n\t\t<select class=\"modcurconvsel\" name=\"mod_vikbooking_currencyconverter\" onchange=\"vboConvertCurrency(this.value);\">\n\t\t\t<option value=\"MXN\" selected=\"selected\">MXN<\/option>\n\t\t\t\t<\/select>\n\t<\/div>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-70b6002 elementor-widget elementor-widget-wp-widget-mod_vikbooking_horizontalsearch\" data-id=\"70b6002\" data-element_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:\/\/casasantour.com\/es\/?task=search\" method=\"post\" id=\"vbo-mod-horsearch-form-410\" data-trp-original-action=\"https:\/\/casasantour.com\/es\/?task=search\">\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-410\">Check-in date<\/label>\n\t\t\t\t<div class=\"vbo-horizsearch-showcalendar vbo-horizsearch-showcalendar-from\" id=\"vbo-horizsearch-checkin410\">\n\t\t\t\t\t<i class=\"far fa-calendar-alt\"><\/i>\t\t\t\t\t<span class=\"vbo-horizsearch-placeholder\">Seleccione fecha<\/span>\n\t\t\t\t\t<div id=\"vbo-horizsearch-period410-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=\"checkindatemod410\" style=\"display: none;\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"checkindate\" id=\"inp-checkindatemod410\"\/>\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-410\">Check-out date<\/label>\n\t\t\t\t<div class=\"vbo-horizsearch-showcalendar vbo-horizsearch-showcalendar-to\" id=\"vbo-horizsearch-checkout410\">\n\t\t\t\t\t<i class=\"far fa-calendar-alt\"><\/i>\t\t\t\t\t<span class=\"vbo-horizsearch-placeholder\">Seleccione fecha<\/span>\n\t\t\t\t\t<div id=\"vbo-horizsearch-period410-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=\"checkoutdatemod410\" style=\"display: none;\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"checkoutdate\" id=\"inp-checkoutdatemod410\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkouth\" value=\"11\"\/>\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=\"vbjstotnightsmod410\"><\/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-count410').trigger('click');\">Hu\u00e9spedes<\/label>\n\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-count\" id=\"vbmodhorsearch-hum-guests-count410\">\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-rooms\">\n\t\t\t\t\t<label>Habitaciones<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-rooms410\">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>Hu\u00e9spedes<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-adults410\">2<\/span>\n\t\t\t\t<\/div>\n\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=\"vbmodformroomsn410\">Habitaciones<\/label>\n\t\t\t\t\t\t<span class=\"vbhsrnselsp\"><select name=\"roomsnum\" id=\"vbmodformroomsn410\" onchange=\"vbSetRoomsAdultsMod410(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<\/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\">Habitaci\u00f3n 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-410\">Hu\u00e9spedes<\/label>\n\t\t\t\t\t\t\t\t<span class=\"horsanumsel\"><select name=\"adults[]\" id=\"vbo-mhs-adults-410\" onchange=\"vbCountTotGuests410();\"><option value=\"1\">1<\/option><option value=\"2\" selected=\"selected\">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<\/div>\n\t\t\t\t\t\t<div class=\"vbmoreroomscontmod\" id=\"vbmoreroomscontmod410\"><\/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=\"vbmodhorsearchbookdiv\">\n\t\t\t<button type=\"submit\" id=\"vbo-mod-horsearch-sbt-410\" class=\"btn vbsearchinputmodhors vbo-pref-color-btn\">Reserve ahora<\/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-410').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<input type=\"hidden\" name=\"trp-form-language\" value=\"es\"\/><\/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\">Habitaci\u00f3n %d<\/span>\n\t\t\t<div class=\"horsanumdiv\">\n\t\t\t\t<label style=\"display: none;\" for=\"vbo-mhs-adults-410-hid\">Hu\u00e9spedes<\/label>\n\t\t\t\t<span class=\"horsanumsel\"><select name=\"adults[]\" id=\"vbo-mhs-adults-410-hid\" onchange=\"vbCountTotGuests410();\"><option value=\"1\">1<\/option><option value=\"2\" selected=\"selected\">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<\/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:\/\/casasantour.com\/wp-admin\/admin-ajax.php?task=submit_inquiry&Itemid=82&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 vbAddElementMod410() {\n\tvar ni = document.getElementById('vbmoreroomscontmod410');\n\tvar numi = document.getElementById('vbroomhelpermod410');\n\tvar num = (document.getElementById('vbroomhelpermod410').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 vbSetRoomsAdultsMod410(totrooms) {\n\tvar actrooms = parseInt(document.getElementById('vbroomhelpermod410').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\tvbAddElementMod410();\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('vbroomhelpermod410').value = torooms;\n\t}\n\tif (document.getElementById('vbmodhorsearch-hum-guests-rooms410')) {\n\t\tdocument.getElementById('vbmodhorsearch-hum-guests-rooms410').innerText = torooms;\n\t\tvbCountTotGuests410();\n\t}\n}\n\nfunction vbCountTotGuests410() {\n\tif (!document.getElementById('vbmodhorsearch-hum-guests-rooms410')) {\n\t\treturn;\n\t}\n\tvar totadults = 0;\n\tvar totchildren = 0;\n\tjQuery('#vbmodhorsearch-hum-guests-count410').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-adults410').text(totadults);\n\tif (jQuery('#vbmodhorsearch-hum-guests-children410').length) {\n\t\tjQuery('#vbmodhorsearch-hum-guests-count410').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-children410').text(totchildren);\n\t}\n}\n\nfunction vbCalcNightsMod410() {\n\tvar vbcheckin = document.getElementById('inp-checkindatemod410').value;\n\tvar vbcheckout = document.getElementById('inp-checkoutdatemod410').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[2], 10);\n\t\tvar vbcheckind = new Date(vbcheckinp[0], vbinmonth, vbinday);\n\t\tvar vboutmonth = parseInt(vbcheckoutp[1]);\n\t\tvboutmonth = vboutmonth - 1;\n\t\tvar vboutday = parseInt(vbcheckoutp[2], 10);\n\t\tvar vbcheckoutd = new Date(vbcheckoutp[0], 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('vbjstotnightsmod410').innerHTML = '<div class=\"vbo-horizsearch-numnights-inner\"><span>Noches:<\/span> <span>'+vbnights+'<\/span><\/div>';\n\t\t\t} else {\n\t\t\t\tdocument.getElementById('vbjstotnightsmod410').innerHTML = '';\n\t\t\t}\n\t\t} else {\n\t\t\tdocument.getElementById('vbjstotnightsmod410').innerHTML = '';\n\t\t}\n\t} else {\n\t\tdocument.getElementById('vbjstotnightsmod410').innerHTML = '';\n\t}\n}\n<\/script>\n\n<input type=\"hidden\" id=\"vbroomhelpermod410\" value=\"1\"\/>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-455f6ad elementor-widget elementor-widget-wp-widget-vikwp_counter\" data-id=\"455f6ad\" data-element_type=\"widget\" data-widget_type=\"wp-widget-vikwp_counter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5>1<\/h5>\n<a id=\"vikcounter-start\"><\/a>\n<div id=\"vikcounter-362\" class=\"vikcounter container-fluid\">\n\t<div class=\"vikcounter-inner row\">\n\t\t<div class=\"vikcounter-item col-xs-6 col-sm-4\"><div class=\"vikcounter-item-inner\"><span class=\"vikcounter-icon\"><i class=\"far fa-binoculars\" ><\/i><\/span><span id=\"vikcounter-count-362-0\" class=\"vikcounter-count\">1<\/span><h3 class=\"vikcounter-title\">2<\/h3><div class=\"vikcounter-caption\">3<\/div><\/div><\/div><div class=\"vikcounter-item col-xs-6 col-sm-4\"><div class=\"vikcounter-item-inner\"><span class=\"vikcounter-icon\"><i class=\"fal fa-accessible-icon\" ><\/i><\/span><span id=\"vikcounter-count-362-1\" class=\"vikcounter-count\">12<\/span><\/div><\/div><div class=\"vikcounter-item col-xs-6 col-sm-4\"><div class=\"vikcounter-item-inner\"><span class=\"vikcounter-icon\"><i class=\"fa fa-accessible-icon\" ><\/i><\/span><span id=\"vikcounter-count-362-2\" class=\"vikcounter-count\"><\/span><\/div><\/div>\t<\/div>\n<\/div>\n\n<script>\njQuery.noConflict();\nFunction.prototype.debounce = function(threshold) {\n\tvar callback = this;\n\tvar timeout;\n\treturn function() {\n\t\tvar context = this,\n\t\t\tparams = arguments;\n\t\twindow.clearTimeout(timeout);\n\t\ttimeout = window.setTimeout(function() {\n\t\t\tcallback.apply(context, params);\n\t\t}, threshold);\n\t};\n};\njQuery.fn.isOnScreen = function(x, y) {\n\tif (x == null || typeof x == 'undefined') x = 1;\n\tif (y == null || typeof y == 'undefined') y = 1;\n\tvar win = jQuery(window);\n\tvar viewport = {\n\t\ttop: win.scrollTop(),\n\t\tleft: win.scrollLeft()\n\t};\n\tviewport.right = viewport.left + win.width();\n\tviewport.bottom = viewport.top + win.height();\n\tvar height = this.outerHeight();\n\tvar width = this.outerWidth();\n\tif (!width || !height) {\n\t\treturn false;\n\t}\n\tvar bounds = this.offset();\n\tbounds.right = bounds.left + width;\n\tbounds.bottom = bounds.top + height;\n\tvar visible = (!(viewport.right < bounds.left || viewport.left > bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom));\n\tif (!visible) {\n\t\treturn false;\n\t}\n\tvar deltas = {\n\t\ttop: Math.min(1, (bounds.bottom - viewport.top) \/ height),\n\t\tbottom: Math.min(1, (viewport.bottom - bounds.top) \/ height),\n\t\tleft: Math.min(1, (bounds.right - viewport.left) \/ width),\n\t\tright: Math.min(1, (viewport.right - bounds.left) \/ width)\n\t};\n\n\treturn (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;\n};\n\t\t\n\/\/cambia il selettore con ID o classe da leggere, meglio ID cosi hanno sempre la posizione precisa e singola\nvar vikcounter_start = false;\nvar vikcounter_block_cont = jQuery('.vikcounter-inner');\nvar vikcounter_check = function() {\n\tvar vikcounter_cont_visible = vikcounter_block_cont.isOnScreen(0.1, 0.5);\n\tif (vikcounter_cont_visible === true && !vikcounter_start) {\n\t\tvikcounter_start = true;\n\t\tjQuery('.vikcounter-count').each(function () {\n\t\tjQuery(this).prop('Counter',0).animate({\n\t\t\t\tCounter: jQuery(this).text()\n\t\t}, {\n\t\t\t\tduration: 4000,\n\t\t\t\teasing: 'swing',\n\t\t\t\tstep: function (now) {\n\t\t\t\t\t\tjQuery(this).text(Math.ceil(now));\n\t\t\t\t}\n\t\t});\n\t});\n\t}\n}\njQuery(document).ready(function() {\n\tvar debounced = vikcounter_check.debounce(50);\n\tjQuery(window).on('scroll', debounced);\n\n\t\/** Add Class to widget container **\/\n\tif ( jQuery('#vikcounter-362').parents('.module').length ) {\n\t\tjQuery('#vikcounter-362').parents('.module').addClass('');\n\t} else {\n\t\tjQuery('#vikcounter-362').parent('div').addClass('');\n\t}\n});\n<\/script>\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>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/page-notitle.php","meta":{"footnotes":""},"class_list":["post-110","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/pages\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":31,"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/pages\/110\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/pages\/110\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/casasantour.com\/es\/wp-json\/wp\/v2\/media?parent=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}