From e70cbbb7128b39f3331200d6f5f00cd30badcf8e Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Fri, 5 Sep 2025 15:00:56 +0200 Subject: [PATCH] feat: implement name autosave functionality and remove set name button --- README.md | 2 +- data/years.json | 8 +++---- public/index.html | 4 +--- public/js/dom.js | 1 - public/js/ui.js | 61 +++++++++++++++++++++++++++++++++++++++++------ 5 files changed, 60 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index edb9fa8..4374189 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Dann im Browser öffnen: http://localhost:5173 ## Nutzung -- Namen setzen, Raum erstellen oder mit Code beitreten (Code wird angezeigt). +- Namen eingeben (speichert automatisch), Raum erstellen oder mit Code beitreten (Code wird angezeigt). - Host klickt „Spiel starten“. - DJ klickt „Lied scannen“; der Track spielt bei allen. - Aktiver Spieler wählt „Vor“ oder „Nach“. Bei Erfolg wandert das Lied in seine Zeitleiste. diff --git a/data/years.json b/data/years.json index 14df92d..02326c9 100644 --- a/data/years.json +++ b/data/years.json @@ -1571,8 +1571,8 @@ "mbid": "f74ddcbf-bcf6-42fd-8557-485b047cc276" }, "Rick James - Super Freak.mp3": { - "year": 1993, - "date": "1993", + "year": 1981, + "date": "1981", "title": "Super Freak", "artist": "Rick James", "mbid": "bb507204-50d1-4a76-9037-1f8f62da7ac5" @@ -1641,8 +1641,8 @@ "mbid": "71709e8c-fb6b-48c6-972a-851ecff0a60d" }, "Sam Cooke - (What A) Wonderful World  (Mono).mp3": { - "year": null, - "date": null, + "year": 1960, + "date": "1960", "title": "(What A) Wonderful World  (Mono)", "artist": "Sam Cooke", "mbid": null diff --git a/public/index.html b/public/index.html index ab696e6..df364e6 100644 --- a/public/index.html +++ b/public/index.html @@ -56,10 +56,8 @@ Dein Name + Speichert automatisch -