aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2022-07-26 21:37:24 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2022-07-26 21:37:24 +0200
commit7e15ad1d8af4ee27f6c1d31e7b1608e2d751c402 (patch)
tree157a86cd3597d51b3fe72e73bd4e782bda07b2d0 /web
parent8171af55daad6ce9a5cdacf95527801e83f25c08 (diff)
downloadWRMS-7e15ad1d8af4ee27f6c1d31e7b1608e2d751c402.tar.gz
WRMS-7e15ad1d8af4ee27f6c1d31e7b1608e2d751c402.zip
intermediate commit
* use mpv to play songs * fix CurrentSong being a pointer to a changing slot in the playlist array * wire up play and pause * continue playing after a song is finished
Diffstat (limited to 'web')
-rw-r--r--web/client.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/client.html b/web/client.html
index 38e1652..ba57839 100644
--- a/web/client.html
+++ b/web/client.html
@@ -15,6 +15,10 @@
.vote.on {
color: #f48024
}
+
+ .searchResult:hover {
+ background-color: #999;
+ }
</style>
<script>
@@ -228,6 +232,8 @@
searchResultsOverlay.style.display = "none";
});
+ listItem.classList.add("searchResult")
+
let searchResultLabel = document.createTextNode(song.artist + " - " + song.title);
listItem.appendChild(searchResultLabel);
@@ -240,7 +246,7 @@
window.onload = function() {
document.getElementById("ppbutton").addEventListener("click", function() {
- new HttpClient().get("/playpause", showSearchResults);
+ new HttpClient().get("/playpause", console.log);
});
}
</script>