summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-12 23:14:56 -0700
committerFuwn <[email protected]>2023-09-12 23:14:56 -0700
commita6e65a75ea88230cffaf2732dbb80231f5ac13fe (patch)
treeb2cbfea7f45e9c39042abdc4bd192d6478ae002b
parentfeat(js): more jp (diff)
downloadstartpage-a6e65a75ea88230cffaf2732dbb80231f5ac13fe.tar.xz
startpage-a6e65a75ea88230cffaf2732dbb80231f5ac13fe.zip
feat(js): more jp conditions
-rw-r--r--index.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/index.js b/index.js
index e95c155..3265e58 100644
--- a/index.js
+++ b/index.js
@@ -119,7 +119,7 @@ const displayWeather = (data) => {
771: "squalls",
781: "tornado",
- 800: "clear",
+ 800: furigana("快晴", "かいせい"), // clear
801: furigana("薄雲", "うすぐも"), // light clouds
802: "scattered clouds",
803: furigana("破れた雲", "やぶれたくも"), // broken clouds
@@ -128,16 +128,14 @@ const displayWeather = (data) => {
const currentWeather = `${data.current.temp.toFixed(0)}${furigana(
"度",
"ど"
- )}
- ${conditions[data.current.weather[0].id]} (${furigana(
+ )}、${conditions[data.current.weather[0].id]}(${furigana(
"体感温度",
"たいかんおんど"
)}${data.current.feels_like.toFixed(0)}${furigana("度", "ど")})`;
const tomorrowsWeather = `${data.daily[1].temp.day.toFixed(0)}${furigana(
"度",
"ど"
- )}
- ${conditions[data.daily[1].weather[0].id]} (${furigana(
+ )}、${conditions[data.daily[1].weather[0].id]}(${furigana(
"体感温度",
"たいかんおんど"
)}${data.daily[1].feels_like.day.toFixed(0)}${furigana("度", "ど")})`;