Changeset 834bcc3 in Klonkt for src/views/partials/bottom-tab.ejs
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/views/partials/bottom-tab.ejs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/bottom-tab.ejs
rbb42dfb r834bcc3 15 15 const _ownProfile = user ? ('/users/' + user.username) : null; 16 16 const _isHub = (typeof tenancy !== 'undefined' && tenancy === 'hub'); 17 // Home gaat in hub-modus ALTIJD naar de hub-root (/), niet naar de sub-home van18 // een artiest. In solo/circle is _siteUrlBase leeg, dus dat blijft'/'.17 // Home in hub mode ALWAYS goes to the hub root (/), not to an artist's sub-home. 18 // In solo/circle _siteUrlBase is empty, so it stays '/'. 19 19 const _homeHref = (_isHub ? '' : _siteUrlBase) + '/'; 20 20 … … 27 27 28 28 let _active = null; 29 // In hub is Home alleen actief op de échte hub-root, niet op een artiest-sub-home.29 // In hub, Home is only active on the real hub root, not on an artist sub-home. 30 30 if (_isHub ? (_path === '/') : (_p === '/' || _p === '')) _active = 'home'; 31 31 else if (_p.indexOf('/search') === 0 || _p.indexOf('/tag/') === 0 || _p.indexOf('/type/') === 0) _active = 'search'; … … 38 38 39 39 <!-- Home --> 40 <%# htmx -navigatie (geen full reload): de persistente audioplayer in document.body41 overleeft dan, dus de muziek verspringt niet bij het navigeren. Op mobiel is de42 top-balk toch verborgen, dus een context-reset via full-load is hier niet nodig. %>40 <%# htmx navigation (no full reload): the persistent audio player in document.body 41 survives, so music does not skip when navigating. On mobile the top bar is hidden 42 anyway, so a context reset via full-load is not needed here. %> 43 43 <a class="bottom-tab-item<%= _active === 'home' ? ' is-active' : '' %>" 44 44 href="<%= _homeHref %>" … … 308 308 309 309 <script> 310 // Bottom-tab zoekknop → opent #search-overlay. Via event-delegatie + de overlay311 // ELKE klik opnieuw opzoeken: de overlay zit in de chrome die bij htmx-navigatie312 // OOB vervangen wordt, dus een één-keer-opgevangen referentie verschaalt313 // ( knop deed daarna niets). Guard tegen dubbel-wiren.310 // Bottom-tab search button → opens #search-overlay. Using event delegation + looking 311 // up the overlay on EVERY click: the overlay lives in the chrome that is OOB-replaced 312 // during htmx navigation, so a once-captured reference goes stale 313 // (button did nothing afterwards). Guard against double-wiring. 314 314 (function() { 315 315 if (window.__btSearchWired) return;
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)