PageSourceSearch

https://www.grenoble.fr/include/public/summary/summary.min.js

js grenoble.fr collected 2026-10-02 02:46:27 UTC 1,650 bytes, 1 lines download raw bytes

1(()=>{"use strict";window.summary={elt:null,init:function(t){const e=document.querySelector(".js-summary"),s=document.querySelector(".main-wrapper");if(!e)return;if(t){const s="string"==typeof t?document.querySelector(t):t;if(s){let t=0;const i=e.querySelector("ul"),o=s.querySelectorAll("h3");let n="";o.forEach(e=>{t++;const s="titrage_"+t;e.setAttribute("id",s),n+=`<li class="c-summary__item"><a href="#${s}" class="o-button o-button--tertiary o-button--sm c-summary__link">${e.textContent}</a></li>`}),i&&i.insertAdjacentHTML("afterbegin",n)}}e.addEventListener("click",t=>{const s=t.target.closest("a");if(s&&!e.classList.contains("is-sticky")){const t=s.getAttribute("href"),e=document.querySelector(t);e&&(e.style.scrollMarginTop="calc(var(--summary-height, 50px) + 100px)")}});const i=()=>{const t=document.getElementById("contenu"),i=document.getElementById("bandeauBas"),o=cmsCore?.mobile||767;if(window.innerWidth>o&&t&&i){const o=e.offsetHeight,n=t.getBoundingClientRect().top+window.scrollY+o,c=window.scrollY;c+2*o>i.getBoundingClientRect().top+window.scrollY?(e.classList.add("is-sticky","is-bottom"),s?.classList.add("has-sticky-summary")):c>n-100?(e.classList.remove("is-bottom"),e.classList.add("is-sticky"),s?.classList.add("has-sticky-summary")):(e.classList.remove("is-sticky","is-bottom"),s?.classList.remove("has-sticky-summary"))}else e.classList.remove("is-sticky","is-bottom"),s?.classList.remove("has-sticky-summary")},o=()=>{const t=e.parentElement;t&&(e.style.width=t.offsetWidth+"px"),i()};window.addEventListener("resize",o),window.addEventListener("orientationchange",o),window.addEventListener("scroll",i),o()}}})();

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.