From 9b87f7b41a9cc7874141eb52b2d75aba33db6def Mon Sep 17 00:00:00 2001 From: Dogfather Date: Tue, 3 Nov 2026 19:26:34 +0100 Subject: [PATCH] Faehrte: eine Pfote je Abdruck statt fest sieben Neben "0 / 5" standen immer sieben Pfoten (Anteil wie im Entwurf). Bis zehn Abdruecke steht jetzt genau eine Pfote je Abdruck, darueber zeigen zehn Pfoten den Anteil (data-art=anteil). pruef-dogtag-buehne zaehlt die Pfoten im Bild; Gegenprobe mit den alten sieben: 3 rot. Seitenstempel 202611031926. Co-Authored-By: Claude Opus 5.5 --- server/pruef-dogtag-buehne.mjs | 21 ++++++++++ workspace/anleitung.html | 28 ++++++------- workspace/anruf-probe.html | 10 ++--- workspace/app.webmanifest | 8 ++-- workspace/assets/js/dogtag-buehne.js | 25 +++++++++-- workspace/aufgaben.html | 38 ++++++++--------- workspace/automation.html | 32 +++++++------- workspace/befinden.html | 34 +++++++-------- workspace/bereich.html | 48 ++++++++++----------- workspace/bewerben.html | 38 ++++++++--------- workspace/bewerbungen.html | 36 ++++++++-------- workspace/buehne.html | 6 +-- workspace/calls.html | 34 +++++++-------- workspace/chat.html | 48 ++++++++++----------- workspace/content.html | 34 +++++++-------- workspace/crew-index.html | 12 +++--- workspace/crew.webmanifest | 8 ++-- workspace/dateien.html | 34 +++++++-------- workspace/dogtags.html | 38 ++++++++--------- workspace/entwicklung.html | 36 ++++++++-------- workspace/hilfe.html | 30 +++++++------- workspace/index.html | 10 ++--- workspace/kalender.html | 34 +++++++-------- workspace/leistung.html | 32 +++++++------- workspace/manager-ziele.html | 30 +++++++------- workspace/material.html | 32 +++++++------- workspace/notizen.html | 28 ++++++------- workspace/personen.html | 32 +++++++------- workspace/profil.html | 36 ++++++++-------- workspace/reaktion-foyer.html | 34 +++++++-------- workspace/reaktion.html | 62 ++++++++++++++-------------- workspace/rechte.html | 34 +++++++-------- workspace/report.html | 36 ++++++++-------- workspace/scouting.html | 32 +++++++------- workspace/start.html | 40 +++++++++--------- workspace/startcheck.html | 34 +++++++-------- workspace/steckbrief.html | 36 ++++++++-------- workspace/support.html | 32 +++++++------- workspace/tafel.html | 10 ++--- workspace/talente.html | 36 ++++++++-------- workspace/team.html | 32 +++++++------- workspace/teamlage.html | 34 +++++++-------- workspace/teilen.html | 30 +++++++------- workspace/treff-moderation.html | 32 +++++++------- workspace/treff-regeln.html | 32 +++++++------- workspace/uebersicht.html | 32 +++++++------- workspace/unsere-seiten.html | 30 +++++++------- workspace/unterstuetzen.html | 32 +++++++------- workspace/werdegang.html | 32 +++++++------- workspace/willkommen.html | 2 +- workspace/wissen.html | 34 +++++++-------- 51 files changed, 789 insertions(+), 751 deletions(-) diff --git a/server/pruef-dogtag-buehne.mjs b/server/pruef-dogtag-buehne.mjs index 954d755a..6c7d1814 100644 --- a/server/pruef-dogtag-buehne.mjs +++ b/server/pruef-dogtag-buehne.mjs @@ -185,6 +185,27 @@ ok(abdruck, "ein Pfotenabdruck fliegt, „Luna heult mit“ steht unten"); await zu.seite.waitForFunction(() => document.getElementById("dtb-faehrte")?.textContent.includes("1 / 6"), null, { timeout: 5000 }).catch(() => {}); ok((await lage(zu.seite)).text.includes("1 / 6"), "die Fährte zählt mit (1 / 6)"); +/* PFOTEN = ZAHL (03.11.2026). Vorher standen fest sieben Pfoten neben + „0 / 5“ – Filipe: „da steht 0/5 aber sind mehr wie 5 kreise“. Gezählt + wird im Bild, nicht im Quelltext: Wie viele Pfoten stehen da, wie + viele leuchten, und passt das zur Zahl daneben? */ +const pfotenZaehlen = (seite) => seite.evaluate(() => { + const ps = [...document.querySelectorAll("#dtb-faehrte .dtb-pfote")]; + return { n: ps.length, hell: ps.filter((p) => p.dataset.hell === "ja").length, + art: document.querySelector("#dtb-faehrte .dtb-faehrte__pfoten")?.dataset.art || "", + text: document.getElementById("dtb-faehrte")?.textContent || "" }; +}); +let P = await pfotenZaehlen(zu.seite); +ok(P.n === 6 && P.hell === 1 && P.art === "einzeln", `bei „1 / 6“ stehen 6 Pfoten, 1 leuchtet (${P.n} Pfoten, ${P.hell} hell, ${P.art})`); +a = await api("admin", "/workspace/api/dogtag/faehrte", { laenge: 40 }); +await zu.seite.waitForFunction(() => document.getElementById("dtb-faehrte")?.textContent.includes("1 / 40"), null, { timeout: 5000 }).catch(() => {}); +P = await pfotenZaehlen(zu.seite); +ok(P.text.includes("1 / 40") && P.n === 10 && P.hell === 0 && P.art === "anteil", + `bei „1 / 40“ zeigen 10 Pfoten den Anteil (${P.n} Pfoten, ${P.hell} hell, ${P.art})`); +a = await api("admin", "/workspace/api/dogtag/faehrte", { laenge: 6 }); +await zu.seite.waitForFunction(() => document.getElementById("dtb-faehrte")?.textContent.includes("1 / 6"), null, { timeout: 5000 }).catch(() => {}); +ok((await pfotenZaehlen(zu.seite)).n === 6, "zurück auf 6: wieder 6 Pfoten"); + melde("\n=== Ein Jäger heult — nicht in den HUD-Ecken ==="); await zu.seite.waitForFunction(() => !document.querySelector(".dtb-buehne > *"), null, { timeout: 8000 }).catch(() => {}); a = await api("g2", "/workspace/api/dogtag/heulen", {}); diff --git a/workspace/anleitung.html b/workspace/anleitung.html index 772fb505..c25c69a6 100644 --- a/workspace/anleitung.html +++ b/workspace/anleitung.html @@ -7,17 +7,17 @@ - - - - - + + + + + - - + + @@ -289,16 +289,16 @@ Und anleitung.js braucht es doppelt: Symbol, Farbe, Name und Adresse jeder Karte kommen von dort, nicht vom Server. --> - + - - - - - - + + + + + + diff --git a/workspace/anruf-probe.html b/workspace/anruf-probe.html index 2265e35a..34c172d7 100644 --- a/workspace/anruf-probe.html +++ b/workspace/anruf-probe.html @@ -16,8 +16,8 @@ verdeckt. Gefunden hat es pruef-struktur. Richtig sind `gate.css` (die Farbwerte des Hauses) und `haus.css`. --> - - + + - +