summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.js b/index.js
index d51bf7c..e95c155 100644
--- a/index.js
+++ b/index.js
@@ -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;