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);
| Komet | -Typ | -RA | -Dec | -Perihel | -Abstand | -m grob | +Komet | +Typ | +RA | +Dec | +Perihel | +Abstand | +m grob |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -634,11 +659,11 @@ arsort($orbitTypeCounts); | = h((string) $comet['orbit_type_label']) ?> | -= h((string) $comet['ra_display']) ?> | -= h((string) $comet['dec_display']) ?> | -= h((string) $comet['perihelion_date_display']) ?> | -= h($daysLabel) ?> | -= h((string) $comet['estimated_magnitude_display']) ?> | += h((string) $comet['ra_display']) ?> | += h((string) $comet['dec_display']) ?> | += h((string) $comet['perihelion_date_display']) ?> | += h($daysLabel) ?> | += h((string) $comet['estimated_magnitude_display']) ?> |
| Komet | -Typ | -RA | -Dec | -Perihel | -Abstand | -m grob | +Komet | +Typ | +RA | +Dec | +Perihel | +Abstand | +m grob |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -691,11 +717,11 @@ arsort($orbitTypeCounts); | = h((string) $comet['orbit_type_label']) ?> | -= h((string) $comet['ra_display']) ?> | -= h((string) $comet['dec_display']) ?> | -= h((string) $comet['perihelion_date_display']) ?> | -= h($daysLabel) ?> | -= h((string) $comet['estimated_magnitude_display']) ?> | += h((string) $comet['ra_display']) ?> | += h((string) $comet['dec_display']) ?> | += h((string) $comet['perihelion_date_display']) ?> | += h($daysLabel) ?> | += h((string) $comet['estimated_magnitude_display']) ?> |