summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-02-11 19:50:48 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-02-11 19:50:48 +0100
commit6ff8efacb38e3399680d8593d7c1e5b29c3f73ba (patch)
treedc3b3ceb2764bcf70643b1001ff84b03dc0ad418 /js
parent0b80dd9da688d9d8d4393cfa31b341c718265179 (diff)
Adjust icons: make them consistent
Diffstat (limited to 'js')
-rw-r--r--js/index.js12
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: "&#x2600;",
+ CLEAR_SKY: "&#x1F323;",
MAINLY_CLEAR: "&#x1F324;",
FOG: "&#x1F32B;",
DRIZZLE: "&#x1F326;",
@@ -33,9 +33,9 @@ const WEATHER2ICON = {
SNOW_FALL: "&#x1F328;",
SNOW_GRAINS: "&#x1F328;",
RAIN_SHOWERS: "&#x1F327;",
- SNOW_SHOWERS: "&#x26C7;",
- THUNDERSTORM: "&#x26C8;",
- THUNDERSTORM_HAIL: "&#x26C8;",
+ SNOW_SHOWERS: "&#x1F328;",
+ THUNDERSTORM: "&#x1F329;",
+ THUNDERSTORM_HAIL: "&#x1F329",
};
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}&deg;c</li>
- <li>min: ${this.t_min}&deg;c</li>
+ <li>&#x1F321;<sub>max</sub> ${this.t_max}&deg;C</li>
+ <li>&#x1F321;<sub>min</sub> ${this.t_min}&deg;C</li>
</ul>
</div>
<span class="day-forecast-image" title="${this.weather_desc}">${WEATHER2ICON[this.weather]}</span>`;