document.addEventListener('DOMContentLoaded', function(){ jomresJquery('div.btn-group[data-toggle-name="*"]').each(function(){ var group = jomresJquery(this); var form = group.parents('form').eq(0); var name = group.attr('data-toggle-name'); var hidden = jomresJquery('input[name="' + name + '"]', form); jomresJquery('button', group).each(function(){ var button = jomresJquery(this); button.live('click', function(){ hidden.val(jomresJquery(this).val()); }); if(button.val() == hidden.val()) { button.addClass('btn-primary active'); } }); }); }, false); .card-img-top { width: 100% !important; object-fit: cover !important; height: 200px !important; } .card-img-radius { border-radius: 20px !important; } .card-img-top-lg { width:100%; max-height: 600px !important; min-height: 600px !important; object-fit: cover !important; } .card-img-top-md { width:100%; max-height: 300px !important; min-height: 300px !important; object-fit: cover !important; } .card-img-top-sm { width:100%; max-height: 100px !important; min-height: 100px !important; object-fit: cover !important; } .ribbon { position: absolute !important; right:0 !important; top:0 !important; z-index: 10 !important; overflow: hidden !important; width: 90px !important; height: 90px !important; text-align: right !important;} .ribbon span { background:#EEA2A2; font-size: 12px !important; font-weight: bold !important; text-transform: uppercase !important; text-align: center !important; line-height: 24px !important; transform: rotate(45deg) !important; -webkit-transform: rotate(45deg) !important; width: 170px !important; display: block !important; position: absolute !important; top: 25px !important; right: -49px !important;} .image-container { position: relative; text-align: center; color: white; } .top-left{ position: absolute; top: 8px; left: 24px; z-index: 10 !important; background-color: rgba(1, 33, 82, 0.50); font-weight: bold; } .bottom-left { position: absolute; bottom: 8px; left: 24px; z-index: 10 !important; background-color: rgba(55, 122, 40, 0.5); } .bottom-right { position: absolute; bottom: 8px; right: 24px; z-index: 10 !important; background-color: rgb(122, 93, 40, 0.5); } // Submits the form results and populates the results div function submit_search(form_name) { var spinner_template = ` Loading...`; populateDiv('sidebar_search_results',spinner_template); jomresJquery("#search_panel").collapse("hide"); var_form_data = jomresJquery("#"+form_name).serialize(); jomresJquery.get('http://www.peninsulavallarta.com/index.php?option=com_jomres&no_html=1&jrajax=1&Itemid=108&lang=en'+'&task=ajax_search_filter&ajax_search_form_name=MllDFmAfQJ&nofollowtmpl&'+var_form_data, function(data){ var result = data.split("^"); populateDiv('sidebar_search_results',result[0]); eval(result[1]); document.querySelector('#sidebar_search_results').scrollIntoView({ behavior: 'smooth' }); parse_ajax_returned_scripts(data); AOS.refreshHard(); jomresJquery('.plist-button').livequery(function() { jomresJquery(this).button(); jomresJquery(this).show(); }); jomresJquery('.plist-button-last').livequery(function() { jomresJquery(this).button(); jomresJquery(this).show(); }); bind_data_toggle(); jomresJquery("input[type=checkbox][name=compare]").click(function() { var bol = jomresJquery("input[type=checkbox][name=compare]:checked").length >= 3; jomresJquery("input[type=checkbox][name=compare]").not(":checked").attr("disabled",bol); }); } ); } // Binds to the form so triggers the ajax search on change jomresJquery(document).ready(function(){ jomresJquery("#MllDFmAfQJ").change( function(){ submit_search("MllDFmAfQJ"); killScroll = false; // IMPORTANT last_scrolled_id = 0; } ); }); jomresJquery(function() { if (jomresJquery("#slider-range").length) { jomresJquery( "#slider-range")[0].slide = null; jomresJquery( "#slider-range" ).slider({ range: true, min: 0, max: 100, values: [ 0, 100 ], slide: function( event, ui ) { jomresJquery( "#amount" ).val( "$" + ui.values[ 0 ]+ "" + " - " + "$" + ui.values[ 1 ]+ "" ); }, change: function(event,ui) { value1 = jomresJquery( "#slider-range" ).slider( "values", 0 ); value2 = jomresJquery( "#slider-range" ).slider( "values", 1 ); jomresJquery('input[name$="pricerange_value_from"]').val(value1); jomresJquery('input[name$="pricerange_value_to"]').val(value2); submit_search('MllDFmAfQJ'); } }); jomresJquery( "#amount" ).val( "$" + jomresJquery( "#slider-range" ).slider( "values", 0 )+ "" + " - " + "$" + jomresJquery( "#slider-range" ).slider( "values", 1 )+ "" ); } }); function reset_form_buttons(form_id) { jomresJquery("#"+form_id+" input[type=checkbox]").each(function() { var id = jomresJquery(this).attr('id'); if ('undefined'!=typeof(id)){ var val = jomresJquery(this).attr('checked'); if ('undefined'!=typeof(val)){ jomresJquery(this).attr('checked', false); toggle_button_class('#button_'+id); } } }); submit_search('MllDFmAfQJ'); // This will save the reset options } .element_button { min-width: 120px; max-width: 180px; text-align: left; } .price-range-input { border:0 none !important; background:none !important; box-shadow:none !important; } img.no-resize { min-height: 5px; min-width: 5px; } .sticky { position: -webkit-sticky; position: sticky; top: 0; } Check-in jomresJquery(function() { jomresJquery("#iXZhccJtIFnCgDi").datepicker( { dateFormat: "dd/mm/yy", minDate: 0, maxDate: "+5Y", buttonText: "", buttonImageOnly: true, showOn: "both", changeMonth: true, changeYear: true, numberOfMonths: 1, showOtherMonths: true, selectOtherMonths: true,firstDay: 0, showButtonPanel: true,onSelect: function(selectedDate) { var nextDayDate = jomresJquery("#iXZhccJtIFnCgDi").datepicker('getDate', '+1d'); nextDayDate.setDate(nextDayDate.getDate() + 1); jomresJquery("#iXZhccJtIFnCgDi_XXX").datepicker('setDate', nextDayDate); jomresJquery("#iXZhccJtIFnCgDi_XXX").datepicker('option', {minDate: jomresJquery(this).datepicker('getDate')}); }, onClose: function() { jomresJquery("#iXZhccJtIFnCgDi_XXX").datepicker('show'); }} ); }); jomresJquery(function() {jomresJquery("#dp_trigger_iXZhccJtIFnCgDi").on("click", function() {jomresJquery("#iXZhccJtIFnCgDi").datepicker("show");})}); Check-out jomresJquery(function() { jomresJquery("#iXZhccJtIFnCgDi_XXX").datepicker( { dateFormat: "dd/mm/yy", minDate: 0, maxDate: "+5Y", buttonText: "", buttonImageOnly: true, showOn: "both", changeMonth: true, changeYear: true, numberOfMonths: 1, showOtherMonths: true, selectOtherMonths: true,firstDay: 0, showButtonPanel: true} ); }); jomresJquery(function() {jomresJquery("#dp_trigger_iXZhccJtIFnCgDi_XXX").on("click", function() {jomresJquery("#iXZhccJtIFnCgDi_XXX").datepicker("show");})}); jomresJquery(document).ready(function() { jomresJquery('#countriez').multiselect( { numberDisplayed: 3 , buttonClass: 'form-select text text-success', enableHTML:true, nonSelectedText: 'Country', selectedClass: 'text text-success', inheritClass: true, templates: { button: '', li: '', }, } ); }); United Kingdom jomresJquery(document).ready(function() { jomresJquery('#regionsz').multiselect( { numberDisplayed: 3 , buttonClass: 'form-select text text-success', enableHTML:true, nonSelectedText: 'Region', selectedClass: 'active text text-success', templates: { button: '', li: '', } } ); }); Aberdeen City Devon jomresJquery(document).ready(function() { jomresJquery('#townz').multiselect( { numberDisplayed: 3 , buttonClass: 'form-select text text-success', enableHTML:true, nonSelectedText: 'Town', selectedClass: 'active text text-success', templates: { button: '', li: '', } } ); }); Torquay Town jomresJquery(document).ready(function() { jomresJquery('#p_typez').multiselect( { numberDisplayed: 3 , buttonClass: 'form-select text text-success', enableHTML:true, nonSelectedText: 'Type', selectedClass: 'active text text-success', templates: { button: '', li: '', } } ); }); All Apartment Bed and Breakfast Camp Site Car Cottage For Sale Hotel Tour Villa Yacht jomresJquery(document).ready(function() { jomresJquery('#feetchuz').multiselect( { numberDisplayed: 3 , buttonClass: 'form-select text text-success', enableHTML:true, nonSelectedText: 'Features', selectedClass: 'active text text-success', templates: { button: '', li: '', } } ); }); 24hr service Bureau de change Bureau de change Elevator Gym Hairdresser Minibar Wifi WWW Stars 0 (0) 1 (0) 2 (0) 3 (1) 4 (0) 5 (1) Price 1 x Tent pitch 2 person Test Hotel Camp Site Town, Aberdeen City, United Kingdom Compare Book now! document.addEventListener('DOMContentLoaded', function(){ jomresJquery('#module_RRjtODUUJy_popup', '#property_reviews2').appendTo("body"); }); POA Villa Valle Villa Torquay, Devon, United Kingdom Compare Book now! document.addEventListener('DOMContentLoaded', function(){ jomresJquery('#module_MhPVgUjKiU_popup', '#property_reviews1').appendTo("body"); });