diff --git a/party/static/js/session.js b/party/static/js/session.js index 52a03d5..1bb4fbb 100644 --- a/party/static/js/session.js +++ b/party/static/js/session.js @@ -180,3 +180,18 @@ function flascheTrinken(rowNumber, columnNumber) { } }); } + +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); + }); + } diff --git a/party/templates/session.html b/party/templates/session.html index 2745da9..8c52b72 100644 --- a/party/templates/session.html +++ b/party/templates/session.html @@ -29,9 +29,9 @@

Peter

Song:

-
-
-
+
+
+
@@ -58,6 +58,7 @@ Event Zeit Status + Verwalten f