From 5ac906a56dd2dc7cf124d38e9bee744608503d40 Mon Sep 17 00:00:00 2001 From: hyperbel Date: Sun, 6 Aug 2023 11:56:22 +0200 Subject: [PATCH] replace sendData function with placeholders --- party/static/js/session.js | 17 +++-------------- party/templates/session.html | 6 +++--- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/party/static/js/session.js b/party/static/js/session.js index 4b58a19..cefae2f 100644 --- a/party/static/js/session.js +++ b/party/static/js/session.js @@ -71,17 +71,6 @@ function handleSwitchDiv(index) { } } -function sendData(endpoint) { - fetch(endpoint, { - method: 'POST', - body: JSON.stringify(true) - }) - .then(response => { - if (!response.ok) { - throw new Error('Fehler beim Senden der Daten.'); - } - }) - .catch(error => { - alert(error.message); - }); - } +function skipSong() {} +function lastSong() {} +function pausePlaySong() {} diff --git a/party/templates/session.html b/party/templates/session.html index aaf956d..c164560 100644 --- a/party/templates/session.html +++ b/party/templates/session.html @@ -29,9 +29,9 @@

Peter

Song:

-
-
-
+
+
+