diff options
| author | Fuwn <[email protected]> | 2023-09-12 23:14:56 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-12 23:14:56 -0700 |
| commit | a6e65a75ea88230cffaf2732dbb80231f5ac13fe (patch) | |
| tree | b2cbfea7f45e9c39042abdc4bd192d6478ae002b | |
| parent | feat(js): more jp (diff) | |
| download | startpage-a6e65a75ea88230cffaf2732dbb80231f5ac13fe.tar.xz startpage-a6e65a75ea88230cffaf2732dbb80231f5ac13fe.zip | |
feat(js): more jp conditions
| -rw-r--r-- | index.js | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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("度", "ど")})`; |