-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
24 lines (20 loc) · 823 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
console.clear();
// Lightmode / Darkmode
// const htmlBody = document.querySelector('[data-js="body"]');
// const htmlMain = document.querySelectorAll("section");
// const darkButton = document.querySelector('[data-js="darkButton"]');
// const htmlCards = document.querySelectorAll('[data-js="card"]');
// Lightmode / Darkmode
// darkmodeToggleButton.addEventListener("click", () => {
// console.log([darkButton]);
// darkmodeToggleButton.firstElementChild.classList.toggle(
// "flipDarkmodeSwitcher"
// );
// const htmlCollection = htmlBodyTag.children;
// for (let item of htmlCollection) {
// item.classList.toggle("lightmode");
// }
// [...htmlSections].forEach((section) => section.classList.toggle("lightmode"));
// });
let element = document.body;
element.classList.toggle("darkModeBody");