summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.js b/index.js
index 3265e58..8ae8146 100644
--- a/index.js
+++ b/index.js
@@ -42,6 +42,7 @@ const updateClock = () => {
("0" + today.getSeconds()).slice(-2);
document.getElementById("time").innerHTML = dateString;
+
setTimeout(updateClock, 500);
};
@@ -140,8 +141,8 @@ const displayWeather = (data) => {
"たいかんおんど"
)}${data.daily[1].feels_like.day.toFixed(0)}${furigana("度", "ど")})`;
- document.getElementById("current-weather").innerHTML += currentWeather;
- document.getElementById("tomorrows-weather").innerHTML += tomorrowsWeather;
+ document.getElementById("current-weather").innerHTML = currentWeather;
+ document.getElementById("tomorrows-weather").innerHTML = tomorrowsWeather;
};
const chooseWaifu = () => {