Hotel Milo | Santa Barbara Hotels on the Beach


Hotel Milo | Santa Barbara Hotels on the Beach ${location.address} ${location.desc}
${location.distance} ${location.cater} ${location.desc}
${location.distance} ${location.address} `; $(‘.leaflet-map__locations’).append(locationHtml); }); }); }); } }); window.addEventListener(‘load’, (event) => { var checkLocations = setInterval(function() { if ($(‘.leaflet-map__locations .location’).length > 4) { let leaflet = new LeafletMap(document.querySelectorAll(‘.leaflet-map’)[0]); leaflet.show(); clearInterval(checkLocations); } }, 100); }); ]]>

  Hotel Milo Santa Barbara Rightnav Logo ‘ + ” + val[“user”] + ‘

‘ + val[“content”] + ‘‘, latLng: latlon, offset:{ y: -40, x:-30 } } ); }); } ); return; } $(“.info”).click(function() { $(“#infoBox”).toggle(); }); $(“.twitterl a”).click(function() { clearMap(); $(“.placeData”).hide(); getLocations(); }); $(“#maparea”).mouseover(function(e) { $(“#infoBox .closeData”).click(function() { $(“#infoBox”).hide(); }); $(“#warning .closeData”).click(function() { $(“#warning”).hide(); }); $(“.location”).bind(“click”, function() { $(“:contains(” + $(this).children(“span”).html() + “)”).show(); return; }); $(“.placeMark a”).mouseover(“click”, function() { $(“.placeData”).hide(); $(“#placeData” + $(this).attr(“rel”)).show(); e.preventDefault(); }); $(“a.retweet”).bind(“click”, function(e) { if ($(“.signin”).length > 0){ $(“#warning”).show(); } else { $(“#tweet”).html(“”); $(“#ref”).val(“”); name = $(this).parent().children(“span”).html(); tweet = $(this).parent().children(“p”).html(); status = “RT @” + name + ” ” + tweet; $(“#tweet”).html(status); } e.preventDefault(); }); $(“a.mention”).bind(“click”, function(e) { if ($(“.signin”).length > 0){ $(“#warning”).show(); } else { $(“#tweet”).html(“”); $(“#ref”).val(“”); name = $(this).parent().children(“span”).html(); tweet = $(this).parent().children(“p”).html(); $(“#tweet”).html(“@” + name); } e.preventDefault(); }); }); function buildPlaceCarousel(obImages){ var imageCarousel = ”; $.each(obImages, function(key, img) { imageCarousel += ‘‘; }); imageCarousel += ”; return imageCarousel; } function getPlaces() { $(“#toggles li a.active”).each(function() { var jsonMap = $(this).data(‘pins’); getPlaceData(jsonMap, $(this).parent().attr(“class”)); }); } function getPlaceData(url, type) { $.getJSON( url, function(data) { $.each(data[“places”], function(key, val){ var docRoot = ‘https://www.hotelmilosantabarbara.com/wp-content/themes/ic’; var coords = val[“coords”].split(“,”, 2); var latlon = [coords[0], coords[1]]; var goid = val[“cater”]; var imgs = (val[“images”] !== undefined) ? buildPlaceCarousel(val[“images”]) : ”; placeContainer = ‘

See it up close. Drag your streeview!X

‘ + val[“name”] + ‘

‘ + val[“cater”] + ‘

‘ + val[“desc”] + ‘More InfoShare ItTweet ItPin It’; $(“#maparea”).gmap3({ marker:{ latLng: latlon, id: goid, options:{ draggable: false, icon : new google.maps.MarkerImage(‘https://www.hotelmilosantabarbara.com/wp-content/themes/ic/images/gray.gif’) } }, overlay:{ latLng: latlon, options:{ content: ‘

‘+ val[“name”] +”+ val[“address”] +’
‘+ val[“phone”] +’
‘+ val[“distance”] +’‘ + val[“cater”] + ”, offset:{ y: -12, x: -15 } } } } ); $(“body”).append(placeContainer); i++; }); } ); } function getLocations(args) { $(“.sidenav li a”).each(function(e) { var latlon = $(this).attr(“rel”); var latlonsplit = latlon.split(“,”); getTweets(latlonsplit[0], latlonsplit[1]); }); } function clearMap() { $(“#maparea”).gmap3(‘clear’, ‘markers’); $(“.placeData”).hide(); $(“#maparea”).gmap3({ marker:{ address:”202 W. Cabrillo Boulevard Santa Barbara, CA 93101″, data:”Hotel Milo Santa Barbara”, options:{icon:”/wp-content/uploads/2015/04/milo_pin.jpg”} }, map: { action: ‘init’, options: { center:[34.409937,-119.692079], scrollwheel: false, zoom: 15, mapTypeId: “style2”, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, “style1”, “style2”] } } }, styledmaptype:{ id: “style1”, options:{ name: “Style 1” }, styles: [ { featureType: “road.highway”, elementType: “geometry”, stylers: [ { hue: “#ff0022” }, { saturation: 60 }, { lightness: -20 } ] } ] } }, { styledmaptype:{ id: “style2”, options:{ name: “Style 2” }, styles: [ { featureType: “all”, stylers: [ { saturation: -80 } ] },{ featureType: “road.arterial”, elementType: “geometry”, stylers: [ { hue: “#00ffee” }, { saturation: 50 } ] },{ featureType: “poi.business”, elementType: “labels”, stylers: [ { visibility: “off” } ] } ] } } ); } function wait() { // Just wait, buddy… } $(function() { $(‘.panelMenu li#linkerson’).toggle(function(){ $(this).addClass(“active”); $(this).next(‘.largebox’).addClass(“widest”).animate({ right:’215px’, opacity: 1 },{queue:false,duration:500}); }, function(){ $(this).removeClass(“active”); $(this).next(‘.largebox’).removeClass(“widest”, 500).animate({ right:’0px’, opacity: 0 },{queue:false,duration:500}); }); }); $(function() { $(‘.linkersonclose’).click(function(){ $(‘.panelMenu li#linkerson’).removeClass(“active”); $(‘.largebox’).removeClass(“widest”, 500).animate({ right:’0px’, opacity: 0 },{queue:false,duration:500}); }); }); // TOGGLE FUNCTION // $(‘#toggle-view li’).click(function () { var text = $(this).children(‘div.panel’); if (text.is(‘:hidden’)) { text.slideDown(‘200’); $(this).children(‘span’).addClass(‘toggle-minus’); $(this).addClass(‘activated’); } else { text.slideUp(‘200’); $(this).children(‘span’).removeClass(‘toggle-minus’); $(this).children(‘span’).addClass(‘toggle-plus’); $(this).removeClass(‘activated’); } }); function scrollToAnchor(aid){ var aTag = $(“a[name='”+ aid +”‘]”); $(‘html,body’).animate({scrollTop: aTag.offset().top},’slow’); } $(“#link”).click(function() { scrollToAnchor(‘id3’); }); }); ]]>

1024) { $(‘.read-more’).attr(‘style’, ”); $(‘.read-more-button’).get(0).firstChild.nodeValue = “Read More”; $(‘.read-more-button’).parent().addClass(‘relative’); $(‘.read-more-button i’).removeClass(‘fa-angle-up’); $(‘.read-more-button i’).addClass(‘fa-angle-down’); } } if ($(window).width() > 1024 ) { $(‘#home-slider.home-video’).css(‘height’, ‘calc(‘ + $(window).height() + ‘px – ‘ + ($(‘.section-header’).height() + $(‘#primary-nav .reserve’).outerHeight() + $(‘#property-nav’).height() + 30) + ‘px)’); } else { $(‘#home-slider.home-video’).css(‘height’, ”); } }); if ($(window).width() < 1024) { $('.menu-list.left-menu').removeClass('two-col'); } $(".eat-tab-button").click(function() { var id = "#"+$(this).data('class'); $('.eat-menu-container').removeClass('showMenu'); $('.eat-menu-container').addClass('hideMenu'); $(id).removeClass('hideMenu'); $(id).addClass('showMenu'); }); $(".drink-tab-button").click(function() { var id = "#"+$(this).data('class'); $('.drink-menu-container').removeClass('showMenu'); $('.drink-menu-container').addClass('hideMenu'); $(id).removeClass('hideMenu'); $(id).addClass('showMenu'); }); $('.white-shadow').parent().addClass('relative'); $('.read-more-button').click(function() { if ($(window).width() <= 1024) { if($(this).parent().hasClass('relative')) { $(this).parent().removeClass('relative'); $('.read-more-button i').removeClass('fa-angle-down'); $('.read-more').slideDown(1000); $(this).get(0).firstChild.nodeValue = "Read Less"; $('.read-more-button i').addClass('fa-angle-up'); } else { $(this).parent().addClass('relative'); $('.read-more').slideUp(1000); $(this).get(0).firstChild.nodeValue = "Read More"; $('.read-more-button i').removeClass('fa-angle-up'); $('.read-more-button i').addClass('fa-angle-down'); } } }); // ACCORDION BOX $('.accbox-btn').click(function() { var accBoxItem = $(this).parent().parent(); if ( accBoxItem.hasClass('active') ) { accBoxItem.removeClass('active'); accBoxItem.find('.accbox-hidden').slideUp(); } else { accBoxItem.addClass('active'); accBoxItem.find('.accbox-hidden').slideDown(); } }); // iosslider $(".hamburgermenu a").click(function(e){ e.preventDefault(); $(".mm-page").addClass("opened"); $(".rightnav").addClass("rightready"); $("section.stophovering").css("display","block"); }); $('.royale,.stophovering').click(function(e){ e.preventDefault(); $(".mm-page").removeClass("opened"); $(".rightnav").removeClass("rightready"); $("section.stophovering").css("display","none"); $(".closer").removeClass("open-left"); }); $('#navmenumob li').each(function() { if ($(this).hasClass('menu-item-has-children')) { $(this).find('.tnbox').append('‘); } }); $(‘.topnavigationmob li i.fa-plus’).click(function() { if ($(this).hasClass(‘fa-plus’)) { $(this).removeClass(‘fa-plus’); $(this).addClass(‘fa-minus’); $(this).addClass(‘active’); $(this).closest(‘li’).find(‘.sub-menu’).addClass(‘open’); } else { $(this).addClass(‘fa-plus’); $(this).removeClass(‘fa-minus’); $(this).removeClass(‘active’); $(this).closest(‘li’).find(‘.sub-menu’).removeClass(‘open’); } }); if ($(window).width() > 1024 ) { $(‘#home-slider.home-video’).css(‘height’, ‘calc(‘ + $(window).height() + ‘px – ‘ + ($(‘.section-header’).height() + $(‘#primary-nav .reserve’).outerHeight() + $(‘#property-nav’).height() + 30) + ‘px)’); } else { $(‘#home-slider.home-video’).css(‘height’, ”); } }); jQuery( document ).ready(function( $ ) { if ($(window).width() = 250 ) { $(”) $(‘body’).addClass(‘onscroll’); $(‘.landing-page’).removeClass(‘display-none’); $(“.landing-page”).fadeIn(700); // $(‘landing-page-logo img’).fadeIn(500); } else { $(‘body’).removeClass(‘onscroll’); $(“.landing-page”).fadeOut(300); // $(‘landing-page-logo img’).fadeIn(500); $(‘.landing-page’).addClass(‘display-none’); } }); //slick $(document).ready(function() { $(‘.lp-slider, .lp-slider-no-map’).slick({ dots: false, infinite: true, speed: 300, slidesToShow: 1, adaptiveHeight: true, arrows: true, fade: true, cssEase: ‘linear’, prevArrow: $(‘.lp-slider-prev’), nextArrow: $(‘.lp-slider-next’) }); var gallery_magnific_popup = { type: ‘image’, closeOnContentClick: false, closeBtnInside: false, mainClass: ‘gallery-mfp’, image: { verticalFit: true, titleSrc: function(item) { return item.el.attr(‘title’); } }, gallery: { enabled: true }, zoom: { enabled: true, duration: 300, // don’t foget to change the duration also in CSS opener: function(element) { return element.find(‘img’); } } } $(‘.lp-icon-link’).magnificPopup(gallery_magnific_popup); $(‘.accordion-titlebox’).on(‘click’, function() { $btn = $(this).find(‘.accordion-btn’); $hiddenContent = $(this).parent().find(‘.accordion-contentbox’); if( $btn.hasClass(‘accordion-btn-plus’) ) { $btn.removeClass(‘accordion-btn-plus’); $btn.addClass(‘accordion-btn-minus’); $hiddenContent.slideDown(); } else { $btn.removeClass(‘accordion-btn-minus’); $btn.addClass(‘accordion-btn-plus’); $hiddenContent.slideUp(); } }); docReady_winResize_functions(); }); // ACM Audio-content-up jQuery(document).ready(function($){ $(‘.play-audio’).click(function(){ var audioBlock = $(this).closest(‘.audio-block’); var audio = audioBlock.find(“audio”); if(audioBlock.hasClass(‘audio-show’)){ audio[0].pause(); audio[0].currentTime = 0; audio[0].setAttribute(‘src’, ”) $(audioBlock).removeClass(‘audio-show’) }else{ audio[0].setAttribute(‘src’, $(this).data(‘audio’)) $(audioBlock).addClass(‘audio-show’) audio[0].play(); } }) }); $(window).resize(function() { docReady_winResize_functions(); }); function fullBleedImage( elem, multiplier ) { var getHeight = $(window).height(); var getWidth = $(window).width(); elem.css(‘height’, ”); // reset elem.height(getHeight * multiplier); } function docReady_winResize_functions() { fullBleedImage( $(‘.banner–40’), 0.4 ); fullBleedImage( $(‘.banner–50’), 0.5 ); fullBleedImage( $(‘.banner–60’), 0.6 ); fullBleedImage( $(‘.banner–70’), 0.7 ); fullBleedImage( $(‘.banner–80’), 0.8 ); fullBleedImage( $(‘.banner–90’), 0.9 ); fullBleedImage( $(‘.banner–100’), 1 ); } ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *