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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user