diff --git a/theweatherteam.html b/theweatherteam.html
index 031c10a..037f0a3 100644
--- a/theweatherteam.html
+++ b/theweatherteam.html
@@ -9,6 +9,21 @@
function openInvite(){
window.open("https://discord.com/invite/CTyybFMQrM","_blank");
}
+ function toggletheme(){
+ var themebtn = document.getElementById("theme");
+ var header = document.getElementById("header");
+ if (themebtn.src.includes("lighttheme.png")){
+ themebtn.src = "assets/darktheme.png"
+ document.body.style.background = "rgb(30, 30, 30)";
+ document.body.style.color = "white";
+ header.style.background = "rgba(30, 30, 30, 0.7)"
+ } else {
+ themebtn.src = "assets/lighttheme.png"
+ document.body.style.background = "white";
+ document.body.style.color = "black";
+ header.style.background = "rgba(255, 255, 255, 0.8)"
+ }
+ }