diff --git a/index.html b/index.html index 538444a..dbcd4e9 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@

Data from IRF Kiruna

- +

Latest image from the All Sky camera

@@ -65,7 +65,14 @@ function darkMode() { var ele = document.body; ele.classList.toggle("dark"); + var x = document.getElementById("modeBtn"); + if (x.innerHTML === "Dark Mode: Off") { + x.innerHTML = "Dark Mode: On"; + } else { + x.innerHTML = "Dark Mode: Off"; + } } + async function api(){ const res = await fetch('https://www.spaceweather.se/forecast/kp/latest.json'); const data = await res.json();