Changeset 834bcc3 in Klonkt for src/views/partials/topnav.ejs
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/views/partials/topnav.ejs (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/topnav.ejs
rbb42dfb r834bcc3 27 27 <a href="<%= _siteUrlBase %>/" class="nav-link nav-link-admin"><%= t('nav.back_to_site') %></a> 28 28 <% } else if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %> 29 <%# Hub: de brand gaat naar de hub-home via HTMX. De chrome wordt in hub-modus30 altijd gerenderd en via body.on-hub (CSS) verborgen op de landing, dushtmx31 kan schakelen zonder full-reload → de audioplayer blijft leven. %>29 <%# Hub: the brand navigates to the hub home via HTMX. The chrome is always 30 rendered in hub mode and hidden on the landing via body.on-hub (CSS), so htmx 31 can switch without a full reload → the audio player stays alive. %> 32 32 <a class="nav-hub-home" href="/" aria-label="Home" title="Home" 33 33 hx-get="/?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/" hx-indicator="#pcms-loading"> … … 207 207 <script> 208 208 (function() { 209 // EÉN keer bedraden. Deze chrome (topnav) wordt bij htmx-navigatie out-of-band210 // opnieuw ingevoegd → zonder deze guard zou dit script bij elke navigatie EXTRA211 // listeners stapelen, waardoor de thema-toggle 2× (of vaker) vuurde = geen netto212 // wisseling ("toggle werkt niet meer"). Alles hieronder is event-delegatie op213 // b ody/document, dus het werkt ook voor knoppen die ná deze run (OOB) verschijnen.209 // Wired ONCE. This chrome (topnav) is re-inserted out-of-band during htmx navigation 210 // → without this guard the script would stack EXTRA listeners on every navigation, 211 // causing the theme toggle to fire 2× (or more) = no net change ("toggle stops working"). 212 // Everything below uses event delegation on body/document, so it also works for 213 // buttons that appear after this run (OOB). 214 214 if (window.__pcmsChromeWired) return; 215 215 window.__pcmsChromeWired = true; … … 229 229 if (e.target.closest('#search-toggle')) { openSearch(); return; } 230 230 if (e.target.closest('#search-close')) { closeSearch(); return; } 231 // Open dropdowns (gebruikersmenu + taalkeuze) sluiten bij klik erbuiten.231 // Close open dropdowns (user menu + language picker) on click outside. 232 232 document.querySelectorAll('.user-menu[open], .lang-menu[open]').forEach(function(d) { 233 233 if (!d.contains(e.target)) d.removeAttribute('open'); … … 239 239 }); 240 240 241 // ── Live result aten tijdens typen───────────────────────────────241 // ── Live results while typing ─────────────────────────────────── 242 242 var _ST = { 243 243 posts: '<%= t('search.section_posts') %>', tracks: '<%= t('search.section_tracks') %>', … … 280 280 }, 200); 281 281 }); 282 // Klik op een suggestie → overlay sluiten (de link/boost doet de navigatie).282 // Click on a suggestion → close the overlay (the link/boost handles navigation). 283 283 document.addEventListener('click', function(e) { 284 284 if (e.target.closest && e.target.closest('#search-suggest a')) { var o = overlay(); if (o) o.hidden = true; } … … 313 313 } 314 314 315 /* Hub-home brand is WÉL zichtbaar — de thuisknop op artiest-/hub-pagina's. */315 /* Hub-home brand IS visible — the home button on artist/hub pages. */ 316 316 .masthead-brand .nav-hub-home { 317 317 display: inline-flex; align-items: center; justify-content: center; … … 436 436 min-width: 220px; 437 437 padding: .35rem; 438 /* Frosted glass: transpar ant + zware blur zodat het frosted effect duidelijk is. */438 /* Frosted glass: transparent + heavy blur so the frosted effect is clearly visible. */ 439 439 background: color-mix(in srgb, var(--paper) 60%, transparent); 440 440 backdrop-filter: blur(34px) saturate(190%); … … 565 565 .ss-all { display: block; margin-top: .35rem; padding: .55rem .6rem; border-top: 1px solid var(--rule); color: var(--accent); font-weight: 600; text-decoration: none; font-size: .9rem; } 566 566 .ss-all:hover { text-decoration: underline; } 567 /* Meldingen-bel + ongelezen-badge */567 /* Notification bell + unread badge */ 568 568 .nav-notif { position: relative; } 569 569 .notif-badge {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)