diff options
| author | Fuwn <[email protected]> | 2023-09-16 02:13:43 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-16 02:13:43 -0700 |
| commit | 6e37783b7c6c30c088ca4badc71a6445f647a22c (patch) | |
| tree | afa28fab63083e4cd34456b72b738b646b9d54e8 /index.js | |
| parent | feat(html): add sumi.news (diff) | |
| download | startpage-6e37783b7c6c30c088ca4badc71a6445f647a22c.tar.xz startpage-6e37783b7c6c30c088ca4badc71a6445f647a22c.zip | |
fix: image load pops content
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 = () => { |