Add sun/moon emojis to sunrise/sunset and fix direction sorting (direction 1 always on top)
This commit is contained in:
@@ -370,7 +370,7 @@ class WeatherManager {
|
||||
if (sunTimesElement && this.sunTimes) {
|
||||
const sunriseTime = this.formatTime(this.sunTimes.today.sunrise);
|
||||
const sunsetTime = this.formatTime(this.sunTimes.today.sunset);
|
||||
sunTimesElement.textContent = `Sunrise: ${sunriseTime} | Sunset: ${sunsetTime}`;
|
||||
sunTimesElement.textContent = `☀️ Sunrise: ${sunriseTime} | 🌙 Sunset: ${sunsetTime}`;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error updating weather UI:', error);
|
||||
|
||||
Reference in New Issue
Block a user