add dark mode js demo on chapter 3 slide

This commit is contained in:
libretech committed 2026-04-20 12:54:52 +02:00
1 parent 0367f07166
commit 754ff9436c
4 files changed
+85

No files matched your search

@@ -755,6 +755,8 @@ Formular-Validierung ohne Reload
# Beispiel: Toggle Dark Mode
![bg right:35%](./assets/demos/js-darkmode.png)
```javascript
const toggleButton = document.querySelector("#darkModeToggle");
const body = document.body;