$(function() { var searchTrigger; eviivo.availabilitySearch.init({ isDefaultReferrer: true, defaultNightsServiced: 0, roomsLimit: 8, cultureLanguageCode: "", baseSearchUrl: "/rooms", resources: { adults: "Adulti", children: "Bambini", rooms: "Camere", room: "Camera", roomAdded: "{0} Camera aggiunto", roomsAdded: "{0} Camere aggiunti" } }); searchTrigger = eviivo.availabilitySearch.triggerSearch; eviivo.smoothScrolling.init(); eviivo.popup.init(); eviivo.imageMainGallery.init({ initializeGalleryByDefault: true, initializeGalleryOnClick: false, initializeGalleryForRooms: true, }); var showMapByDefault = false; //enable jquery UI tooltip (only for specific targeted cp-tip items) $(".cp-tip").tooltip({ position: { my: "center bottom-15", at: "center top", using: function (position, feedback) { $(this).css(position); $("
") .addClass("arrow") .addClass(feedback.vertical) .addClass(feedback.horizontal) .appendTo(this); } }, content: function (){ return $(this).prop('title'); } }); //Accordion $(".accordion a.accordion-toggle").on("click", function () { $(this).siblings(".accordion-content").slideToggle("slow"); $(this).parent().toggleClass("active"); }); //Accordion rooms needs to be moved to separate js file $(".accordion-rooms a.accordion-rooms-toggle").on("click", function () { if ($(".main").hasClass("instantweb")) { $(this).parent().siblings(".intro-description").slideToggle("slow"); } $(this).siblings(".accordion").slideToggle("slow"); $(this).parent().toggleClass("expanded"); var textDefault = "Per saperne di più"; var textExpanded = "Meno informazioni"; $(this).text(function (i, text) { return text === textExpanded ? textDefault : textExpanded; }); }); // Close error/notice box var $closeControl = $(".cp-close"); $closeControl.on("click", function () { $(this).parent().parent().hide(); }); eviivo.stickyContainer.init({ resources: { room: "Camera", found: "Trovato" } }); $('#accept-cookies').on("click", function () { var currentCookieSession = Cookies.get('userSettings'); Cookies.set('userSettings', currentCookieSession.concat('&' + 'cookienotification' + '=accepted'), { expires: 3650 }); $('.cookiebar').remove(); }); $.widget("custom.iconselectmenu", $.ui.selectmenu, { _renderItem: function (ul, item) { var li = $("
  • ", { text: item.label }); if (item.disabled) { li.addClass("ui-state-disabled"); } $("", { style: item.element.attr("data-style"), "class": "ui-icon " + item.element.attr("data-class") }) .appendTo(li); return li.appendTo(ul); } }); //Let stry to disabled zooming for mobile screens if (/iphone|ipod|android|blackberry|opera mini|opera mobi|skyfire|maemo|windows phone|palm|iemobile|symbian|symbianos|fennec/i.test(navigator.userAgent.toLowerCase())) { $("meta[name='viewport']").attr("content", "width=device-width, initial-scale=1.0, maximum-scale=1.0"); } eviivo.bookingSystem.managePageLogin.init({ popupHeaderTitle: "Gestisci una prenotazione", ajaxUrl: "/instantweb/manage/RetrieveOrderCancellationPermissions", referrerShortName: "MyWeb", propertyShortName: "theoak_cv83au", requestVerificationToken: "xvLBynwkvCRxIpNpozuWteTbG3p1emjrKXxe_fHaAfLYzpI3oerC8fm5i78qHMtGAioJGnoVKPYIG0VXkoBI6PtJjN81:qXqua7SrsYnQ8meazthXXD_h9sVe4n8hLwr3mglIl8Wa-gDuKEapV3mz1d_AEZd1I7rsTP6Y3SIrBrx-_MasKFdIjXw1", ajaxLoaderResources: { loadingUpdateResults: "Stiamo convalidando il codice di prenotazione e l'indirizzo e-mail...", loadingSlowSystemWarning: "Stiamo ancora cercando di cancellare la tua prenotazione...grazie per la tua pazienza", loadingRefreshingIssueWarning: "C'è un errore. Prova a", ajaxFailText: "C'è un errore, prova a", refreshPageText: "aggiornare la pagina" } }); eviivo.bookingFlow.init(); eviivo.mapView.init({ googleMapsApiUrl: "//maps.googleapis.com/maps/api/js?key=AIzaSyCtPYb_pV8h_-HxZJIEJ_pJBuPel7LUz5s&v=3&callback=", lat: "52.366810", lng: "-1.491750", resources: { switchToMap: "Vedi mappa", switchToImage: "Vedi immagini" }, showMapByDefault: showMapByDefault }); window.eviivo.instantWebMenu.init(); });
  •