Fix: Startreihenfolge standings vor PGN, Tabellenplatz-Link mit Style

This commit is contained in:
2026-05-28 09:00:13 +02:00
parent 8758441f65
commit c7633f5c7f
3 changed files with 12 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ Live-Überwachung von Lara Kiesewetters Partien bei der **ODJM (Offene Deutsche
- **Zugliste** Alle Züge der aktuellen Partie mit Klick-Navigation und Pfeiltasten-Steuerung - **Zugliste** Alle Züge der aktuellen Partie mit Klick-Navigation und Pfeiltasten-Steuerung
- **Alle Partien** Übersicht aller Runden mit Lara; Klick zum Wechseln - **Alle Partien** Übersicht aller Runden mit Lara; Klick zum Wechseln
- **Live-Erkennung** Automatische Erkennung laufender (unterminierter) Partien - **Live-Erkennung** Automatische Erkennung laufender (unterminierter) Partien
- **Turniertabelle** Tabellenplatz, Punkte, Siege/Unentschieden/Niederlagen von Lara - **[Turniertabelle](https://www.deutsche-schachjugend.de/2026/odjm-d/tabelle/)** Tabellenplatz, Punkte, Siege/Unentschieden/Niederlagen von Lara
- **Auto-Refresh** Aktualisiert die Daten alle 15 Sekunden (nur aktuelle Runden) - **Auto-Refresh** Aktualisiert die Daten alle 15 Sekunden (nur aktuelle Runden)
- **Proxy-Server** Lokaler Python-Server mit Stockfish-Engine-Wrapper, PGN-Proxy und statischem File-Serving - **Proxy-Server** Lokaler Python-Server mit Stockfish-Engine-Wrapper, PGN-Proxy und statischem File-Serving

View File

@@ -100,7 +100,7 @@ async function updateStandings() {
const container = document.getElementById('standings-content'); const container = document.getElementById('standings-content');
container.innerHTML = ` container.innerHTML = `
<div class="standings-rank">${data.rank}.</div> <div class="standings-rank">${data.rank}.</div>
<div class="standings-rank-label">Tabellenplatz</div> <div class="standings-rank-label"><a href="https://www.deutsche-schachjugend.de/2026/odjm-d/tabelle/" target="_blank" rel="noopener">Tabellenplatz</a></div>
<div class="standings-header">${data.round_info || 'nach Runde 1'}</div> <div class="standings-header">${data.round_info || 'nach Runde 1'}</div>
<div class="standings-row"> <div class="standings-row">
<span class="standings-label">Punkte</span> <span class="standings-label">Punkte</span>
@@ -134,7 +134,7 @@ function updateTimestamp() {
`Letztes Update: ${time.toLocaleTimeString('de-DE')}`; `Letztes Update: ${time.toLocaleTimeString('de-DE')}`;
} }
function startAutoRefresh() { async function startAutoRefresh() {
clearInterval(pollInterval); clearInterval(pollInterval);
clearInterval(updateTimer); clearInterval(updateTimer);
clearInterval(standingsInterval); clearInterval(standingsInterval);
@@ -145,8 +145,8 @@ function startAutoRefresh() {
document.getElementById('refresh-timer').textContent = '0s'; document.getElementById('refresh-timer').textContent = '0s';
document.getElementById('refresh-timer').style.color = '#4ade80'; document.getElementById('refresh-timer').style.color = '#4ade80';
await updateStandings();
loadPGN(true); loadPGN(true);
updateStandings();
pollInterval = setInterval(() => { pollInterval = setInterval(() => {
if (pollId !== myId) { clearInterval(pollInterval); clearInterval(updateTimer); clearInterval(standingsInterval); return; } if (pollId !== myId) { clearInterval(pollInterval); clearInterval(updateTimer); clearInterval(standingsInterval); return; }

View File

@@ -336,6 +336,14 @@ header h1 {
color: #888; color: #888;
text-align: center; text-align: center;
} }
.standings-rank-label a {
color: #888;
text-decoration: none;
}
.standings-rank-label a:hover {
color: #ffd700;
text-decoration: underline;
}
.standings-header { .standings-header {
text-align: center; text-align: center;
margin-bottom: 8px; margin-bottom: 8px;