Skip to content

Commit

Permalink
chatgpt broked it >:( but it fixd now
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinServer authored May 4, 2024
1 parent 7d73cec commit 0a94b0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<p>If you're one of my friends, feel free to join.</p>

<!-- Toggle Button -->
<button class="toggle-button dark-mode" onclick="toggleDarkMode()">Enable Light Mode</button>
<button class="toggle-button" onclick="toggleDarkMode()">Enable Light Mode</button>

<script>
function toggleDarkMode() {
Expand All @@ -51,8 +51,10 @@
var button = document.querySelector(".toggle-button");
if (body.classList.contains("dark-mode")) {
button.textContent = "Enable Light Mode";
button.style.borderColor = "black"; /* Set button border color */
} else {
button.textContent = "Enable Dark Mode";
button.style.borderColor = "white"; /* Set button border color */
}
}
</script>
Expand Down

0 comments on commit 0a94b0e

Please sign in to comment.