PageSourceSearch

https://www.crozon-tourisme.bzh/assets/themes/faire-savoir/js/accueil.js?ver=1744200548

js crozon-tourisme.bzh collected 2026-10-02 12:16:24 UTC 5,382 bytes, 1 lines download raw bytes

1((e,s)=>{0<s(".sliderEntetes").length&&(n=function(e){o.style.strokeDashoffset=a-e/100*a},t=s(".entete"),P=s(".sliderEntetes"),q=s(".sliderDiapo"),i=s(".enteteCursor"),o=i.find(".progress-ring").get(0),r="a, button, .swiper-pagination-bullet, .swiper-navigation [class*=swiper-button]",a=2*o.r.baseVal.value*Math.PI,t.on("mousemove",function(e){i.css({left:e.pageX,top:e.pageY})}),t.on("mouseenter mouseleave",r,function(){i.toggleClass("hover")}),o.style.strokeDasharray="".concat(a," ").concat(a),o.style.strokeDashoffset="".concat(a),n(0),P.length)&&(l=function(){v=new Swiper(".sliderEntetes",{loop:!0,loopPreventsSlide:!1,speed:600,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".entete .swiper-button-next",prevEl:".entete .swiper-button-prev"}})},d=function(){v=new Swiper(".sliderEntetes",{loop:!0,loopPreventsSlide:!1,speed:1e3,allowTouchMove:!1,touchStartPreventDefault:!1,freeMode:{enabled:!0,sticky:!0},effect:"fade",fadeEffect:{crossFade:!0},pagination:{el:".entete .swiper-pagination",clickable:!0},navigation:{nextEl:".entete .swiper-button-next",prevEl:".entete .swiper-button-prev"}})},c=function(e){e.hasClass("active")?(e.get(0).swiper.slideTo(0,800),s("html").removeClass("no-scroll"),t.removeClass("in-exploration"),e.removeClass("active")):(s("html, body").animate({scrollTop:0},0),s("html").addClass("no-scroll"),t.addClass("in-exploration"),e.addClass("active"))},((g=e.matchMedia("(max-width: 767px)")).matches?l:d)(),g.addEventListener("change",function(e){(e.matches?(void 0!==v&&v.destroy(),l):(void 0!==v&&v.destroy(),d))()}),P.on("mousedown",function(e){var t;s(e.target).is(r)||(t=0,f=setInterval(function(){(t+=2)<=100?n(t):clearInterval(f)},10),u=setTimeout(function(){p=setInterval(function(){v.slideNext()},700)},150))}),P.on("mouseup",function(){clearInterval(f),n(0),clearTimeout(u),clearInterval(p)}),P.on("contextmenu",function(){clearInterval(f),n(0),clearTimeout(u),clearInterval(p)}),q.each(function(){new Swiper(this,{slidesPerView:"auto",freeMode:{enabled:!0,sticky:!1},mousewheel:!0,on:{sliderFirstMove:function(e,t){e.updateSlides()}}})}),P.on("click",'.btn[href^="#"]',function(e){e.preventDefault();var t,n,i,o,e=s(e.target.hash);e.length&&(n=(t=e.find(".diapositive__thumbnail")).get(0).getBoundingClientRect(),o=(i=t.find("img")).get(0).getBoundingClientRect(),t.width(n.width),i.addClass("fixed").animate({left:o.left,top:o.top,width:o.width,height:o.height},800,function(){i.removeAttr("style").removeClass("fixed"),t.removeAttr("style")}),c(e))}),q.on("click",".close",function(e){var t=s(this).parent();t.length&&c(t)})),1<document.querySelectorAll(".sliderTopsVideos .swiper-slide").length&&(w=function(){m=new Swiper(".sliderTopsVideos",{slidesPerView:"auto",spaceBetween:16,on:{init:function(e){h(e)},slideChangeTransitionEnd:function(e){h(e)}}})},h=function(e){var t=e.el.querySelectorAll("video"),e=e.el.querySelector(".swiper-slide-active video");t.forEach(function(e){e.pause()}),e.play()},(g=e.matchMedia("(max-width: 1023px)")).matches&&w(),g.addEventListener("change",function(e){e.matches?w():(void 0!==m&&m.destroy(),document.querySelectorAll(".topsVideo").forEach(function(e){e.pause()}))}));var n,t,i,o,r,a,l,d,c,u,p,f,v,w,h,m,g,y,E,S,x,b,T,C,I,A,q,P=document.querySelectorAll(".topsVideo");P&&P.forEach(function(e){var t=e.closest(".card");t.addEventListener("mouseenter",function(){e.play()}),t.addEventListener("mouseleave",function(){e.pause()})}),document.querySelector(".sliderInspiTitles")&&(y=function(){void 0!==b&&b.destroy(),S=new Swiper(".sliderInspiTitles",{loop:!0,effect:"fade",fadeEffect:{crossFade:!0},pagination:{el:".sliderInspiTitles .swiper-pagination",clickable:!0}}),b=new Swiper(".sliderInspiContents",{loop:!0,effect:"fade",fadeEffect:{crossFade:!0}}),(S.controller.control=b).controller.control=S},E=function(){void 0!==S&&S.destroy(),void 0!==b&&b.destroy(),b=new Swiper(".sliderInspiContents",{speed:800,allowTouchMove:!1,loopPreventsSlide:!1})},x=document.querySelectorAll(".sliderInspiTitles .swiper-slide"),((T=e.matchMedia("(max-width: 1023px)")).matches?y:E)(),x.forEach(function(e,t){e.addEventListener("mouseenter",function(){T.matches||(void 0!==b&&b.slideTo(t),x.forEach(function(e){e.querySelector(".titre").classList.remove("active")}),e.querySelector(".titre").classList.add("active"))})}),T.addEventListener("change",function(e){(e.matches?y:E)()})),1<document.querySelectorAll(".sliderUne .swiper-slide").length&&(C=function(){A=new Swiper(".sliderUne",{slidesPerView:"auto",spaceBetween:16})},I=function(){A=new Swiper(".sliderUne",{slidesPerView:"auto",spaceBetween:32,navigation:{nextEl:".une .swiper-button-next",prevEl:".une .swiper-button-prev"}})},((q=e.matchMedia("(max-width: 1023px)")).matches?C:I)(),q.addEventListener("change",function(e){(e.matches?(void 0!==A&&A.destroy(),C):(void 0!==A&&A.destroy(),I))()})),1<document.querySelectorAll(".sliderAgenda .swiper-slide").length&&new Swiper(".sliderAgenda",{spaceBetween:16,watchSlidesProgress:!0,navigation:{nextEl:".sliderAgenda .swiper-button-next",prevEl:".sliderAgenda .swiper-button-prev"},breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:3,spaceBetween:32}}}),document.querySelector(".sliderTempsForts")&&new Swiper(".sliderTempsForts",{spaceBetween:16,navigation:{nextEl:".agenda .temps-forts .swiper-button-next",prevEl:".agenda .temps-forts .swiper-button-prev"}})})(window,jQuery);

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.