- Timestamp:
- 06/20/2026 02:17:12 AM (3 months ago)
- Branches:
- main
- Children:
- 795c925
- Parents:
- ddf549f
- Location:
- src
- Files:
-
- 3 edited
-
assets/css/style.css (modified) (1 diff)
-
assets/js/audio-player.js (modified) (2 diffs)
-
views/shell.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/css/style.css
rddf549f r5258945 2824 2824 .post-album-track-compact.pat-flash { 2825 2825 animation: patFlash 1.6s ease-out; 2826 border-radius: 8px; 2827 } 2828 /* Blijvende highlight op de track die NU actief is in de speler. */ 2829 .post-audio-track.pat-playing, 2830 .post-album-track-compact.pat-playing { 2831 background: color-mix(in srgb, var(--accent, #c2410c) 12%, var(--paper-2, transparent)); 2832 box-shadow: inset 3px 0 0 0 var(--accent, #c2410c); 2826 2833 border-radius: 8px; 2827 2834 } -
src/assets/js/audio-player.js
rddf549f r5258945 276 276 // Used by the site pre-seed so opening a page doesn't auto-download audio; 277 277 // the blob is fetched lazily on the first play(). 278 // Markeer de huidige track persistent (blijvende highlight zolang 'ie actief is). 279 function markPlaying(trackId) { 280 document.querySelectorAll('.pat-playing').forEach((e) => e.classList.remove('pat-playing')); 281 if (!trackId) return; 282 const el = document.getElementById('track-' + trackId); 283 if (el) el.classList.add('pat-playing'); 284 } 285 // Na een htmx-navigatie is de post-DOM vervangen → highlight opnieuw zetten. 286 document.body.addEventListener('htmx:afterSettle', () => { 287 const t = queue[currentIndex]; 288 if (t) markPlaying(t.id); 289 }); 290 278 291 function loadTrack(index, autoplay, metaOnly) { 279 292 if (!queue[index]) { … … 300 313 document.body.classList.add('has-audio-player'); 301 314 renderQueue(); 315 markPlaying(t.id); 302 316 303 317 if (metaOnly) return; -
src/views/shell.ejs
rddf549f r5258945 163 163 164 164 <!-- v9 stylesheet (full palette system) --> 165 <link rel="stylesheet" href="/assets/css/style.css?v=1 7">165 <link rel="stylesheet" href="/assets/css/style.css?v=18"> 166 166 167 167 <!-- Audio player styles: loaded on every page so the mini-player works … … 300 300 ?v=N — cache-buster: bump bij elke audio-player.js wijziging zodat 301 301 Cloudflare (max-age=1y) niet de oude versie blijft serveren. --> 302 <script src="/assets/js/audio-player.js?v=1 8"></script>302 <script src="/assets/js/audio-player.js?v=19"></script> 303 303 <!-- Eigen custom media-embeds (YouTube/SoundCloud/Spotify) via de echte 304 304 player-API's + gedeelde mutual-exclusion registry met de site-speler. -->
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)