+
-
-
-
-
+
+
diff --git a/darkMode.js b/darkMode.js
new file mode 100644
index 0000000..e1be377
--- /dev/null
+++ b/darkMode.js
@@ -0,0 +1,32 @@
+function toggleDarkMode() {
+ document.body.classList.toggle('dark-mode');
+ const darkModeToggle = document.getElementById('dark-mode-toggle');
+ if (document.body.classList.contains('dark-mode')) {
+ darkModeToggle.innerHTML = ' Light Mode';
+ localStorage.setItem('darkMode', 'enabled');
+ } else {
+ darkModeToggle.innerHTML = ' Dark Mode';
+ localStorage.setItem('darkMode', 'disabled');
+ }
+}
+
+function checkDarkModePreference() {
+ if (localStorage.getItem('darkMode') === 'enabled') {
+ document.body.classList.add('dark-mode');
+ const darkModeToggle = document.getElementById('dark-mode-toggle');
+ if (darkModeToggle) {
+ darkModeToggle.innerHTML = ' Light Mode';
+ }
+ }
+}
+
+document.addEventListener('DOMContentLoaded', () => {
+ checkDarkModePreference();
+
+ const darkModeToggle = document.getElementById('dark-mode-toggle');
+ if (darkModeToggle) {
+ darkModeToggle.addEventListener('click', toggleDarkMode);
+ } else {
+ console.error('Dark mode toggle button not found');
+ }
+});
diff --git a/index.html b/index.html
index e0fa6a0..50f9d98 100644
--- a/index.html
+++ b/index.html
@@ -4,55 +4,56 @@
- Task Master
+Organize your life, one task at a time