summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-16 02:13:43 -0700
committerFuwn <[email protected]>2023-09-16 02:13:43 -0700
commit6e37783b7c6c30c088ca4badc71a6445f647a22c (patch)
treeafa28fab63083e4cd34456b72b738b646b9d54e8 /index.js
parentfeat(html): add sumi.news (diff)
downloadstartpage-6e37783b7c6c30c088ca4badc71a6445f647a22c.tar.xz
startpage-6e37783b7c6c30c088ca4badc71a6445f647a22c.zip
fix: image load pops content
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 = () => {