diff options
| author | Fuwn <[email protected]> | 2023-09-12 20:32:08 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-12 20:32:08 -0700 |
| commit | db0988eb8d5ea27db528c8dcd85b03752ef9f242 (patch) | |
| tree | 199cfa6211604cc6f19b978e7201582e8e2c570b /index.js | |
| parent | feat(js): jp conditions (diff) | |
| download | startpage-db0988eb8d5ea27db528c8dcd85b03752ef9f242.tar.xz startpage-db0988eb8d5ea27db528c8dcd85b03752ef9f242.zip | |
feat(js): more jp
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -34,7 +34,7 @@ const updateClock = () => { today.getDate() + "、" + today.getFullYear() + - " | " + + "、" + ("0" + today.getHours()).slice(-2) + ":" + ("0" + today.getMinutes()).slice(-2) + @@ -122,25 +122,25 @@ const displayWeather = (data) => { 800: "clear", 801: furigana("薄雲", "うすぐも"), // light clouds 802: "scattered clouds", - 803: "broken clouds", + 803: furigana("破れた雲", "やぶれたくも"), // broken clouds 804: furigana("雨曇り", "あまぐもり"), // overcast }; 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("度", "ど")})`; + )}${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("度", "ど")})`; + )}${data.daily[1].feels_like.day.toFixed(0)}${furigana("度", "ど")})`; document.getElementById("current-weather").innerHTML += currentWeather; document.getElementById("tomorrows-weather").innerHTML += tomorrowsWeather; |