Fix: Startreihenfolge standings vor PGN, Tabellenplatz-Link mit Style
This commit is contained in:
@@ -100,7 +100,7 @@ async function updateStandings() {
|
||||
const container = document.getElementById('standings-content');
|
||||
container.innerHTML = `
|
||||
<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-row">
|
||||
<span class="standings-label">Punkte</span>
|
||||
@@ -134,7 +134,7 @@ function updateTimestamp() {
|
||||
`Letztes Update: ${time.toLocaleTimeString('de-DE')}`;
|
||||
}
|
||||
|
||||
function startAutoRefresh() {
|
||||
async function startAutoRefresh() {
|
||||
clearInterval(pollInterval);
|
||||
clearInterval(updateTimer);
|
||||
clearInterval(standingsInterval);
|
||||
@@ -145,8 +145,8 @@ function startAutoRefresh() {
|
||||
document.getElementById('refresh-timer').textContent = '0s';
|
||||
document.getElementById('refresh-timer').style.color = '#4ade80';
|
||||
|
||||
await updateStandings();
|
||||
loadPGN(true);
|
||||
updateStandings();
|
||||
|
||||
pollInterval = setInterval(() => {
|
||||
if (pollId !== myId) { clearInterval(pollInterval); clearInterval(updateTimer); clearInterval(standingsInterval); return; }
|
||||
|
||||
Reference in New Issue
Block a user