https://www.campo-tures.net/wp-content/cache/min/1/wp-content/them…/assets/js/site.js?ver=1787214261
1document.addEventListener("DOMContentLoaded",(event)=>{setTimeout(function(){LightcaseOrganizer()},0);SiMenuOrganizer();SiAccordionOrganizer();SiScrollToAnchor();SiClickableBoxes();SlideshowFilter();SlickOrganizer();SiScrollState();SiTabsOrganizer();AddTitle();HeaderScrollDown();ViewPortElem();AnchorLinksDocker();AnchorLinksActive();ScrollTopButton()});function SlideshowFilter(){var pictureElements=document.querySelectorAll("header .headerSlider .sc-slideshow picture"),pictureElementsPortrait=document.querySelectorAll("header .headerSlider .sc-slideshow picture source[media='(orientation:portrait)']"),pictureElementsLandscape=document.querySelectorAll("header .headerSlider .sc-slideshow picture source[media='(orientation:landscape)']");if(pictureElements&&pictureElementsPortrait.length>=1&&pictureElementsLandscape.length>=1){var isPortrait=window.matchMedia("(orientation: portrait)").matches,isLandscape=window.matchMedia("(orientation: landscape)").matches;for(var i=0;i<pictureElements.length;i++){var pictureElement=pictureElements[i],pictureSources=pictureElement.querySelectorAll("source[media]");for(var j=0;j<pictureSources.length;j++){var pictureSource=pictureSources[j];if((isPortrait&&pictureSource.media.includes("landscape"))||(isLandscape&&pictureSource.media.includes("portrait"))){pictureSource.remove()}} 2if(pictureElement.querySelectorAll("source[media]").length===0){pictureElement.remove()}}}} 3function LightcaseOrganizer(){lightcaseEventInit($("a[data-rel^=lightcase], img[data-rel^=lightcase]"),{showSequenceInfo:!1,showTitle:!1,showCaption:!1,swipe:!0,navigateEndless:!1,fullScreenModeForMobile:!1});lightcaseEventInit($("a[data-rel^=iframePopup]"),{showSequenceInfo:!1,showTitle:!1,showCaption:!1,fullScreenModeForMobile:!1,iframe:{width:"1100px",height:"1100px"}});lightcaseEventInit($("a[data-rel^=impressionGallery], img[data-rel^=impressionGallery]"),{showSequenceInfo:!1,showTitle:!1,showCaption:!0,fullScreenModeForMobile:!1,iframe:{width:"2100px",height:"1181px"},video:{width:"2100px",height:"1181px"}});lightcaseEventInit($("a[data-rel^=iframeWeather]"),{showSequenceInfo:!1,showTitle:!1,showCaption:!1,iframe:{width:"600px",height:"450px",}})} 4function SiMenuOrganizer(){var menu=document.querySelector(".SiMenu");var ctaButtons=document.querySelector(".topBar");var resmenulogo="<a href='/'><img alt='Logo' class='logoMobileMenu' src='/wp-content/graphics/vector_logo.svg'><a>";if(WordPressTheme.Language=="it"){resmenulogo="<a href='/'><img alt='Logo' class='logoMobileMenu lazyload' src='/wp-content/graphics/vector_logo.svg'><a>"}else if(WordPressTheme.Language=="en"){resmenulogo="<a href='/'><img alt='Logo' class='logoMobileMenu lazyload' src='/wp-content/graphics/vector_logo.svg'><a>"} 5var closeButtonString="<span>Menu</span>";if(WordPressTheme.Language=="de"){closeButtonString="<span>Menü</span>"} 6var buttonString="";if(menu&&ctaButtons){buttonString=ctaButtons.outerHTML} 7if(menu){var desktopMenu=menu.cloneNode(!0);desktopMenu.classList.remove("SiMenu");desktopMenu.classList.add("SiMenuDesktop");menu.parentNode.insertBefore(desktopMenu,menu)} 8SiMenu({menuSelector:".SiMenu",singleOpen:!0,copyToSubmenu:!1,closeButton:closeButtonString,afterHTML:buttonString,beforeHTML:resmenulogo,languageSelector:".sc-language-selector",extraButtonForSubmenu:!1,extraButtonText:"<div class='submenu-button'></div>",closeOnClick:!0});SiMenu({menuSelector:".SiMenuDesktop",singleOpen:!0,copyToSubmenu:!1,customCopyToSubMenuText:"<i class='arrow'></i>",extraButtonForSubmenu:!1})} 9function SiAccordionOrganizer(){$('.accordion').accordion({transitionSpeed:400,singleOpen:!1})} 10function SiScrollToAnchor(){$(document).on("click","a",function(e){var hash=this.href.match(/(#[\w\.\-]+)/g) 11siScrollTo(hash);SiActiveElement(this)});function SiActiveElement(clicked){var sianchorElements=document.querySelectorAll("[data-sianchor]");for(var i=0;i<sianchorElements.length;i++){var element=sianchorElements[i],sianchorElement=element.getAttribute("data-sianchor"),activeAnchor=document.querySelector("a[href$='#"+sianchorElement+"'"+"]"),linkClicked=clicked.href.split("#")[1];if(activeAnchor&&activeAnchor.classList.contains("sianchorActive")) 12activeAnchor.classList.remove("sianchorActive");if(sianchorElement==linkClicked){var activeAnchor=document.querySelector("a[href$='#"+sianchorElement+"'"+"]");
12if(activeAnchor){activeAnchor.classList.add("sianchorActive")}}}} 13if(window.location.hash){var hash=window.location.hash.replace("#",""),activeAnchor=document.querySelector("a[href$='#"+hash+"'"+"]");if(activeAnchor){activeAnchor.classList.add("sianchorActive")} 14setTimeout(function(){animateScrollTo(hash)},0)} 15window.siScrollTo=function(hash){if(hash&&hash.length){hash=hash[0].replace("#","");animateScrollTo(hash)}} 16function animateScrollTo(hash){var SiAnchorElement=document.querySelector("[data-sianchor="+hash+"]");var ScrollElement=document.querySelector("[data-scrollopen="+hash+"]");if(SiAnchorElement&&ScrollElement){history.pushState(null,null,"#"+hash);$("html, body").animate({scrollTop:$(SiAnchorElement).offset().top-(window.innerHeight/6)},200);setTimeout(function(){ScrollElement.click()},500)}else if(SiAnchorElement){history.pushState(null,null,"#"+hash);$("html, body").animate({scrollTop:$(SiAnchorElement).offset().top-(window.innerHeight/6)},200)}else if(ScrollElement){history.pushState(null,null,"#"+hash);$("html, body").animate({scrollTop:$(ScrollElement).offset().top-(window.innerHeight/6)},200);var scrollOpenElem=ScrollElement.closest(".accordion");if(scrollOpenElem&&!scrollOpenElem.classList.contains("open")){ScrollElement.click()}else if(!scrollOpenElem){ScrollElement.click()}}}} 17function SiClickableBoxes(){$(document).on("click",".seoBoxesWrapper .box, .themeHotelsWrapper .HotelsBoxesWrapper .box",function(){var href=$(this).find("a").attr("href");if(href&&href.length>0){window.location=href}})} 18function SlickOrganizer(){$(".large-slideshow .sc-slideshow").not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,dots:!1,infinite:!0,adaptiveHeight:!0,arrows:!0,fade:!0,});$("header .headerSlider .sc-slideshow").not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,dots:!1,infinite:!0,adaptiveHeight:!0,arrows:!0,fade:!0,});$(".slideshowBox .sc-slideshow").not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,infinite:!0,adaptiveHeight:!0,arrows:!0,fade:!0,});$(".testimonialsBoxesWrapper .BoxesWrapper").not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,infinite:!0,adaptiveHeight:!0,arrows:!0,dots:!0,fade:!0,});$(".impressionsGallery").not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,centerMode:!0,centerPadding:'40px',dots:!0,infinite:!0,adaptiveHeight:!0,arrows:!0,fade:!1,autoplay:!0,autoplaySpeed:5000,mobileFirst:!0,responsive:[{breakpoint:600,settings:{}},{breakpoint:994,settings:{centerPadding:'280px',}},{breakpoint:1350,settings:{centerPadding:'420px',}},{breakpoint:1600,settings:{centerPadding:'530px',}}]});$(".themeHotelsWrapper .HotelsBoxesWrapper").not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,centerMode:!0,centerPadding:'40px',dots:!0,infinite:!0,adaptiveHeight:!0,arrows:!0,fade:!1,autoplay:!0,autoplaySpeed:5000,mobileFirst:!0,responsive:[{breakpoint:600,settings:{}},{breakpoint:994,settings:{centerPadding:'280px',}},{breakpoint:1350,settings:{centerPadding:'420px',}},{breakpoint:1600,settings:{centerPadding:'530px',}}]})} 19function SiScrollState(){var toggleAfter=0;window.addEventListener("scroll",function(){var scrollPosition=document.documentElement.scrollTop||document.body.scrollTop;if(scrollPosition>toggleAfter){document.body.classList.add("scrolled");document.body.classList.remove("onTop")}else{document.body.classList.remove("scrolled");document.body.classList.add("onTop")}},{passive:!0})} 20function SiTabsOrganizer(){SiTabs({selector:document.querySelectorAll(".tabs")})} 21function AddTitle(){var masterContainerLinks=document.querySelectorAll(".sc-masterContainer .contentWrapper a"),footerContainerLinks=document.querySelectorAll(".footer a");masterContainerLinks.forEach(masterContainerLink=>{if(!masterContainerLink.getAttribute("title")&&!masterContainerLink.querySelector("img")){masterContainerLink.setAttribute("title",masterContainerLink.textContent)}});footerContainerLinks.forEach(footerContainerLink=>{if(!footerContainerLink.getAttribute("title")&&!footerContainerLink.querySelector("img")){footerContainerLink.setAttribute("title",footerContainerLink.textContent)}})} 22function HeaderScrollDown(){var arrowDown=document.querySelector(".arrowDown");if(!arrowDown) 23return!1;arrowDown.addEventListener("click",function(){$("html, body").animate({scrollTop:$(window).height()},600)})} 24var initWindowHeight=window.innerHeight,initWindowWidth=window.innerWidth,initialized=0;function ViewPortElem(){var currentHeight=window.innerHeight,currentWidth=window.innerWidth;if((currentHeight-initWindowHeight)>=100){calcVariables()}else if((initWindowHeight-currentHeight)>=100){calcVariables()}else if(initialized==0){calcVariables()} 25if((currentWidth-initWindowWidth)>=100){calcVariables()}else if((initWindowWidth-currentWidth)>=100){calcVariables()}else if(initialized==0){calcVariables()} 26initialized++;initWindowHeight=currentHeight;initWindowWidth=currentWidth;function calcVariables(){var vh=currentHeight*0.01;document.documentElement.style.setProperty('--vh',vh+"px");var vw=currentWidth*0.01;document.documentElement.style.setProperty('--vw',vw+"px")}} 27window.addEventListener('resize',ViewPortElem);function AnchorLinksDocker(){var el=document.querySelector(".anchorMenuWrapper");if(el){var elementOffset=$(el).offset().top,distance=(elementOffset);$(window).scroll(function(){var scrollTop=$(window).scrollTop();if(distance<=scrollTop){el.classList.add("fixed")}else{el.classList.remove("fixed")}})}} 28function AnchorLinksActive(){var reloadedAnchor=window.location.href.split('#');if(reloadedAnchor[1]){var selectedAnchor=reloadedAnchor[1],selectedAnchorLink="#"+selectedAnchor,getNavbarLink=document.querySelector("a[href="+"'"+selectedAnchorLink+"'"+"]");
28if(getNavbarLink){getNavbarLink.classList.add("sianchorActive")}} 29var navAnchors=document.querySelector(".anchorMenuWrapper ");if(!navAnchors) 30return!1;var allnavAnchors=navAnchors.querySelectorAll("a.textlink");if(navAnchors){$(navAnchors).on("click","a",function(){for(var i=0;i<allnavAnchors.length;i++){var element=allnavAnchors[i];element.classList.remove("sianchorActive")} 31this.classList.add("sianchorActive")})} 32if(window.IntersectionObserver){var options={threshold:[0.8]};var observer=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){if(entry.isIntersecting){setCurrent(entry.target)}})},options);function setCurrent(section){var menuOptions=navAnchors.querySelectorAll(".sianchor.txtLink");if(!menuOptions) 33return!1;for(var i=0;i<menuOptions.length;i++){var menuOption=menuOptions[i];if(menuOption.classList.contains("sianchorActive")){menuOption.classList.remove("sianchorActive")} 34if(menuOption.hash==="#"+section.getAttribute("data-sianchor")){menuOption.classList.add("sianchorActive");$('.anchorMenuWrapper').animate({scrollLeft:($(menuOption).offset().left-10)},500)}}} 35var sections=document.querySelectorAll("[data-sianchor]");if(sections){for(var i=0;i<sections.length;i++){observer.observe(sections[i])}}}} 36function ScrollTopButton(){var showAfter=150,button=document.querySelector(".siScrollToTop");button.addEventListener("click",function(){scrollToTop()});window.addEventListener("scroll",function(){var scrollPosition=document.documentElement.scrollTop||document.body.scrollTop;if(scrollPosition>showAfter){button.classList.add("show")}else{button.classList.remove("show")}},{passive:!0});function scrollToTop(){var scrollPosition=document.documentElement.scrollTop||document.body.scrollTop;if(scrollPosition>0){window.requestAnimationFrame(scrollToTop);window.scrollTo(0,scrollPosition-(scrollPosition/4))}}}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.