PageSourceSearch

https://www.reims-tourisme.com/assets/cache/min/2/assets/themes/faire-savoir/js/global.js?ver=1790857757

js reims-tourisme.com collected 2026-10-02 05:22:04 UTC 10,477 bytes, 1 lines download raw bytes

1"use strict";function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var prefersColorScheme=localStorage.getItem("prefersColorScheme"),toggleThemeModeBtns=(prefersColorScheme?document.documentElement.dataset.prefersColorScheme=prefersColorScheme:prefersColorScheme=window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",document.querySelectorAll(".toggleThemeMode"));function getCurrentBreakpoint(){var e=window.getComputedStyle(document.body,":after").getPropertyValue("content");return-1!=e.indexOf("xs")?"xs":-1!=e.indexOf("sm")?"sm":-1!=e.indexOf("md")?"md":-1!=e.indexOf("lg")?"lg":-1!=e.indexOf("xl")&&"xl"}function setCookie(e,t,o){var n=new Date,o=(n.setTime(n.getTime()+24*o*60*60*1e3),"expires="+n.toUTCString());document.cookie=e+"="+t+";"+o+";path=/"}function getCookie(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),n=0;n<o.length;n++){for(var i=o[n];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""}function deleteCookie(e){setCookie(e,"",-1)}function isExternalLink(e){var t=document.createElement("a");return t.href=e,t.host!==window.location.host}toggleThemeModeBtns.forEach(function(e){e.addEventListener("click",function(){prefersColorScheme="light"==prefersColorScheme?"dark":"light",document.documentElement.dataset.prefersColorScheme=prefersColorScheme,localStorage.setItem("prefersColorScheme",prefersColorScheme)})});var initPlayer,onYouTubeIframeAPIReady,tag,firstScriptTag,player,playerInitialized,idVideo,playerEL=document.getElementById("entetePlayer");function slideToggle(e,t,o,n){0===e.clientHeight?_s(e,t,o,!0,n):_s(e,t,o)}function slideUp(e,t,o){_s(e,t,o)}function slideDown(e,t,o,n){_s(e,t,o,!0,n)}function _s(o,n,i,a){var r,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"block",e=(void 0===n&&(n=400),void 0===a&&(a=!1),o.style.overflow="hidden",a&&(o.style.display=e),window.getComputedStyle(o)),l=parseFloat(e.getPropertyValue("height")),s=parseFloat(e.getPropertyValue("padding-top")),c=parseFloat(e.getPropertyValue("padding-bottom")),d=parseFloat(e.getPropertyValue("margin-top")),f=parseFloat(e.getPropertyValue("margin-bottom")),u=l/n,h=s/n,p=c/n,g=d/n,m=f/n;window.requestAnimationFrame(function e(t){t-=r=void 0===r?t:r;a?(o.style.height=u*t+"px",o.style.paddingTop=h*t+"px",o.style.paddingBottom=p*t+"px",o.style.marginTop=g*t+"px",o.style.marginBottom=m*t+"px"):(o.style.height=l-u*t+"px",o.style.paddingTop=s-h*t+"px",o.style.paddingBottom=c-p*t+"px",o.style.marginTop=d-g*t+"px",o.style.marginBottom=f-m*t+"px"),n<=t?(o.style.height="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.overflow="",a||(o.style.display="none"),"function"==typeof i&&i()):window.requestAnimationFrame(e)})}null!==playerEL&&(initPlayer=function(){var e;playerInitialized||["lg","xl"].indexOf(getCurrentBreakpoint())<0||(playerInitialized=!0,player=new YT.Player("entetePlayer",{width:"100%",videoId:idVideo,playerVars:(_defineProperty(e={autoplay:1,playsinline:1,controls:0,disablekb:1,enablejsapi:1,fs:0,loop:1,modestbranding:1},"playsinline",1),_defineProperty(e,"iv_load_policy",3),_defineProperty(e,"rel",0),_defineProperty(e,"showinfo",0),_defineProperty(e,"mute",1),_defineProperty(e,"playlist",idVideo),_defineProperty(e,"cc_load_policy",0),_defineProperty(e,"autohide",0),_defineProperty(e,"origin",window.location.protocol+"//"+window.location.hostname),_defineProperty(e,"widgetid",1),e),events:{onReady:function(e){e.target.mute(),e.target.playVideo()}}}))},onYouTubeIframeAPIReady=function(){initPlayer(),window.addEventListener("resize",initPlayer)},(tag=document.createElement("script")).src="https://www.youtube.com/iframe_api",(firstScriptTag=document.getElementsByTagName("script")[0]).parentNode.insertBefore(tag,firstScriptTag),playerInitialized=!1,idVideo=playerEL.dataset.idVideo),function(i,a){var e,t;function o(e){var t=(screen.width-640)/2,o=(screen.height-570)/2;i.open(e,"NewWindow","menubar=no,toolbar=no,status=no,width=640,height=570,top="+o+",left="+t)}function n(){"function"==typeof fsTracker&&(a(this).data("type")?fsTracker("fs.send","event","CLIC_OFFRE",a(this).data("type"),a(this).find("a").attr("href")):a(this).data("fs-tracking")&&fsTracker("fs.send","event","CLIC_OFFRE",a(this).data("fs-tracking"),a(this).find("a").attr("href")))}"ontouchstart"in document.documentElement&&(document.body.classList.remove("no-touch"),document.body.classList.add("touch")),0<a(".sliderBackgroun
1ds").length&&(c=a(".sliderBackgrounds .swiper-slide").length,new Swiper(".sliderBackgrounds",{allowTouchMove:!1,autoplay:{delay:5e3},effect:"fade",fadeEffect:{crossFade:!0},initialSlide:Math.floor(Math.random()*c),loop:!0,pagination:{el:".swiper-pagination",clickable:!0},speed:1e3})),0<a(".sliderEntetes").length&&new Swiper(".sliderEntetes",{autoplay:{delay:5e3,disableOnInteraction:!1},threshold:20,loop:!0,pagination:{el:".swiper-pagination",clickable:!0},speed:1e3}),a(".toggleSwitch").on("click",function(){a(this).toggleClass("active")}),a(".toggleSearch").on("click",function(){a(".header .search-form-wrapper").toggleClass("active"),a("body").toggleClass("no-scroll")}),0<a(".sharingBtn").length&&(e=encodeURIComponent(document.URL),t=encodeURIComponent(a('meta[property="og:description"]').attr("content")),a(".sharingBtn.facebook").on("click",function(){o("https://www.facebook.com/sharer.php?u="+e)}),a(".sharingBtn.twitter").on("click",function(){o("https://twitter.com/intent/tweet?url="+e+"&text="+t)}),a(".sharingBtn.linkedin").on("click",function(){o("https://www.linkedin.com/shareArticle?mini=true&url="+e)}),a(".sharingBtn.pinterest").on("click",function(){o("https://pinterest.com/pin/create/button/?url="+e+"&description="+t)})),a(".toggleModal").on("click",function(){a(this).closest(".modal").removeClass("active"),a("body").removeClass("no-scroll")}),a('a[href*="#"]').not('[href="#"]').not('[href="#0"]').on("click",function(e){var t,o;location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname&&(o=(o=a(this.hash)).length?o:a("[name="+this.hash.slice(1)+"]")).length&&(t=0<a("#wpadminbar").length?a("#wpadminbar").outerHeight():0,e.preventDefault(),a("html, body").animate({scrollTop:o.offset().top-a(".header").outerHeight()-t},1e3,function(){var e=a(o);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}),a(document).on("click",".togglableValue",function(e){a(e.target).is("a")||(a(this).find(".label").is(":visible")&&a(this).css({"min-width":a(this).outerWidth()}),a(this).find(".label, .value").slideToggle(200))}),a(function(){a(document).on("click",".togglableValue[data-type]",n),a(document).on("click",".togglableValue[data-fs-tracking]",n)}),0<a(".field.floating-label").length&&(a(".field.floating-label").each(function(){""!=a(this).find("input, textarea, select").val()&&a(this).addClass("filled")}),a(".field.floating-label").on("focusin",function(){a(this).addClass("active")}),a(".field.floating-label").on("focusout",function(){a(this).removeClass("active")}),a(".field.floating-label").on("change",function(){""!=a(this).find("input, textarea, select").val()?a(this).addClass("filled"):a(this).removeClass("filled")})),a(document).on("favorites-updated-single",function(e,t,o,n,i){t.forEach(function(e){e.site_id==n&&(e=e.posts,a(".header__favorites .counter").html(Object.keys(e).length))})});document.querySelectorAll("a[href]").forEach(function(n){n.closest(".fs-bouton")||0==n.href.indexOf("#")||"function"!=typeof gtag||n.addEventListener("click",function(e){e.preventDefault();var e=n.dataset.gaAction||"click",t=n.dataset.gaCategory||(isExternalLink(n.href)?"lien externe":"lien interne"),o=n.dataset.gaLabel||n.textContent;gtag("event",e,{event_category:t,event_label:o}),i.location.href=n.href})}),"undefined"!=typeof FWP&&a(document).on("facetwp-loaded",function(){a.each(FWP.settings.num_choices,function(e,t){e=a(".facetwp-facet-"+e);0===t?e.parent().hide():e.parent().show()}),a.each(FWP.facets,function(e,t){null!=t&&""!=t?a('div[data-name="'+e+'"]').closest(".facet").addClass("facet-is-used"):a('div[data-name="'+e+'"]').closest(".facet").removeClass("facet-is-used")})}),i.addEventListener("scroll",function(e){0<(i.scrollY||document.documentElement.scrollTop)?a("body > .header").addClass("fixed"):a("body > .header.fixed").removeClass("fixed")}),a(".header .toggleNav").on("click",function(){a(".header .toggleNav").toggleClass("active"),a(".header").toggleClass("active"),a(".header__menu").toggleClass("active"),a(".header__main-nav li.active").removeClass("active"),a("body").toggleClass("no-scroll")}),a(".header__main-nav .menu-item-has-children").on("click",function(e){["md","lg","xl"].indexOf(getCurrentBreakpoint())<0&&a(e.target).hasClass("menu-item-has-children")&&(a(e.target).addClass("active"),a(e.target).find("li").css("position","relative"),a(e.target).css("position","static"))}),a(".header__main-nav .goBack").on("click",function(){a(this).closest("li").removeClass("active")}),a(".header__main-nav .menu-item a").on("mouseenter",function(e){-1<["md","lg","xl"].indexOf(getCurrentBreakpoint())&&
1(a(this).closest("ul").children(".menu-item-has-children").removeClass("active"),a(this).closest(".menu-item-has-children").addClass("active"))}),a(".toggleShare").on("click",function(){a(this).parent().toggleClass("active")});var r,l,s=document.querySelectorAll('[role="tab"]'),c=document.querySelector('[role="tablist"]'),d=(s&&c&&(r=function(e){var e=e.target,t=e.parentNode,o=t.parentNode;t.querySelectorAll('[aria-selected="true"]').forEach(function(e){return e.setAttribute("aria-selected",!1)}),e.setAttribute("aria-selected",!0),o.parentNode.querySelectorAll('[role="tabpanel"]').forEach(function(e){return e.setAttribute("hidden",!0)}),o.parentNode.querySelector("#".concat(e.getAttribute("aria-controls"))).removeAttribute("hidden")},s.forEach(function(e){e.addEventListener("click",r)}),l=0,c.addEventListener("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(s[l].setAttribute("tabindex",-1),39===e.keyCode?++l>=s.length&&(l=0):37===e.keyCode&&--l<0&&(l=s.length-1),s[l].setAttribute("tabindex",0),s[l].focus())})),0);a(i).scroll(function(e){var t=a(this).scrollTop();d<t?(a("body").removeClass("scroll-up"),a("body").addClass("scroll-down")):(a("body").removeClass("scroll-down"),a("body").addClass("scroll-up")),d=t})}(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.