Hotel Best Roquetas, Roquetas de Mar | Best Hotels (2024)

'; var fancybox_params = { width: 'auto', maxWidth: 800, height: 'auto', fitToView: false, autoSize: false, padding: 0, closeClick: false, closeBtn: false, helpers: { overlay: {closeClick: false} // prevents closing when clicking OUTSIDE fancybox }, wrapCSS: 'fancy-booking-search', beforeShow: function () { if(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || (navigator.userAgent.match(/AppleWebKit/i) && !navigator.userAgent.match(/Chrome/i))){ setTimeout(function () { $.fancybox.close( true ); $("#full_wrapper_booking .wrapper_booking_button .submit_button").show(); sending_form_custom_from_paraty = undefined; }, 5000); } } }; if ($.fancybox.version.slice(0,2) === '3.') { fancybox_params['baseClass'] = 'fancy-booking-search'; fancybox_params['modal'] = true; $.fancybox.open(text_popup, fancybox_params); } else { $.fancybox(text_popup, fancybox_params); } myForm.submit(); } window.openBookingSearchPopup_v2 = function (myForm, show_popup=true) { var container_booking_popup = $('

').addClass('container_popup_booking').css('text-align', 'center'), loading_popup_top_text = `Updating to continue with your reservation`; try { var loading_popup_top_text = $(".site-header__logo img")[0].outerHTML; }catch(e){ console.log("Error trying to retreive logo") } var loading_popup_top_text = $("Hotel Best Roquetas, Roquetas de Mar | Best Hotels (1)"); var loading_popup_bottom_text = `

Checking the availability of your search:

From @@start_date@@ to @@end_date@@

`; var descipription_top_booking_popup = $("

").addClass('description_top_popup_booking').html(loading_popup_top_text), descipription_bottom_booking_popup = $("

").addClass('description_bottom_popup_booking').html(loading_popup_bottom_text), gif_wrapper = $("

").addClass('gif_wrapper'), number_of_lines = 20; for (var x = 0; x < number_of_lines; x++) { var target_delay_css = { '-webkit-animation-delay': -(1.5 - (0.1 * x)) + 's', '-moz-animation-delay': -(1.5 - (0.1 * x)) + 's', '-o-animation-delay': -(1.5 - (0.1 * x)) + 's', 'animation-delay': -(1.5 - (0.1 * x)) + 's' }; var element_line_to_append = $("

").addClass("default_line_loading").css(target_delay_css); element_line_to_append.css('background', '#06233b'); element_line_to_append.appendTo(gif_wrapper); } container_booking_popup.css('border', '1px solid #06233b'); container_booking_popup.append(descipription_top_booking_popup).append(gif_wrapper).append(descipription_bottom_booking_popup); var selected_start_date = $("input[name='startDate']").val(), selected_end_date = $("input[name='endDate']").val(); var custom_format_date = ""; if (custom_format_date) { var splitted_start_date = selected_start_date.split("/"), start_day = splitted_start_date[0], start_month = splitted_start_date[1], start_year = splitted_start_date[2], start_datetime = new Date(start_year, start_month - 1, start_day), week_start_day = start_datetime.getDay(); var splitted_end_date = selected_end_date.split("/"), end_day = splitted_end_date[0], end_month = splitted_end_date[1], end_year = splitted_end_date[2], end_datetime = new Date(end_year, end_month - 1, end_day), week_end_day = end_datetime.getDay(); var days_list = $.datepicker._defaults.dayNames; //Start date selected_start_date = custom_format_date.replace("%m", start_month).replace("%d", start_day).replace("%Y", start_year); selected_start_date = selected_start_date.replace("%a", days_list[week_start_day]).replace("%bb", _monthNames[start_month - 1]).replace("%b", _monthNames[start_month - 1]); //End date selected_end_date = custom_format_date.replace("%m", end_month).replace("%d", end_day).replace("%Y", end_year); selected_end_date = selected_end_date.replace("%a", days_list[week_end_day]).replace("%bb", _monthNames[end_month - 1]).replace("%b", _monthNames[end_month - 1]); } //Protection for failures if(selected_start_date.indexOf('NaN') > -1 || selected_end_date.indexOf('NaN')){ container_booking_popup.html(container_booking_popup.html().replace("@@start_date@@", selected_start_date).replace("@@end_date@@", selected_end_date)); } else { container_booking_popup.find(".description_bottom_popup_booking").remove(); } if (show_popup) { var booking_loading_popup_params = { width: 'auto', height: 'auto', fitToView: false, autoSize: false, padding: 0, closeClick: false, closeBtn: false, helpers: { overlay: { css: {'background': 'rgba(255,255,255,0.9)'}, closeClick: false }, // prevents closing when clicking OUTSIDE fancybox }, wrapCSS: 'fancy-booking-search_v2 full_screen_engine custom_color_overlay', beforeShow: function () { if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || (navigator.userAgent.match(/AppleWebKit/i) && !navigator.userAgent.match(/Chrome/i))) { setTimeout(function () { $.fancybox.close(true); $("#full_wrapper_booking .wrapper_booking_button .submit_button").show(); sending_form_custom_from_paraty = undefined; }, 8000); } $('.fancybox-bg').css('background', 'rgba(255,255,255,0.9)'); } }; if ($.fancybox.version.slice(0, 2) === '3.') { //debugger; booking_loading_popup_params['baseClass'] = 'fancybox-wrap fancy-booking-search_v2 full_screen_engine custom_color_overlay'; booking_loading_popup_params['modal'] = true; $.fancybox.open(container_booking_popup, booking_loading_popup_params); } else { //debugger; $.fancybox(container_booking_popup, booking_loading_popup_params); } if (myForm) { if (!navigator.userAgent.match(/chrome/i) && (navigator.userAgent.match(/safari/i) || navigator.userAgent.match(/firefox/i))) { setTimeout(function () { myForm.submit(); }, 700); } else { myForm.submit(); } } } } window.openCalendarPriceLoaderPopup = function () { if (window.location.href.includes('localhost')) { return; } const container_booking_popup = $('

'); const description_top_booking_popup = $('

').html(`The search you are performing applies restrictions
We are redirecting you to the price calendar`); const description_bottom_booking_popup = $('

').html(`In order to continue with your booking, we have redirected you to our availability calendar so that you can book your next holiday with us at the best available price.`); const animation_container = $("

"); const center_container = $("

").append(description_top_booking_popup).append(animation_container); container_booking_popup.append(center_container).append(description_bottom_booking_popup); var booking_loading_popup_params = { width: 'auto', height: 'auto', fitToView: false, autoSize: false, padding: 0, closeClick: false, closeBtn: false, helpers: { overlay: { css: {'background': 'transparent', 'backdrop-filter': 'blur(50px)'}, closeClick: false}, // prevents closing when clicking OUTSIDE fancybox }, wrapCSS: 'fancy-booking-search_v2 full_screen_engine', beforeShow: function () { if(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || (navigator.userAgent.match(/AppleWebKit/i) && !navigator.userAgent.match(/Chrome/i))){ setTimeout(function () { if ($.fancybox.current?.wrapCSS.includes('fancy-booking-search_v2')) { $.fancybox.close(); } }, 5000); } $('.fancybox-bg').css('background','transparent').css('backdrop-filter','blur(50px)'); $('.fancybox-margin').css('margin', '0'); }, afterShow: function () { if (typeof loader_animation !== 'undefined') { let params = { container: $('#lottie_animation')[0], renderer: 'svg', loop: true, autoplay: true, animationData: loader_animation }; let anim = lottie.loadAnimation(params); setTimeout(function () { params['container'] = $('#lottie_animation_calendar')[0]; params['loop'] = false; let anim_calendar = lottie.loadAnimation(params); anim_calendar.addEventListener('complete', function() { anim_calendar.stop(); setTimeout(() => { anim_calendar.play(); }, 5000); }); }, 5000); } } }; $.fancybox(container_booking_popup, booking_loading_popup_params); setTimeout(function () { if ($.fancybox.current?.wrapCSS.includes('fancy-booking-search_v2')) { $.fancybox.close(); } setTimeout(function() { typeof resizeCallCenter !== 'undefined' && resizeCallCenter(); }, 5500); }, 5000); } window.showGallery = function (elements) { var fancybox_params = { 'modal': true, 'closeBtn': false, 'autoPlay': true, 'playSpeed': 3000, 'prevEffect': 'none', 'nextEffect': 'none', 'type': 'image', 'arrows': false, 'nextClick': false, 'mouseWheel': false, 'helpers': { title: { type: 'outside' }, overlay: { opacity: 0.8, css: { 'background-color': '#000' } } }, 'padding': 0 }; if ($.fancybox.version.slice(0,2) === '3.') { $.fancybox.open(elements, fancybox_params); } else { $.fancybox(elements, fancybox_params); } } //Preloading video is required to load correctly in some browsers $(function() { }); $("Hotel Best Roquetas, Roquetas de Mar | Best Hotels (2)").attr('src', ''); })(jQuery);

Hotel Best Roquetas, Roquetas de Mar | Best Hotels (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Edwin Metz

Last Updated:

Views: 5914

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.