Spaces:
Running
Running
daydreamer-json
commited on
Commit
•
6c93177
1
Parent(s):
3355ab0
gi_jukebox.html webp update
Browse files- gi_jukebox.html +2 -1
gi_jukebox.html
CHANGED
@@ -200,7 +200,8 @@
|
|
200 |
document.getElementById('trackInfo_albumName').textContent = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].albumTitle;
|
201 |
document.getElementById('trackInfo_artistName').textContent = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].albumArtist;
|
202 |
document.getElementById('trackInfo_copyright').textContent = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].copyright;
|
203 |
-
document.getElementById('cover_bg').src = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].
|
|
|
204 |
if (document.getElementById('trackInfo_trackName').style.display == 'none' && document.getElementById('trackInfo_albumName').style.display == 'none' && document.getElementById('trackInfo_artistName').style.display == 'none' && document.getElementById('trackInfo_copyright').style.display == 'none' && document.getElementById('cover_bg').style.display == 'none') {
|
205 |
document.getElementById('trackInfo_trackName').style.display = 'block';
|
206 |
document.getElementById('trackInfo_albumName').style.display = 'block';
|
|
|
200 |
document.getElementById('trackInfo_albumName').textContent = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].albumTitle;
|
201 |
document.getElementById('trackInfo_artistName').textContent = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].albumArtist;
|
202 |
document.getElementById('trackInfo_copyright').textContent = FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].copyright;
|
203 |
+
document.getElementById('cover_bg').src = `${BASE_SETTINGS.audioRootURL}/${FILE_DATABASE.list[randomTrackSelectorOutput.albumIndex].rootPath}/cover.webp`;
|
204 |
+
|
205 |
if (document.getElementById('trackInfo_trackName').style.display == 'none' && document.getElementById('trackInfo_albumName').style.display == 'none' && document.getElementById('trackInfo_artistName').style.display == 'none' && document.getElementById('trackInfo_copyright').style.display == 'none' && document.getElementById('cover_bg').style.display == 'none') {
|
206 |
document.getElementById('trackInfo_trackName').style.display = 'block';
|
207 |
document.getElementById('trackInfo_albumName').style.display = 'block';
|