aboutsummaryrefslogtreecommitdiff
path: root/web/client.html
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2022-08-01 22:12:55 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2022-08-01 22:12:55 +0200
commit2b166cfb3bfb6eebd928564210330596bf1de45f (patch)
tree79a65fa4730a2fcbb6ca67ac6e2b089234ee66c4 /web/client.html
parent0f3042443c704df463f2c3bfb26190fc52ffa8aa (diff)
downloadWRMS-2b166cfb3bfb6eebd928564210330596bf1de45f.tar.gz
WRMS-2b166cfb3bfb6eebd928564210330596bf1de45f.zip
only display the song weight in the playlist
Diffstat (limited to 'web/client.html')
-rw-r--r--web/client.html7
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);
}