From c7ab30f896fc4441c364cb5b9dd1006b39899646 Mon Sep 17 00:00:00 2001 From: fingadumbledore Date: Fri, 14 Jul 2023 08:49:00 +0200 Subject: [PATCH] =?UTF-8?q?spalte=20hinzugef=C3=BCgt=20undbutton=20einefun?= =?UTF-8?q?ktiongeschenkt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- party/static/js/session.js | 15 +++++++++++++++ party/templates/session.html | 7 ++++--- 2 files changed, 19 insertions(+), 3 deletions(-) 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