diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-08-01 22:12:55 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-08-01 22:12:55 +0200 |
| commit | 2b166cfb3bfb6eebd928564210330596bf1de45f (patch) | |
| tree | 79a65fa4730a2fcbb6ca67ac6e2b089234ee66c4 | |
| parent | 0f3042443c704df463f2c3bfb26190fc52ffa8aa (diff) | |
| download | WRMS-2b166cfb3bfb6eebd928564210330596bf1de45f.tar.gz WRMS-2b166cfb3bfb6eebd928564210330596bf1de45f.zip | |
only display the song weight in the playlist
| -rw-r--r-- | web/client.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/client.html b/web/client.html index 2ca1f0d..9998940 100644 --- a/web/client.html +++ b/web/client.html @@ -77,10 +77,9 @@ let votes = new Map(); function formatSong(song) { - let s = song.weight + ' ' if (song.artist) - return s + song.artist + ' - ' + song.title - return s + song.title + return song.artist + ' - ' + song.title + return song.title } function renderPlaylist() { @@ -138,7 +137,7 @@ listItem.appendChild(upvoteBtn); listItem.appendChild(downvoteBtn); - const itemValue = document.createTextNode(formatSong(song)); + const itemValue = document.createTextNode(song.weight + ' ' + formatSong(song)); listItem.appendChild(itemValue); playlist.appendChild(listItem); } |
