Changes for page Navigation

Last modified by Benjamin Fischer on 2025/06/17 15:52

From version 23.10
edited by Benjamin Fischer
on 2025/06/17 15:52
Change comment: There is no comment for this version
To version 23.7
edited by Benjamin Fischer
on 2025/06/03 16:15
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,7 +20,6 @@
20 20  #navItem ("DIG-UM.WebHome")
21 21  <li class="open">[[Program Planning.WebHome]]<ul>
22 22   <li>[[2nd Workshop on Sustainability>>MoccaCalendar.Workshops.2nd Workshop on Sustainability in the Digital Transformation of Basic Research on Universe & Matter.Program Planning.WebHome]]</li>
23 - <li>[[2nd Transfer Workshop>>MoccaCalendar.Workshops.2nd Workshop on Sustainability in the Digital Transformation of Basic Research on Universe & Matter.Program Planning.2nd Transfer Workshop (Hamburg 2026).WebHome]]</li>
24 24  </ul></li>
25 25  #navItem ("Internal.WebHome")
26 26  <li>[[ErUM-Data Call 2025.WebHome]]</li>
XWiki.JavaScriptExtension[0]
Caching policy
... ... @@ -1,0 +1,1 @@
1 +long
Code
... ... @@ -1,0 +1,19 @@
1 +document.addEventListener("load", () => {
2 + for (let e = document.querySelector(`#leftPanels a[href="${location.pathname.replace(/^(\/bin\/)[^\/]+(\/.+)/, "$1view$2")}"]`); e; e = e.parentElement)
3 + for(const c of e.classList)
4 + switch(c) {
5 + case "xDropdown":
6 + e.classList.add("open");
7 + break;
8 + case "wikilink":
9 + e.style.textDecoration = "underline";
10 + break;
11 + case "xDropdown-menu":
12 + const s = e.previousElementSibling?.firstElementChild?.style;
13 + if (s) s.textDecoration = "underline";
14 + break;
15 + case "panels":
16 + return;
17 + }
18 +});
19 +
Name
... ... @@ -1,0 +1,1 @@
1 +Current Page Integration