add dark mode js demo on chapter 3 slide
This commit is contained in:
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
|
||||
|
||||

|
||||
|
||||
```javascript
|
||||
const toggleButton = document.querySelector("#darkModeToggle");
|
||||
const body = document.body;
|
||||
|
||||
Reference in new issue
Block a user