diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-02-11 19:50:48 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-02-11 19:50:48 +0100 |
commit | 6ff8efacb38e3399680d8593d7c1e5b29c3f73ba (patch) | |
tree | dc3b3ceb2764bcf70643b1001ff84b03dc0ad418 | |
parent | 0b80dd9da688d9d8d4393cfa31b341c718265179 (diff) |
Adjust icons: make them consistent
-rw-r--r-- | js/index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/index.js b/js/index.js index 459a22c..1244a18 100644 --- a/js/index.js +++ b/js/index.js @@ -23,7 +23,7 @@ const WEATHERS = [ // We can use some symbols from here: // https://www.alt-codes.net/weather-symbols.php const WEATHER2ICON = { - CLEAR_SKY: "☀", + CLEAR_SKY: "🌣", MAINLY_CLEAR: "🌤", FOG: "🌫", DRIZZLE: "🌦", @@ -33,9 +33,9 @@ const WEATHER2ICON = { SNOW_FALL: "🌨", SNOW_GRAINS: "🌨", RAIN_SHOWERS: "🌧", - SNOW_SHOWERS: "⛇", - THUNDERSTORM: "⛈", - THUNDERSTORM_HAIL: "⛈", + SNOW_SHOWERS: "🌨", + THUNDERSTORM: "🌩", + THUNDERSTORM_HAIL: "🌩", }; const WMO_CONVERTER = { 0: "CLEAR_SKY", @@ -95,8 +95,8 @@ function Day(date, t_max, t_min, weather){ <h2><time datetime="${this.date}">${(new Date(this.date)).toLocaleDateString(undefined, DATE_FORMAT)}</h2> <p>${this.weather_desc}</p> <ul> - <li>max: ${this.t_max}°c</li> - <li>min: ${this.t_min}°c</li> + <li>🌡<sub>max</sub> ${this.t_max}°C</li> + <li>🌡<sub>min</sub> ${this.t_min}°C</li> </ul> </div> <span class="day-forecast-image" title="${this.weather_desc}">${WEATHER2ICON[this.weather]}</span>`; |