PageSourceSearch

https://www.parc-naturel-chevreuse.fr/themes/contrib/gin/dist/js/init.js?timw1z

js parc-naturel-chevreuse.fr collected 2026-09-24 09:27:05 UTC 3,273 bytes, 29 lines download raw bytes

1(() => {
2  if (localStorage.getItem("GinDarkMode") && localStorage.removeItem("GinDarkMode"), 
3  localStorage.getItem("Drupal.gin.darkmode") && localStorage.removeItem("Drupal.gin.darkmode"), 
4  localStorage.getItem("GinSidebarOpen") && (localStorage.setItem("Drupal.gin.toolbarExpanded", localStorage.getItem("GinSidebarOpen")), 
5  localStorage.removeItem("GinSidebarOpen")), function() {
6    const darkmodeSetting = document.getElementById("gin-setting-darkmode")?.textContent;
7    window.ginDarkmode = darkmodeSetting ? JSON.parse(darkmodeSetting)?.ginDarkmode : "auto", 
8    1 == window.ginDarkmode || "auto" === window.ginDarkmode && window.matchMedia("(prefers-color-scheme: dark)").matches ? document.documentElement.classList.add("gin--dark-mode") : !0 === document.documentElement.classList.contains("gin--dark-mode") && document.documentElement.classList.remove("gin--dark-mode");
9  }(), localStorage.getItem("Drupal.gin.toolbarExpanded")) {
10    const style = document.createElement("style"), className = "gin-toolbar-inline-styles";
11    if (style.className = className, "true" === localStorage.getItem("Drupal.gin.toolbarExpanded")) {
12      style.innerHTML = "\n    @media (min-width: 976px) {\n      /* Small CSS hack to make sure this has the highest priority */\n      body.gin--vertical-toolbar.gin--vertical-toolbar.gin--vertical-toolbar {\n        padding-inline-start: 256px !important;\n        transition: none !important;\n      }\n\n      .gin--vertical-toolbar .toolbar-menu-administration {\n        min-width: var(--gin-toolbar-width, 256px);\n        transition: none;\n      }\n\n      .gin--vertical-toolbar .toolbar-menu-administration > .toolbar-menu > .menu-item > .toolbar-icon,\n      .gin--vertical-toolbar .toolbar-menu-administration > .toolbar-menu > .menu-item > .toolbar-box > .toolbar-icon {\n        min-width: calc(var(--gin-toolbar-width, 256px) - 16px);\n      }\n    }\n    ";
13      const scriptTag = document.querySelector("script");
14      scriptTag.parentNode.insertBefore(style, scriptTag);
15    } else document.getElementsByClassName(className).length > 0 && document.getElementsByClassName(className)[0].remove();
16  }
17  if (localStorage.getItem("Drupal.gin.sidebarWidth")) {
18    const sidebarWidth = localStorage.getItem("Drupal.gin.sidebarWidth");
19    document.documentElement.style.setProperty("--gin-sidebar-width", sidebarWidth);
20  }
21  if (localStorage.getItem("Drupal.gin.sidebarExpanded.desktop")) {
22    const style = document.createElement("style"), className = "gin-sidebar-inline-styles";
23    if (style.className = className, window.innerWidth < 1024 || "false" === localStorage.getItem("Drupal.gin.sidebarExpanded.desktop")) {
24      style.innerHTML = "\n    body {\n      --gin-sidebar-offset: 0px;\n      padding-inline-end: 0;\n      transition: none;\n    }\n\n    .layout-region-node-secondary {\n      transform: translateX(var(--gin-sidebar-width, 360px));\n      transition: none;\n    }\n\n    .meta-sidebar__overlay {\n      display: none;\n    }\n    ";
25      const scriptTag = document.querySelector("script");
26      scriptTag.parentNode.insertBefore(style, scriptTag);
27    } else document.getElementsByClassName(className).length > 0 && document.getElementsByClassName(className)[0].remove();
28  }
29})();

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.