From fb75b180e2e82bc4f78726af3032ebf77be65c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 15 Jul 2026 08:39:55 +0200 Subject: [PATCH] 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 --- public/sonnenfinsternis.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/sonnenfinsternis.php b/public/sonnenfinsternis.php index cdff16c..264e145 100644 --- a/public/sonnenfinsternis.php +++ b/public/sonnenfinsternis.php @@ -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)); } }