PageSourceSearch

https://www.champagne-gosset.com/site/assets/js/gosset.js?v=1790282759

js champagne-gosset.com collected 2026-09-24 20:46:17 UTC 10,516 bytes, 1 lines download raw bytes

1let slideUp=(e,t=500)=>{e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.classList.remove("opened"),window.setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},slideDown=(e,t=500)=>{e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;let s=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=s+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.add("opened")}),t)},slideToggle=(e,t=500)=>"none"===window.getComputedStyle(e).display?slideDown(e,t):slideUp(e,t),toggle_aria=(e,t,o=["true","false"])=>{e.setAttribute(t,e.getAttribute(t)===o[1]?o[0]:o[1])};const head=document.querySelector("#head_top"),foot=document.querySelector("footer"),navbar=document.querySelector("#desknav"),hassub=document.querySelectorAll(".opensub"),ddown=document.querySelectorAll(".vin_menu"),mainnav=document.querySelector("#mainnav"),mobnav=document.querySelector("#mobnav"),ham=document.querySelector("#ham"),mnews=document.querySelector("#menu_news"),hs_img=document.querySelectorAll(".hsec_image"),hsi_par=document.body.classList.contains("home")?[50,80,100]:[100,120,100,120,100,120,100,120,100],hsi_dir=document.body.classList.contains("home")?["moins","moins","moins"]:["moins","moins","moins","moins","moins","moins","moins","moins","moins"],legal=document.querySelector("#legal_window"),legalyes=document.querySelector("#legalyes"),legalno=document.querySelector("#legalno"),htop=document.querySelector("#home_top"),htw=document.querySelector("#home_topcontent_wrap"),zi=document.querySelector("#homecanvas");legal&&!Cookies.get("legal-yes")&&legal.classList.remove("d-none"),legal&&Cookies.get("legal-yes")&&(legal.classList.add("d-none"),legal.remove()),legalyes&&legalyes.addEventListener("click",(e=>(e.preventDefault(),e.stopPropagation(),legal.classList.add("d-none"),legal.remove(),Cookies.set("legal-yes","1"),!1)));let scroll=window.scrollY;if(mainnav){function navbar_stick(){window.scrollY>180?mainnav.classList.add("stucktop"):mainnav.classList.remove("stucktop")}window.addEventListener("scroll",navbar_stick),hassub.forEach(((e,t)=>{e.addEventListener("click",(o=>{o.preventDefault(),ddown.forEach(((e,o)=>{o!=t&&"none"!==window.getComputedStyle(e).display&&slideUp(e,300)})),hassub.forEach(((e,o)=>{o!=t&&e.setAttribute("aria-expanded","false")})),toggle_aria(e,"aria-expanded",values=["true","false"]),slideToggle(ddown[t],400)}))})),document.addEventListener("click",(e=>{ddown.forEach((t=>{!t.classList.contains("opened")||t.contains(e.target)||navbar.contains(e.target)||(slideUp(t,300),hassub.forEach((e=>{e.setAttribute("aria-expanded","false")})))}))}))}function move_3d(e,t,o,s,n,r){var i=new PIXI.Application({width:zi.offsetWidth,height:zi.offsetHeight});zi.appendChild(i.view);const a=PIXI.Sprite.from(`/site/assets/img/${e}`);a.width=zi.offsetWidth,a.height=zi.offsetHeight,i.stage.addChild(a);const l=PIXI.Sprite.from(`/site/assets/img/${t}`);l.width=zi.offsetWidth,l.height=zi.offsetHeight,i.stage.addChild(l),displacementFilter=new PIXI.filters.DisplacementFilter(l),i.stage.filters=[displacementFilter],enquire.register("screen and (min-width: 992px)",{match:function(){htw.addEventListener("mousemove",(e=>{displacementFilter.scale.x=(zi.offsetWidth/2-e.clientX)/s,displacementFilter.scale.y=(zi.offsetHeight/2-e.clientY)/o})),zi.addEventListener("mousemove",(e=>{displacementFilter.scale.x=(zi.offsetWidth/2-e.clientX)/s,displacementFilter.scale.y=(zi.offsetHeight/2-e.clientY)/o}))},unmatch:function(){zi.addEventListener("mousemove",(e=>{displacementFilter.scale.x=(zi.offsetWidth/2-e.clientX)/r,displacementFilter.scale.y=(zi.offsetHeight/2-e.clientY)/n}))}})}if(ham&&(ham.addEventListener("click",(e=>{e.preventDefault(),ham.classList.toggle("close"),toggle_aria(ham,"aria-expanded",values=["true","false"]),slideToggle(mobnav,400)})),window.addEventListener("resize",(()=>{ham.classList.remove("close"),ham.setAttribute("aria-expanded","fal
1se"),mobnav.style.display="none"})),mnews&&mnews.addEventListener("click",(e=>{ham.classList.remove("close"),slideUp(mobnav)}))),document.body.classList.contains("home")&&zi&&move_3d("home_top_img.jpg","home_top_map_3.jpg",12,15,8,12),document.body.classList.contains("domaine")&&zi&&move_3d("domaine_gosset.jpg","domaine_map.jpg",12,15,8,10),document.querySelector("#hcarrou")){const e=document.querySelector("#hcarrou_wrapper"),t=document.querySelectorAll("#hcarrou_nav span"),o=t.length;var vins_carrou=tns({container:"#hcarrou",loop:!1,items:1,slideBy:1,autoplay:!1,nav:!1,controls:!1,mouseDrag:!0});document.querySelector("#vinsnext").addEventListener("click",(e=>{vins_carrou.getInfo().index+1!=o&&vins_carrou.goTo("next")})),document.querySelector("#vinsprev").addEventListener("click",(e=>{vins_carrou.getInfo().index;vins_carrou.goTo("prev")})),t&&t.forEach(((e,o)=>{e.addEventListener("click",(()=>{t.forEach((e=>{e.classList.remove("selected")})),e.classList.add("selected"),vins_carrou.goTo(o)}))}));var trans_end=function(o,s){let n=o.index;e.style.backgroundColor=carroucolors[n],t&&t.forEach(((e,t)=>{t!=n?e.classList.remove("selected"):e.classList.add("selected")}))};vins_carrou.events.on("transitionEnd",trans_end)}const fimgw=document.querySelector("#fimg_wrap"),fimg=document.querySelector("#fimg_wrap img");gsap.fromTo(fimg,{marginTop:"-100px"},{scrollTrigger:{trigger:"fimgw",start:"top center",end:"bottom bottom",scrub:!0,pin:!0},marginTop:"50px",ease:"none"});const par_wrap=document.querySelector("#hbg"),mov_bg=document.querySelectorAll(".hbg"),sec_wrap=document.querySelector(".section_wrapper");par_wrap&&enquire.register("screen and (min-width: 992px)",{match:function(){sec_wrap.offsetHeight,par_wrap.offsetHeight;mov_bg.forEach((e=>{const t=parseInt(e.getAttribute("data-to")),o=e.getAttribute("data-dir"),s=e.offsetTop,n="bottom"==o?s+t:s-t;e.offsetHeight;gsap.to(e,{scrollTrigger:{trigger:"hbg",start:"top 30%",end:"bottom 90%",scrub:!0,pin:!0},top:`${n}px`,ease:"none"})}))},unmatch:function(){hs_img.forEach(((e,t)=>{e.style.marginTop=0}))}}),sec_wrap&&enquire.register("screen and (min-width: 992px)",{match:function(){hs_img.forEach(((e,t)=>{const o=hsi_par[t],s=hsi_dir[t],n=(e.offsetTop,"plus"==s?o:-o);e.offsetHeight;gsap.to(e,{scrollTrigger:{trigger:"hsi",start:"top top",end:"bottom bottom",scrub:!0,pin:!0},marginTop:`${n}px`,ease:"none"})}));document.querySelectorAll(".hsec_content_wrap");const e=document.querySelectorAll(".hsec_content"),t=new IntersectionObserver((e=>e.forEach((e=>{e.target.classList.toggle("inscreen",e.isIntersecting)}))));e.forEach((e=>t.observe(e)))}}),Fancybox.bind("[data-fancybox]",{Html:{video:{autoplay:!1}}}),Fancybox.bind(".videolink",{Html:{video:{autoplay:!1}}});const shareItems=document.querySelectorAll(".sshare");if(0!=shareItems.length)for(var i=0;i<shareItems.length;i+=1)shareItems[i].addEventListener("click",(function(e){return JSShare.go(this)}));const ggal=document.querySelector("#gal_grid");if(ggal){let e=new Isotope(ggal,{itemSelector:".grid_item",columnWidth:".grid_sizer",transitionDuration:350,gutter:!1});imagesLoaded(ggal).on("progress",(function(){e.layout()}))}const actusgr=document.querySelector("#actus_grid");if(actusgr){let e=new Isotope(actusgr,{itemSelector:".uneactulist_wrap",columnWidth:".actulist_sizer",transitionDuration:350,gutter:!1});imagesLoaded(actusgr).on("progress",(function(){e.layout()}))}var pristine;let prisconfig={classTo:"forminp",errorClass:"has-danger",successClass:"has-success",errorTextParent:"forminp",errorTextTag:"div",errorTextClass:"text-help"};const cform=document.querySelector("#contact_form"),vform=document.querySelector("#visit_form");if(cform||vform){const e=document.querySelectorAll("input.cinput, textarea");e.length>0&&e.forEach((e=>{""!=e.value&&e.classList.add("has-value"),e.addEventListener("blur",(t=>{""!=t.target.value?e.classList.add("has-value"):e.classList.remove("has-value")}))}))}const LeafIcon=L.Icon.extend({options:{iconSize:[24,40],iconAnchor:[16,34],popupAnchor:[-3,-40]}});if(document.querySelector("#gossmap")){var ziIcon=new LeafIcon({iconUrl:"/site/assets/img/marker_gosset.png"}),mymap=L.map("gossmap",{center:[lat,long],zoomSnap:.1,zoom:17,gestureHandling:!0}),epaumap=L.tileLayer("https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png",{subdomains:"abcd",minZoom:4,maxZoom:20,attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> - &copy; <a href="https://carto.com/attributions">CARTO</a>'}).addTo(mymap);L.marker([lat,long],{icon:ziIcon}).addTo(mymap),L.easyButton('<span class="mapi"><i class="fa-solid fa-house"></i></span>',(function(e,t){var o=[lat,long];t.closePopup(),t.setView(o,17)})).addTo(mymap),L.easyButton('<img src="/site/assets/img/france_small.png" title="France" />',(function(e,t){t.closePopup(),t.setView([46.232193,2.209667],5)})).addTo(mymap),L.control.fullscreen({position:"topleft",forceSeparateButton:!0}).addTo(mymap),mymap.on("enterFullscreen",(function(){head.style.display="none",foot.style.display="none"})),mymap.on("exitFullscreen",(function(){head.style.display="block",foot.style.display="block"}))}window.onload=function(){if(mainnav&&navbar_stick(),null!==cform){var e=new Pristine(cform,prisconfig);cform.addEventListener("submit",(function(t){e.validate()||t.preventDefault()}))}if(null!==vform){e=new Pristine(vform,prisconfig);vform.addEventListener("submit",(function(t){e.validate()||t.preventDefault()}))}};

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.