diff --git a/public/comets.php b/public/comets.php index eae13a6..ca1820e 100644 --- a/public/comets.php +++ b/public/comets.php @@ -479,6 +479,30 @@ arsort($orbitTypeCounts); letter-spacing: 0.08em; } +.comets-table th[data-sortable] { + cursor: pointer; + user-select: none; + white-space: nowrap; +} + +.comets-table th[data-sortable]::after { + content: ' ⇅'; + opacity: 0.35; + font-size: 0.78em; +} + +.comets-table th[data-sortable][data-sort-dir="asc"]::after { + content: ' ↑'; + opacity: 1; + color: #c9a84c; +} + +.comets-table th[data-sortable][data-sort-dir="desc"]::after { + content: ' ↓'; + opacity: 1; + color: #c9a84c; +} + .comets-table td { color: #eef4ff; } @@ -601,13 +625,13 @@ arsort($orbitTypeCounts); - - - - - - - + + + + + + + @@ -619,6 +643,7 @@ arsort($orbitTypeCounts); : ((int) $comet['days_from_today'] === 0 ? 'Heute' : (((int) $comet['days_from_today'] > 0 ? '+' : '') . (int) $comet['days_from_today'] . ' Tage')); + $perihelionTs = $comet['perihelion_date_object'] instanceof DateTimeImmutable ? $comet['perihelion_date_object']->getTimestamp() : ''; ?> - - - - - + + + + + @@ -657,13 +682,13 @@ arsort($orbitTypeCounts);
KometTypRADecPerihelAbstandm grobKometTypRADecPerihelAbstandm grob
@@ -634,11 +659,11 @@ arsort($orbitTypeCounts);
- - - - - - - + + + + + + + @@ -675,6 +700,7 @@ arsort($orbitTypeCounts); : ((int) $comet['days_from_today'] === 0 ? 'Heute' : (((int) $comet['days_from_today'] > 0 ? '+' : '') . (int) $comet['days_from_today'] . ' Tage')); + $perihelionTs = $comet['perihelion_date_object'] instanceof DateTimeImmutable ? $comet['perihelion_date_object']->getTimestamp() : ''; ?> - - - - - + + + + + @@ -705,4 +731,46 @@ arsort($orbitTypeCounts); + +
KometTypRADecPerihelAbstandm grobKometTypRADecPerihelAbstandm grob
@@ -691,11 +717,11 @@ arsort($orbitTypeCounts);