From a14ffdfc999abd76c2d9937e778c932a457be08f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 21 Jul 2022 01:49:24 +0200 Subject: start implementing song search --- web/client.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/client.html b/web/client.html index d7f8db2..8e3faab 100644 --- a/web/client.html +++ b/web/client.html @@ -190,6 +190,13 @@ console.log("Socket Error: ", error); }; + function submitSearch() { + const form = new FormData(document.getElementById("searchForm")); + const pattern = new URLSearchParams(form).toString(); + new HttpClient().get("/search?" + pattern, console.log); + return false; + } + window.onload = function() { document.getElementById("ppbutton").addEventListener("click", function() { new HttpClient().get("/playpause", console.log); @@ -199,10 +206,18 @@ +

Add your song

+
+
+ + +
+
+

Playing

- +

Playlist

-- cgit v1.2.3