";t.append(a)}},unFixBGImagesForIPads=function(e){e=void 0===e?".chapterImage":e,getIsLarge()&&getIsIPad()&&$(e).css("background-attachment","scroll")},getLazyLoadPluginObject=function(){return _lazyLoadObject},getCurrentChapter=function(){return _onChapter},getVisibleViewport=function(e){return e?window.innerHeight-_stickyTopBarHeight+"px":parseInt(window.innerHeight-_stickyTopBarHeight)},getViewportOffset=function(e,t){return t?jQuery(e).offset().top-jQuery(window).scrollTop()-_stickyTopBarHeight+"px":parseInt(jQuery(e).offset().top-jQuery(window).scrollTop()-_stickyTopBarHeight)},getItemInViewport=function(e){var t=jQuery(e).offset().top;return!(t+jQuery(e).outerHeight()<=jQuery(window).scrollTop()||t>=jQuery(window).scrollTop()+jQuery(window).height())},getItemInViewportCenter=function(e,t){var r=jQuery(e).offset().top,o=jQuery(window).height()/2;return t=t||0,!(r>=jQuery(window).scrollTop()+o+t||r<=jQuery(window).scrollTop()+o-t)},getStickyTopBarHeight=function(){return _stickyTopBarHeight},getIsSmall=function(){return _isSmall},getIsMedium=function(){return _isMedium},getIsLarge=function(){return _isLarge},getIsMobile=function(){return"undefined"!=typeof console&&console.log("%c NOTICE getIsMobile()) deprecated - use getIsSmall()","background:orange; color:black"),_isSmall},getIsTablet=function(){return"undefined"!=typeof console&&console.log("%c NOTICE getIsTablet()) deprecated - use getIsMedium()","background:orange; color:black"),_isMedium},getDoParallax=function(){return"undefined"!=typeof console&&console.log("%c NOTICE getDoParallax()) deprecated - use getIsLarge()","background:orange; color:black"),_isLarge},getIsDesktop=function(){return!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},getIsIPad=function(){return navigator.userAgent.match(/iPad;.*CPU.*OS/i)},getIsNewerIPad=function(){return!!getIsIPad()&&1!=window.devicePixelRatio},getIsResponsive=function(){return IS_RESPONSIVE},adjustLayoutAfterResize=function(){initChapterTops(!0)},adjustChapterLinksArtHeight=function(e,t){jQuery(e).css("height",jQuery(t).outerHeight())},adjustSizeToParentAndViewport=function(e,t){jQuery(e).css("height",getVisibleViewport(!0)),jQuery(e).css("width",jQuery(t).width())},adjustSizeHeightToParent=function(e,t){var r=jQuery(t).height();jQuery(e).css("height",r+"px")},equalizeElementHeightsToTallest=function(e){for(var t=0,r=0;r=_chapterTops[o]){t=o+1;break}return-1!=t&&adjustChapterLinks(t),t}},adjustChapterLinks=function(e){jQuery(_chapterLinkEl).each(function(){jQuery(this).attr("href")!="#"+e?"function"==typeof _setChapterLinkCallback&&_setChapterLinkCallback(this,!1):("function"==typeof _setChapterLinkCallback&&_setChapterLinkCallback(this,!0),_onChapter=e)})},adjustMultiSizedImages=function(){"undefined"!=typeof console&&console.log("%c NOTICE adjustMultiSizedImages()) deprecated - lazy load is automatically managed","background:orange; color:black")},toTop=function(){jQuery("html, body").animate({scrollTop:0},600)},runTopMenuControl=function(){getIsSmall()?toggleMobileMenu(_mobileMenuEl,_topAndMobileMenuControl):toTop()},toggleMobileMenu=function(e,t){getIsSmall()&&(jQuery(e).toggle("fast"),jQuery(t).toggle("fast"))},goToChapter=function(e){var t=jQuery(_chapterElPrefix+e).offset().top-_stickyTopBarHeight+1,r=e<_onChapter?_onChapter-e:e-_onChapter,o=Math.floor(1e3/(_chapterTops.length-(_chapterTops.length-r)));jQuery("html, body").animate({scrollTop:t},o,function(){adjustChapterLinks(e),"function"==typeof _chapterSetCompleteCallback&&_chapterSetCompleteCallback(e)}),_onChapter=e},animateOverflowContent=function(e,t,r,o,a){if(a==_onChapter){var n=jQuery(e).css("background-position").split(" "),i=isNaN(t)?t:t+parseInt(n[0])+"px",l=isNaN(r)?r:r+parseInt(n[1])+"px";jQuery(e).css({"background-position":i+" "+l})}window.setTimeout(function(){animateOverflowContent(e,t,r,o,a)},o)},cycleImages=function(e,t){var r=jQuery(e+" .active"),o=0Hotel E, which features flexible meeting space and a wine bar perfect for your next corporate retreat, to a wide variety of new and recently remodeled hotels. Explore the Flamingo Resort, a mid-century marvel fully remodeled in 2021 that includes 170 rooms spread out across 10 acres. Or book at the century-old Hotel La Rose, the only Sonoma County hotel to be listed with the National Trust Historic Hotels of America. Find your perfect place to stay with our hotel guide.
');
$(".c6Text .tan > p").html('Rest your head at unique lodging options throughout Santa Rosa, from boutique properties like the Hotel E, which features flexible meeting space and a wine bar perfect for your next corporate retreat, to a wide variety of new and recently remodeled hotels. Retreat to Hyatt Regency Sonoma Wine Country. Our hotel in Santa Rosa offers easy access to hundreds of Sonoma County wineries, spacious rooms with scenic views, and 40,000 square feet of indoor and outdoor event space. Or book at the century-old Hotel La Rose, the only Sonoma County hotel to be listed with the National Trust Historic Hotels of America. Find your perfect place to stay with our hotel guide.');
// Change some contact info
$(".chapterImage .info").text("Lindsay Musco, Director of Business Development");
$(".chapterImage .email").text("@ lindsaym@visitsantarosa.com").attr("href", "mailto:lindsaym@visitsantarosa.com");
$(".sidebar .sidebarText .contactName").html("Lindsay MuscoDirector of Business Development");
$(".sidebar .sidebarText .links .email").html('lindsaym@visitsantarosa.com').attr("href", "mailto:lindsaym@visitsantarosa.com");;
$(".sidebarHeader").click(function() {
$('.sidebar').toggleClass('hideMe');
});
$("body").on("click", function(e) {
console.log($(e.target).closest("#sidebar").length);
if ($(e.target).closest("#sidebar").length === 0) {
$(".sidebar").addClass("hideMe");
}
});
// slide shows
$(".slider").slick({
dots: true,
infinite: true,
lazyLoad: 'ondemand',
speed: 500,
centerMode: true,
slidesToShow: 1,
variableWidth: true,
pauseOnHover: false,
autoplay: true,
autoplaySpeed: 5000,
arrows: false,
});
$(".slider").slick('slickGoTo', 1, true);
$(".slider").slick('slickGoTo', 0, true);
// Recommended Reads links
var relatedLinks = [{
"title": "Get Your Guide",
"link": "https://www.visitflagler.com/about/visitors-guide-brochures/"
},
{
"title": "Pets Welcome!",
"link": "https://www.visitflagler.com/where-to-stay/pet-friendly/"
},
{
"title": "Hungry? We’ve got you covered!",
"link": " https://www.visitflagler.com/sp/culinary/"
}
];
// footer links
buildRelatedLinks(relatedLinks);
equalizeElementHeightsToTallest($(".linkTitleWrapper"));
// End Recommended Reads links
customAdjustLayout(true);
// ipad pro will use large size, but needs backgrounds set to scroll, not fixed
unFixBGImagesForIPads();
// add the complete class to the loader
$("#loading").addClass("complete");
//smooth scrolling anchor links
$('a[href*="#"]')
.not('[href="#"]')
.not('[href="#0"]')
.click(function(event) {
if (
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') &&
location.hostname == this.hostname
) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
event.preventDefault();
$('html, body').animate({
scrollTop: target.offset().top - parseInt(target.css('margin-top'))
}, 1000);
}
}
});
}
//
// Called on document scroll
//
contentOnScroll = function() {
if ($("#v0").length) {
if (getItemInViewport("#ci0")) {
$("#v0")[0].play();
} else {
$("#v0")[0].pause();
}
}
$(".backgroundEl").each(function() {
var el = $(this).parent();
window.innerHeight
if ($(window).scrollTop() >= el.offset().top) {
el.addClass("relative");
} else {
el.removeClass("relative");
}
});
}
//
// Called on a touch move on mobile
//
contentOnTouchMove = function() {}
//
// Called on document resize
//
contentOnResize = function() {
customAdjustLayout();
}
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// video player
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
/* temp
$(".videoPlayer .controls").prepend('
');
var videos = [
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_1.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_2.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_3.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_4.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_5.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_6.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_7.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_8.mp4",
"https://maddencdn.com/content/images/2020/flagler/infinite-summer/video_9.mp4"
]
var displayedVideo = 0;
function switchVideo(index) {
$(".videoPlayer").find("video").attr("src", videos[index]);
displayedVideo = index;
$(".videoPlayer").find("video")[0].play();
$(".videoPlayer").find(".controls").removeClass("paused");
var duration = $(".videoPlayer").find("video")[0].duration;
}
$(".playBtn").click(function() {
$(".videoPlayer").find("video")[0].play();
$(".videoPlayer").find(".controls").removeClass("paused");
});
$(".pauseBtn").click(function() {
$(".videoPlayer").find("video")[0].pause();
$(".videoPlayer").find(".controls").addClass("paused");
});
$(".prevBtn").click(function() {
if (displayedVideo != 0) {
switchVideo(displayedVideo - 1);
}
});
$(".nextBtn").click(function() {
if (displayedVideo != videos.length - 1) {
switchVideo(displayedVideo + 1);
}
});
$(".replayBtn").click(function() {
$(".videoPlayer").find("video")[0].currentTime = 0;
});
$(".videoSelector").click(function(){
switchVideo($(this).index());
});
$(".videoPlayer").find("video")[0].onended = function() {
if (displayedVideo != videos.length - 1) {
switchVideo(displayedVideo + 1);
} else switchVideo(0);
};
var video = $(".videoPlayer video");
$(".videoPlayer video").on('timeupdate', function() {
var currentPos = $(this)[0].currentTime; //Get currenttime
var maxduration = $(this)[0].duration; //Get video duration
var percentage = 100 * currentPos / maxduration; //in %
$('.timeBar').css('transition', 'width '+(100 / (maxduration * 4))+'s linear');
$('.timeBar').css('width', percentage+'%');
});
*/
/* temp
var timeDrag = false;
*/
/* Drag status */
/* temp
$('.progressBar').mousedown(function(e) {
timeDrag = true;
updatebar(e.pageX);
});
$(document).mouseup(function(e) {
if(timeDrag) {
timeDrag = false;
updatebar(e.pageX);
}
});
$(document).mousemove(function(e) {
if(timeDrag) {
updatebar(e.pageX);
}
});
//update Progress Bar control
var updatebar = function(x) {
var progress = $('.progressBar');
var maxduration = video[0].duration; //Video duraiton
var position = x - progress.offset().left; //Click pos
var percentage = 100 * position / progress.width();
//Check within range
if(percentage > 100) {
percentage = 100;
}
if(percentage < 0) {
percentage = 0;
}
//Update progress bar and video currenttime
$('.timeBar').css('width', percentage+'%');
video[0].currentTime = maxduration * percentage / 100;
};
$("#scrollSection .innerSection .textEl.collapse").click(function(){
$(this).toggleClass('showFullHeight');
});
$( "#scrollSection .innerSection .textEl.collapse" )
.mouseenter(function() {
$( this ).addClass('mouseOver');
})
.mouseleave(function() {
$( this ).removeClass('mouseOver');
});
*/
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// CUSTOM FUNCTIONS
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
//
// The frameworks was given this function to handle setting chapter buttons
// when the chapter is set
//
// chapterEl: The chapter link DOM element
// on: Is it being turned on? (true|false)
//
customChapterLinkAdjust = function(chapterEl, on) {
$(chapterEl).attr("class", ((on) ? "navLink chapterLink noGA on" : "navLink chapterLink noGA"));
}
//
// Adjust this specific layout after a load or resize event
//
// isLoad: Is this being called by a load or resize event?
//
customAdjustLayout = function(isLoad) {
// if we're showing the video, set that src here (avoids unnecessary loading)
if ($("#v0").length) {
if (isLoad || !$("#v0").attr('src')) {
// $("#v0").attr("src", "https://maddencdn.com/content/images/2020/tampabay/infinite-summer/c0_video.mov");
$("#v0").attr("src", "https://maddencdn.com/content/images/2021/santa-rosa/c0_video.mp4");
$("#v0")[0].play();
}
} else {
$("#v0").css("display", "none");
}
if (getIsLarge()) {
//if we are on desktop use custom controls
$(".videoPlayer video").removeAttr('controls');
$(".videoPlayer .controls").show();
} else {
//if we aren't on desktop swap the custom controls for browser ones
$(".videoPlayer video").attr('controls', true);
$(".videoPlayer .controls").hide();
}
var localNotJustTouchScroll = isLoad;
// is it really a resize?
if ($(window).width() != _winWidth) {
// yes
localNotJustTouchScroll = true;
_winWidth = $(window).width();
}
if (localNotJustTouchScroll) {}
}
$(document).on("scroll", function() {
var pageTop = $(document).scrollTop()
var pageBottom = pageTop + $(window).height()
var tags = $(".fadeinitem")
for (var i = 0; i < tags.length; i++) {
var tag = tags[i]
if ($(tag).offset().top < pageBottom) {
$(tag).addClass("visibleitem")
} else {
$(tag).removeClass("visibleitem")
}
}
})
/**
* slick js
*/
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(i,e){return'"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.hidden="hidden",n.paused=!1,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,s,o),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0),n.checkResponsive(!0)}}()).prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.asNavFor=function(e){var t=this.options.asNavFor;t&&null!==t&&(t=i(t).not(this.$slider)),null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer),i.slideCount>i.options.slidesToShow&&!0!==i.paused&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this;!1===i.options.infinite?1===i.direction?(i.currentSlide+1===i.slideCount-1&&(i.direction=0),i.slideHandler(i.currentSlide+i.options.slidesToScroll)):(i.currentSlide-1==0&&(i.direction=1),i.slideHandler(i.currentSlide-i.options.slidesToScroll)):i.slideHandler(i.currentSlide+i.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(t='