From 355bf84ec78e56b750ef4971e0f81798e3299dad Mon Sep 17 00:00:00 2001 From: rapaf Date: Fri, 18 Sep 2026 19:50:48 +0200 Subject: [PATCH] Usun kafelek statusu bazy Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- app.js | 7 +------ index.html | 11 +---------- wersja1/app.js | 7 +------ wersja1/index.html | 11 +---------- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/app.js b/app.js index c62b4f5..08e66ad 100644 --- a/app.js +++ b/app.js @@ -132,10 +132,6 @@ function render() { } function setLoaded(rows, source) { state.rows = rows; - $("#statusDot").classList.add("ready"); - $("#statusTitle").textContent = "Baza załadowana"; - $("#statusText").textContent = source; - $("#stats").textContent = `${rows.length} rekordów · ${new Set(rows.map((row) => row.model)).size} modeli`; render(); renderSuggestions(); } @@ -145,8 +141,7 @@ async function loadDefault() { if (!response.ok) throw new Error(`HTTP ${response.status}`); setLoaded(parseCsv(await response.text()), "Źródło: atut_baza.csv"); } catch (error) { - $("#statusTitle").textContent = "Nie udało się wczytać CSV"; - $("#statusText").textContent = "Uruchom aplikację przez lokalny serwer, aby wczytać bazę danych."; + $("#results").innerHTML = `
Nie udało się wczytać bazy danych. Uruchom aplikację przez lokalny serwer.
`; } } document.querySelectorAll(".tab").forEach((tab) => tab.addEventListener("click", () => { diff --git a/index.html b/index.html index 34be43e..21ab379 100644 --- a/index.html +++ b/index.html @@ -16,15 +16,6 @@ -
-
-
- Wczytywanie bazy… - Przygotowuję dane z pliku atut_baza.csv -
-
-
-