Compare commits
No commits in common. "79430649e93d50eaf2fa117f84303a2128dede99" and "c3a9df080ee99785675ee5f1be769cab3cbaa05d" have entirely different histories.
79430649e9
...
c3a9df080e
3 changed files with 4 additions and 77 deletions
|
|
@ -767,52 +767,7 @@ button {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
/* Music lightbox lyrics - below controls */
|
|
||||||
.music-lightbox-lyrics {
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
padding: 1.2rem 1.5rem;
|
|
||||||
background: rgba(0, 0, 0, 0.4);
|
|
||||||
border: 1px solid var(--accent-yellow);
|
|
||||||
border-radius: 0 8px 8px 0;
|
|
||||||
color: rgba(255, 255, 255, 0.85);
|
|
||||||
font-family: 'Poppins', sans-serif;
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
line-height: 1.8;
|
|
||||||
max-height: 200px;
|
|
||||||
overflow-y: auto;
|
|
||||||
text-align: left;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 500px;
|
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
-webkit-backdrop-filter: blur(10px);
|
|
||||||
scrollbar-width: thin;
|
|
||||||
scrollbar-color: var(--accent-yellow) rgba(255, 255, 255, 0.1);
|
|
||||||
box-shadow: 0 10px 40px #ffd7005c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-lightbox-lyrics::-webkit-scrollbar {
|
|
||||||
width: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-lightbox-lyrics::-webkit-scrollbar-track {
|
|
||||||
background: rgba(255, 255, 255, 0.1);
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-lightbox-lyrics::-webkit-scrollbar-thumb {
|
|
||||||
background: var(--accent-yellow);
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-lightbox-lyrics p {
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.music-lightbox-lyrics br {
|
|
||||||
display: block;
|
|
||||||
margin: 0.2rem 0;
|
|
||||||
}
|
|
||||||
/* Photo Grid - KEEP SKEW ON CARDS */
|
/* Photo Grid - KEEP SKEW ON CARDS */
|
||||||
.photo-grid {
|
.photo-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
||||||
|
|
@ -592,8 +592,6 @@ function openMusicLightbox(index) {
|
||||||
const progressFill = document.getElementById('musicLightboxProgressFill');
|
const progressFill = document.getElementById('musicLightboxProgressFill');
|
||||||
const playBtn2 = document.getElementById('musicLightboxPlayBtn2');
|
const playBtn2 = document.getElementById('musicLightboxPlayBtn2');
|
||||||
const playIcon2 = document.getElementById('musicPlayIcon2');
|
const playIcon2 = document.getElementById('musicPlayIcon2');
|
||||||
// Get the lyrics element
|
|
||||||
const lyricsDisplay = document.getElementById('musicLightboxLyrics');
|
|
||||||
|
|
||||||
// Set album art
|
// Set album art
|
||||||
const artUrl = track.image || '/images/default-album.jpg';
|
const artUrl = track.image || '/images/default-album.jpg';
|
||||||
|
|
@ -605,38 +603,13 @@ function openMusicLightbox(index) {
|
||||||
artist.textContent = track.artist || 'Unknown Artist';
|
artist.textContent = track.artist || 'Unknown Artist';
|
||||||
album.textContent = track.album || '';
|
album.textContent = track.album || '';
|
||||||
|
|
||||||
// Set lyrics - find the original track data to get content
|
|
||||||
let lyricsContent = '';
|
|
||||||
// Find the original track data
|
|
||||||
const originalTrack = window.allMusicData ? window.allMusicData.find(t => {
|
|
||||||
let url = '';
|
|
||||||
if (t.tags) {
|
|
||||||
t.tags.forEach(tag => {
|
|
||||||
if (tag[0] === 'url') url = tag[1];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return url === track.url;
|
|
||||||
}) : null;
|
|
||||||
|
|
||||||
if (originalTrack && originalTrack.content) {
|
|
||||||
lyricsContent = originalTrack.content;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Display lyrics if they exist
|
|
||||||
if (lyricsContent) {
|
|
||||||
lyricsDisplay.innerHTML = lyricsContent.replace(/\n/g, '<br>');
|
|
||||||
lyricsDisplay.style.display = 'block';
|
|
||||||
} else {
|
|
||||||
lyricsDisplay.style.display = 'none';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset progress
|
// Reset progress
|
||||||
progressFill.style.width = '0%';
|
progressFill.style.width = '0%';
|
||||||
currentTimeDisplay.textContent = '0:00';
|
currentTimeDisplay.textContent = '0:00';
|
||||||
durationDisplay.textContent = track.duration ? formatTime(track.duration) : '0:00';
|
durationDisplay.textContent = track.duration ? formatTime(track.duration) : '0:00';
|
||||||
|
|
||||||
// Set play buttons to play state
|
// Set play buttons to play state
|
||||||
playIcon2.textContent = '▶';
|
playIcon2.textContent = '▶️';
|
||||||
|
|
||||||
// Create audio player
|
// Create audio player
|
||||||
musicPlayer = new Audio(track.url);
|
musicPlayer = new Audio(track.url);
|
||||||
|
|
|
||||||
|
|
@ -61,10 +61,13 @@
|
||||||
<img id="musicLightboxImage" src="" alt="Album art">
|
<img id="musicLightboxImage" src="" alt="Album art">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- In the info section -->
|
||||||
<div class="music-lightbox-info">
|
<div class="music-lightbox-info">
|
||||||
<h2 id="musicLightboxTitle">Title</h2>
|
<h2 id="musicLightboxTitle">Title</h2>
|
||||||
<p class="music-lightbox-artist" id="musicLightboxArtist">Artist</p>
|
<p class="music-lightbox-artist" id="musicLightboxArtist">Artist</p>
|
||||||
<p class="music-lightbox-album-name" id="musicLightboxAlbum">Album</p>
|
<p class="music-lightbox-album-name" id="musicLightboxAlbum">Album</p>
|
||||||
|
<!-- ... rest ... -->
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="music-lightbox-progress">
|
<div class="music-lightbox-progress">
|
||||||
<span class="music-lightbox-time" id="musicLightboxCurrentTime">0:00</span>
|
<span class="music-lightbox-time" id="musicLightboxCurrentTime">0:00</span>
|
||||||
|
|
@ -81,14 +84,10 @@
|
||||||
</button>
|
</button>
|
||||||
<button class="music-lightbox-control-btn" id="musicLightboxNext">⏭</button>
|
<button class="music-lightbox-control-btn" id="musicLightboxNext">⏭</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Lyrics moved here - below the controls -->
|
|
||||||
<div class="music-lightbox-lyrics" id="musicLightboxLyrics" style="display: none;"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{ $js := resources.Get "js/scripts.js" | resources.Minify | fingerprint }}
|
{{ $js := resources.Get "js/scripts.js" | resources.Minify | fingerprint }}
|
||||||
<script src="{{ $js.RelPermalink }}"></script>
|
<script src="{{ $js.RelPermalink }}"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue