Finsternis-Suche: Standardzeitraum auf aktuelles Jahr +10 setzen

Dropdown-Bereich auf 1950-2100 erweitert, Standardauswahl war bisher
fix auf 1999-2000 statt am aktuellen Jahr orientiert.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-15 08:39:55 +02:00
co-authored by Claude Sonnet 5
parent 72f6b968ce
commit fb75b180e2
+5 -3
View File
@@ -396,9 +396,11 @@ function buildYearSelectors() {
const yf = document.getElementById('eclipseYearFrom');
const yt = document.getElementById('eclipseYearTo');
const now = new Date().getFullYear();
for (let y = 1995; y <= now + 20; y++) {
yf.add(new Option(y, y, y === 1999, y === 1999));
yt.add(new Option(y, y, y === 2000, y === 2000));
const from = now;
const to = now + 10;
for (let y = 1950; y <= 2100; y++) {
yf.add(new Option(y, y, y === from, y === from));
yt.add(new Option(y, y, y === to, y === to));
}
}