var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); //jQuery.datetimepicker.setLocale('en'); jQuery(function($){ $('[id^="show_prices_"]').click(function(event){ event.preventDefault(); $('#overlay').fadeIn(400, function(){ $('.modal_block') .css('display', 'block') .animate({opacity: 1}, 200); }); }); $('.modal_close, #overlay').click( function(){ $('.modal_block').animate({opacity: 0}, 200, function(){ $(this).css('display', 'none'); $('#overlay').fadeOut(400); } ); }); $('.show_more').click( function(){ var par = $(this).parent(); var max_height = par.children(".accomodation_desc").css('max-height'); par.children(".accomodation_desc").css('max-height', 'none'); par.children(".show_more").css('display', 'none'); par.children(".show_less").css('display', 'block'); par.children(".show_less").click( function(){ par.children(".accomodation_desc").css('max-height', max_height); par.children(".show_more").css('display', 'block'); par.children(".show_less").css('display', 'none'); }); }); }); jQuery(function(){ jQuery( "#booking" ).validate({ rules: { first_name: { required: true }, last_name: { required: true }, email: { required: true, email: true }, tel1: { required: true }, address: { required: true }, number: { required: true }, town: { required: true }, state: { required: true }, country: { required: true }, passport: { required: true }, dob: { required: true }, accept_term: { required: true }, accept_term_adds: { required: true }, accept_cancel: { required: true } } }); jQuery( "#get_quote" ).validate({ rules: { location: { required: true }, date_from: { required: true }, date_to: { required: true }, adults: { required: true }, children: { required: true }, bedrooms: { required: true }, rooms: { required: true } } }); jQuery( "#get_quote2" ).validate({ rules: { date_from2: { required: true }, date_to2: { required: true }, adults2: { required: true }, children2: { required: true }, bedrooms2: { required: true }, rooms2: { required: true } } }); }); /////////////////////////////////////////// jQuery('#date_from').datetimepicker({ format:'d/m/Y', timepicker:false, scrollInput:false, minDate: 0, lang:'en', onSelectDate:function(ct,$i){ var d = jQuery('#date_from').datetimepicker('getValue'); d.setTime(d.getTime() + 86400000); var next_day_year = d.getFullYear(); var next_day_month = d.getMonth()+1; next_day_month = (parseInt(next_day_month)<10)?"0"+next_day_month:next_day_month; var next_day_day = d.getDate(); next_day_day = (parseInt(next_day_day)<10)?"0"+next_day_day:next_day_day; jQuery('#date_to').datetimepicker('setOptions', {minDate: d}); jQuery('#date_to').val(next_day_day + "/" + next_day_month + "/" + next_day_year); }, }).on('focus',function() { jQuery(this).blur(); }); jQuery('#date_to').datetimepicker({ format:'d/m/Y', timepicker:false, scrollInput:false, minDate: '+1970/01/02', lang:'en', }).on('focus',function() { jQuery(this).blur(); }); /////////////////////////////////////////// jQuery('#date_from2').datetimepicker({ format:'d/m/Y', timepicker:false, scrollInput:false, minDate: 0, lang:'en', onSelectDate:function(ct,$i){ var d = jQuery('#date_from2').datetimepicker('getValue'); d.setTime(d.getTime() + 86400000); var next_day_year = d.getFullYear(); var next_day_month = d.getMonth()+1; next_day_month = (parseInt(next_day_month)<10)?"0"+next_day_month:next_day_month; var next_day_day = d.getDate(); next_day_day = (parseInt(next_day_day)<10)?"0"+next_day_day:next_day_day; jQuery('#date_to2').datetimepicker('setOptions', {minDate: d}); jQuery('#date_to2').val(next_day_day + "/" + next_day_month + "/" + next_day_year); }, }).on('focus',function() { jQuery(this).blur(); }); jQuery('#date_to2').datetimepicker({ format:'d/m/Y', timepicker:false, scrollInput:false, minDate: '+1970/01/02', lang:'en', }).on('focus',function() { jQuery(this).blur(); }); /////////////////////////////////////////////// jQuery(function($){ $('#print').click(function(){ window.print(); }); }); jQuery(function($){ $('#modify').click(function(){ $('#search-form').toggleClass('active'); }); }); function success_contact_popup(){ jQuery('#overlay').fadeIn(400, function(){ jQuery('#success_contact') .css('display', 'block') .animate({opacity: 1}, 200); }); } jQuery(function($){ $('#cookies_popup').click(function(event){ event.preventDefault(); $('#overlay').fadeIn(400, function(){ $('#cookies_text') .css('display', 'block') .animate({opacity: 1}, 200); }); }); $('li.quick a').click(function(event){ var isMobile = window.matchMedia("only screen and (max-width: 760px)"); if (!isMobile.matches) { //Conditional script here event.preventDefault(); $('#overlay').fadeIn(400, function(){ $('#tel_text') .css('display', 'block') .animate({opacity: 1}, 200); }); } }); $('#modal_close, #overlay').click( function(){ $('#cookies_text').animate({opacity: 0}, 200, function(){ $(this).css('display', 'none'); $('#overlay').fadeOut(400); } ); $('#tel_text').animate({opacity: 0}, 200, function(){ $(this).css('display', 'none'); $('#overlay').fadeOut(400); } ); $('#success_contact').animate({opacity: 0}, 200, function(){ $(this).css('display', 'none'); $('#overlay').fadeOut(400); } ); }); }); jQuery(function($){ $('#tab_block .doc_tab').click(function () { $('#tab_block .doc_tab.cur_tab').removeClass('cur_tab'); $(this).addClass('cur_tab'); var div_tab = $(this).attr('data-x'); $('#app-page .doc_tab_div.active').removeClass('active'); $('#'+div_tab).addClass('active'); if (div_tab == 'app-map') { if (typeof initMap == 'function') initMap(); } }); }); ////////////////////////////////////// function sort_ajax_fn(){ var sort_by = jQuery('#sort_by').val(); var page_num = jQuery('#pager .cur_page').attr('data-x'); jQuery.ajax({ url : lst.ajax_url, type : 'POST', data : { action : 'sort_by', sort_by : sort_by, page_num : page_num, // check nonce : lst.nonce }, success : function( msg ) { jQuery('#home_results').html(msg); } }); } jQuery(function($){ $('.search-result #sort_by').on('change' , function () { var sort_by = $('#sort_by').val(); var page_num = $('#pager .cur_page').attr('data-x'); var page_num_add = ''; if (page_num != undefined) page_num_add = '/page_num/'+page_num; var form = $('
'); $('body').append(form); form.submit(); }); }); jQuery(function($){ $('.search-result .pager_num').on('click' , function () { var sort_by = $('#sort_by').val(); var sort_by_add = ''; if (sort_by != undefined) sort_by_add = '/sort_by/'+sort_by; var page_num = $(this).attr('data-x'); var page_num_add = '/page_num/'+page_num; var form = $(''); $('body').append(form); form.submit(); }); }); jQuery(function($){ $('#get_quote_ap').on('click', '#continue', function () { // event.preventDefault(); $('#search-ap-res').css("display", "none"); $('#search-ap-spin').html(''); var date_from = $('#date_from').val(), date_to = $('#date_to').val(), id = $('#get_quote_ap input[name="id"]').val(); if ((date_from != '')&&(date_to != '')){ $.ajax({ url : lst.ajax_url, type : 'POST', data : { action : 'check_ap', date_from : date_from, date_to : date_to, id : id, // check nonce : lst.nonce }, success : function( msg ) { if(msg == 1){ $("#get_quote_ap").submit(); } else{ $('#search-ap-spin').html(''); $('#search-ap-res').css("display", "block"); } } }); } else{ $('#search-ap-spin').html('Please, select dates.'); } }); }); ////////////////////////////////////// jQuery(function($){ $('select#children').on('change', function(){ var children = $(this).val(); var max = parseInt($(this).data('max')); for(var i = 1; i <= max; i++){ var new_style = (children >= i) ? $('.select-child-age[data-i="'+i+'"]').addClass('active') : $('.select-child-age[data-i="'+i+'"]').removeClass('active'); } }); }); } /* FILE ARCHIVED ON 22:23:39 Jan 23, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 20:44:30 Apr 28, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.372 load_resource: 359.157 (2) PetaboxLoader3.resolve: 150.802 (2) PetaboxLoader3.datanode: 164.597 (2) */