//** ANCHORS IN DYNAMIC PAGES ////// /* GoToAnchor all pages */ Mirai.Dom.goToAnchor(); // replacing function function replaceAnchor(buttonLink, link) { Mirai.query(buttonLink).off('click'); Mirai.query(buttonLink).on('click', function(evt) { evt.preventDefault(); var aTag = Mirai.query(link).offset().top - (headerFixed.outerHeight()); Mirai.query('html,body').animate({ scrollTop: aTag }, 1000); }); } // replacing anchors at room and offer DETAILS function anchorsDetailPages() { if (Mirai.query('.cat-room-detail').length) { replaceAnchor('.go-to-offers', '.room-box-offers'); replaceAnchor('.go-to-services', '.room-box-extras'); replaceAnchor('.go-to-calendar', '.room-calendar-wrapper'); } if (Mirai.query('.cat-offer-detail').length) { replaceAnchor('.go-to-calendar', '.offer-calendar-wrapper'); } } //** BODY FIXED ////// // called on modal shows (fix) var scrollPos = 0; function bodyFixed() { if (!Mirai.query('body').hasClass('is-desktop')) { scrollPos = Mirai.query(window).scrollTop(); Mirai.query('body').css({ overflow: 'hidden', '-ms-touch-action': 'none', 'touch-action': 'none', position: 'fixed', top: -scrollPos, width: '100%' }) .data('fixed', true); } else { Mirai.query('body').css({ overflow: 'hidden', '-ms-touch-action': 'none', 'touch-action': 'none' }) .data('fixed', true); } } // called on modal hide (unfix) function bodyFixedReset() { Mirai.query('body').css({ overflow: '', '-ms-touch-action': '', 'touch-action': '', position: '', top: '', width: '' }) .data('fixed', false); if (!Mirai.query('body').hasClass('is-desktop')) { Mirai.query(window).scrollTop(scrollPos); } } //** MODAL ////// // fixed scroll body when modal show function bodyFixedBSModal() { var scrollPos = 0; Mirai.query('.modal') .on('show.bs.modal', function() { bodyFixed(); }) .on('shown.bs.modal', function() {}) .on('hide.bs.modal', function() { // if ( there's no modal active or modal-active don't fix body (desktop or mobile) ) && body is fixed -> unfix body if ((Mirai.query('.mirai-modal.mi-active').data('fixed') == undefined || Mirai.query('.mirai-modal.mi-active').data('fixed') === "mobile" && !Mirai.query('body').hasClass('is-mobile')) && Mirai.query('body').data('fixed') === true) { bodyFixedReset(); } }); } // mirai modal function miraiModal() { function deactivateAllModal() { // deactivate all modal and toggle buttons Mirai.query('.mirai-modal.mi-active').each(function() { if (Mirai.query(this).data('bodymark') !== undefined) { Mirai.query('body').removeClass(Mirai.query(this).attr('id') + '-active'); } }).removeClass('mi-active'); Mirai.query('[data-dismiss="mirai-modal"].toggle-close').removeClass('toggle-close').removeAttr('data-dismiss'); } function activeMiraiModal(miModal) { // active modal miModal.addClass('mi-active'); Mirai.query('body').addClass('mirai-modal-active'); if (miModal.data('bodymark') === true) { Mirai.query('body').addClass(miModal.attr('id') + '-active'); } // fix body if (miModal.data('fixed') == 'desktop' || miModal.data('fixed') == 'mobile' && Mirai.query('body').hasClass('is-mobile')) { bodyFixed(); } } function checkToggleButton(miModalBtn, e) { // if toggle-btn & not active or if not toggle-btn -> modal activate if (miModalBtn.data('toggle') === true && !miModalBtn.hasClass('toggle-close') || miModalBtn.data('toggle') !== true) { // if modal unique deactivate the others if (Mirai.query('#' + miModalBtn.data('open')).data('unique') === true) { deactivateAllModal(); } // if toggle-btn & not active -> activate it (no propagation don't executes the other click event) if (miModalBtn.data('toggle') === true && !miModalBtn.hasClass('toggle-close')) { miModalBtn.addClass('toggle-close').attr('data-dismiss', 'mirai-modal'); if (e !== undefined) { e.stopPropagation(); } } // active modal activeMiraiModal(Mirai.query('#' + miModalBtn.data('open'))); } } // modals opened at begining if (Mirai.query('.mirai-modal.mi-active').length) { Mirai.query('.mirai-modal.mi-active').each(function() { var activationButton = Mirai.query('[data-key="mirai-modal"][data-open="' + Mirai.query(this).attr('id') + '"]'); // if modal has activation button -> check toggle and active modal, else active modal if (activationButton.length) { checkToggleButton(activationButton); } else { activeMiraiModal(Mirai.query(this)); } if (Mirai.query(this).data('unique') === true) { return false; } }); } // modal button (open or toggle) Mirai.query('[data-key="mirai-modal"]').on('click', function(e) { e.preventDefault(); checkToggleButton(Mirai.query(this), e); }); // close modal function closeMiraiModal(miModal) { // deactivate modal miModal.removeClass('mi-active'); if (miModal.data('bodymark') === true) { Mirai.query('body').removeClass(miModal.attr('id') + '-active'); } // set modals into modal to close and deactivate them var miModalInt = Mirai.query('.mirai-modal.mi-active', miModal); if (miModalInt.length) { miModalInt.removeClass('mi-active'); if (miModalInt.data('bodymark') === true) { Mirai.query('body').removeClass(miModalInt.attr('id') + '-active'); } } // if there is no more active modals if (Mirai.query('.mirai-modal.mi-active').length === 0) { Mirai.query('body').removeClass('mirai-modal-active'); } // if ( there's no modal active or modal-active don't fix body (desktop or mobile) ) && body is fixed -> unfix body if ((Mirai.query('.mirai-modal.mi-active').data('fixed') == undefined || Mirai.query('.mirai-modal.mi-active').data('fixed') === "mobile" && !Mirai.query('body').hasClass('is-mobile')) && Mirai.query('body').data('fixed') === true) { bodyFixedReset(); } } // close modal button Mirai.query('body').on('click', '[data-dismiss="mirai-modal"]', function(e) { e.preventDefault(); var miModalCloseBtn = Mirai.query(this); // if toggle-btn -> deactivate btn & set Modal to Close width data-open. else set Modal to Close width closest modal parent if (miModalCloseBtn.data('toggle') === true) { miModalCloseBtn.removeClass('toggle-close').removeAttr('data-dismiss'); closeMiraiModal(Mirai.query('#' + miModalCloseBtn.data('open'))); } else { closeMiraiModal(miModalCloseBtn.closest('.mirai-modal')); } }); // close pressing Esc key Mirai.query(document).on('keyup', function(e) { if (e.which == 27 && !Mirai.query('body').hasClass('modal-open') && Mirai.query('.mirai-modal.mi-active').length) { e.preventDefault(); var miModalToClose = Mirai.query('.mirai-modal.mi-active').eq(Mirai.query('.mirai-modal.mi-active').length - 1); var miModalCloseBtn = Mirai.query('[data-dismiss="mirai-modal"][data-toggle="true"][data-open="' + miModalToClose.attr('id') + '"]'); if (miModalCloseBtn.length) { miModalCloseBtn.removeClass('toggle-close').removeAttr('data-dismiss'); } closeMiraiModal(miModalToClose); } }); // Unify modal´s "X": if modalengine exist close modals in modalengine´s X Mirai.query('[data-key="mirai-modal"]').click(function() { // reset classes Mirai.query('body').removeClass('close-modalengine-active'); Mirai.query( '.mirai-modal' ).removeClass('close-modalengine-active'); if ( Mirai.query('#header .modal-engine-wrapper').css('opacity') != 0 && !Mirai.query(this).hasClass('menu-modal-btn') && Mirai.query( '#' + Mirai.query(this).data('open') ).data('close-modalengine') == true ) { Mirai.query( '#' + Mirai.query(this).data('open') ).addClass('close-modalengine-active'); Mirai.query('body').addClass('close-modalengine-active'); Mirai.query('.booking-modal-btn').addClass('toggle-close'); Mirai.query('.booking-modal-btn').attr('data-dismiss', 'mirai-modal'); } }); Mirai.query('.booking-modal-btn').click(function() { if (Mirai.query('#fixed-header .booking-modal-btn').length && !Mirai.query(this).hasClass('menu-modal-btn')) { if (Mirai.query(this).hasClass('toggle-close') && !Mirai.query('#engine-modal').hasClass('mi-active')) { Mirai.query(this).removeClass('toggle-close'); Mirai.query('.mirai-modal').removeClass('mi-active'); Mirai.query('[data-dismiss="mirai-modal"]:not([data-open="engine-modal"])').removeClass('toggle-close'); bodyFixedReset(); } } }); } //** OFFSET ////// function miraiOffsetTop() { // Select element var miraiOffset = Mirai.query('[data-offset]'); // Add offset number miraiOffset.each(function() { var miraiOffsetData = Mirai.query(this).data('offset'); // Si tiene delegate if (Mirai.query(this).data('offsetdelegate')) { var miraiOffsetDataDelegate = Mirai.query(this).data('offsetdelegate'); if (Mirai.query(miraiOffsetDataDelegate).length) { Mirai.query(this).attr('data-offsetnum', Mirai.query(miraiOffsetDataDelegate).offset().top + Mirai.query(miraiOffsetDataDelegate).outerHeight() - Mirai.query(miraiOffsetData).outerHeight()); } else { Mirai.query(this).attr('data-offsetnum', 0); } // Si es sticky } else if (miraiOffsetData == 'sticky') { Mirai.query(this).attr('data-offsetnum', Mirai.query(this).offset().top); // Si es número } else if (Mirai.query.isNumeric(miraiOffsetData)) { Mirai.query(this).attr('data-offsetnum', miraiOffsetData); // Si solo tiene data offset } else { Mirai.query(this).attr('data-offsetnum', Mirai.query(this).offset().top - Mirai.query(miraiOffsetData).outerHeight()); } // SCROLL FUNCTION if (Mirai.query(window).scrollTop() > Mirai.query(this).data('offsetnum')) { Mirai.query(this).addClass('offset-active'); } else { Mirai.query(this).removeClass('offset-active'); } }); // Scroll function Mirai.query(window).on('scroll', function() { if (!Mirai.query('body').is('.mirai-modal-active, .modal-open')) { // Bucle with scroll miraiOffset.each(function() { if (Mirai.query(window).scrollTop() > Mirai.query(this).data('offsetnum')) { Mirai.query(this).addClass('offset-active'); } else { Mirai.query(this).removeClass('offset-active'); } }); } }); } //** HEADER ////// // selected elements var headerFixed = Mirai.query('#fixed-header'); var headerWeb = Mirai.query('#header'); // header height setting -> || Mirai.query('body').hasClass('is-mobile') function miraiHeaderHeight() { if (!Mirai.query('body').hasClass('bookingstep1')) { if (headerFixed.data('transparent') === false) { // preheader height + header height var initial = 0, preHeader = Mirai.query('#pre-header', headerWeb); if (preHeader.length && preHeader.css('display') !== 'none') { initial = preHeader.outerHeight() } headerWeb.css('height', initial + headerFixed.outerHeight()); } } } // header fullscreen function miraiHeaderFullScreen() { if (Mirai.query('.full-screen-container').length) { Mirai.query('.full-screen-container').css({ 'min-height': '-webkit-calc(100vh - ' + headerWeb.outerHeight() + 'px)', 'min-height': 'calc(100vh - ' + headerWeb.outerHeight() + 'px)' }); } } //** MENU ////// //** CLICK INSTEAD OF HOVER AT MENU ////// function miraiNotHoverMenu() { Mirai.query('.menu-item-has-children').click(function(e) { e.preventDefault(); e.stopPropagation(); if ( Mirai.query(this).hasClass('active-item') ) { Mirai.query(this).removeClass('active-item'); } else { Mirai.query(this).addClass('active-item'); } Mirai.query('.menu-item-has-children').not( Mirai.query(this) ).removeClass('active-item'); }); Mirai.query('body').click(function() { Mirai.query('.menu-item-has-children').removeClass('active-item'); }); } //** HAMBURGER MENU ////// function miraiHamburguerMenuResize() { // Force hamburguer - tablet and mobile if (Mirai.query(window).innerWidth() <= 1025) { Mirai.query('#fixed-header').attr('data-hamburguer-desktop', 'true'); } else { Mirai.query('#fixed-header').attr('data-hamburguer-desktop', Mirai.query('#fixed-header').attr('data-hamburguer-inicial')); } // Detect if is hamburguer if (Mirai.query('#fixed-header').attr('data-hamburguer-desktop') == ('true')) { Mirai.query('body').addClass('hamburguer-active'); } else { Mirai.query('body').removeClass('hamburguer-active'); } } function miraiHamburguerMenu() { // Capture incial data Mirai.query('#fixed-header').attr('data-hamburguer-inicial', Mirai.query('#fixed-header').attr('data-hamburguer-desktop')); Mirai.query(' #fixed-header .modal-engine-wrapper > .booking-modal-btn ').click(function() { if (!Mirai.query(this).hasClass('autowidth') && !Mirai.query(this).hasClass('toggle-close') && !Mirai.query('body').hasClass('hamburguer-active')) { //Mirai.query(this).css('width', Mirai.query(this).outerWidth() ).addClass('autowidth'); Mirai.query(' #fixed-header .modal-engine-wrapper > .booking-modal-btn ').css('width', Mirai.query(this).innerWidth()).addClass('autowidth'); } }); miraiHamburguerMenuResize(); } //** TYPES MENU //////} //** GO TO ANCHOR ////// function miraiGoToAnchor() { if (Mirai.query('.go-to-anchor').length) { Mirai.Dom.goToAnchor(headerFixed.outerHeight()); } } // Circular Text function circularText() { var txt = Mirai.query('.circular-text'); if ( txt.length ) { txt.each(function(){ var t = Mirai.query(this); var a = t.text(); t.text(''); var w = t.outerHeight(); var deg, degN = 10; if ( Mirai.query('html').attr('lang') === "ja" ) { degN = 15 } a = a.split('') if ( t.attr('data-circular-pos') === 'down' ) { a.reverse(); } Mirai.query(a).each(function(n){ t.append(''+this+''); deg = degN * n; Mirai.query('span',t).eq(n).css('transform','rotate('+deg+'deg)'); }); var txtDeg = - degN * ( (a.length - 1) / 2); t.css('transform','rotate('+ txtDeg +'deg)'); }); } } // Flickity mashup offers function flickityOffers() { if (Mirai.query('.offers-mashup-wrapper').length) { Mirai.query('.offers-mashup-wrapper .offers-mashup-slide').attr('data-flickity', '{ "contain": true, "groupCells": true, "cellAlign": "left" }'); } } //** ////// var hash; //** LOAD EFFECTS ////// function loadingEffect() { if (Mirai.query('.preloader').length) { Mirai.query('body').addClass('loading'); if ( Mirai.query(window).innerWidth() < 1025 ) { setTimeout(function() { Mirai.query('.preloader').css('display', 'none'); Mirai.query('body').removeClass('loading'); Mirai.query('body').addClass('load'); }, 0); } else { setTimeout(function() { Mirai.query('.preloader').fadeOut(1500); Mirai.query('body').removeClass('loading'); Mirai.query('body').addClass('load'); Mirai.query('#modal-popup').addClass('mi-active'); }, 2000); } } } // function historyBtnAddClass() { if( Mirai.query('body').hasClass('history-modal-active') ){ Mirai.query(this).removeClass('history-modal-active'); } else { Mirai.query('.history-btn').click(function(){ Mirai.query('body').addClass('history-modal-active'); }) Mirai.query('.history-modal .mi-modal-close').click(function(){ Mirai.query('body').removeClass('history-modal-active'); }) } } function quickChat() { if ( !Mirai.query('body').hasClass('bookingstep1') ) { var id = "8DZoZ-S5YB"; !function(a,b,c,d,e,f,o) { a._qt=a._qt||{},a._qt.options=o||{},a._qt.license=e,a._qt.lang=f, g=b.createElement(c),g.type="text/javascript",g.async=!0, g.src=("https:"==b.location.protocol?"https://":"http://")+d, h=b.getElementsByTagName(c)[0],h.parentNode.insertBefore(g,h); } (window,document,"script","cdn.quicktext.im/qt.min.js",id,null,{tags: []}); Mirai.query(window).on('load', function() { Mirai.query("#qt-button-frame").attr("style",""); Mirai.query("#qt-app-container").css("z-index",""); }); } } Mirai.query(document).ready(function() { // Header miraiHeaderHeight(); miraiHeaderFullScreen(); miraiHamburguerMenu(); circularText(); loadingEffect(); historyBtnAddClass(); // Types menus // Modals miraiModal(); bodyFixedBSModal(); // Offset miraiOffsetTop(); // Go to anchor miraiGoToAnchor(); // Flickity mashup offers flickityOffers(); // QuickText quickChat(); //get page + go to anchor hash = window.location.hash; if ( Mirai.query(hash).length ) { window.location.hash = ""; } else { hash = ""; } }); Mirai.query(window).on('load', function() { // FIXED SCROLLTOP in ROOM and OFFER DETAILS anchorsDetailPages(); //get page + go to anchor if ( hash !== "" && hash !== undefined ) { var pos = Mirai.query(hash).offset().top; Mirai.query("html, body").animate({scrollTop:pos-135}, 800, "swing"); window.location.hash = hash; } // SCROLL EFFECTS var mAnimate, startAnimation, dataTo; mAnimate = Mirai.query('.m-animate'); if (mAnimate.length) { mAnimate.each(function () { if ( !Mirai.query(this).data('to') ) { Mirai.query(this).data('to', 90); } if ( Mirai.query(this).offset().top > Mirai.query(window).scrollTop() + Mirai.query(window).innerHeight() ) { Mirai.query(this).addClass('m-stop'); } if ( Mirai.query(this).data('time') ) { Mirai.query(this).css('transition', Mirai.query(this).data('time')); } }); Mirai.query(window).on('scroll', function () { mAnimate.each(function () { if ( Mirai.query(this).offset().top < Mirai.query(window).scrollTop() + Mirai.query(window).innerHeight() * Mirai.query(this).data('to') / 100 ) { Mirai.query(this).removeClass('m-stop'); } }); }); } //////////////////////////////////// }); Mirai.query(window).resize(function() { // UPDATING miraiHeaderHeight(); miraiHeaderFullScreen(); miraiHamburguerMenuResize(); });
Hotel Bécquer

Prenotate sul sito web ufficiale e approfittate dei vantaggi esclusivi

Parcheggio gratis

Quest’estate visitate Siviglia e parcheggiate gratis alloggiandovi nel nostro albergo. Posti limitati previa prenotazione e in base alla disponibilità. Vi preghiamo di contattarci prima del vostro arrivo.

Servizi Aggiuntivi

Se prenoti il tuo soggiorno presso l’Hotel Bécquer attraverso il nostro sito web, avrai accesso a dei fantastici servizi extra, disponibili solo attraverso questo canale. Seleziona i tuoi extra durante il processo di prenotazione e preparati a sfruttare al massimo il tuo soggiorno in città.

E molto altro…

  • Passeggiate in bicicletta

  • Pacchetto romantico

  • Crociera sul Guadalquivir

  • Ingresso all’Isola Magica

  • Bike tours

  • Spettacolo Flamenco

  • Percorso turistico in autobus

  • Parcheggio privato

  • Scelta di cuscini