diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/index.html b/index.html index f0c5f5d..af3deb1 100644 --- a/index.html +++ b/index.html @@ -161,7 +161,7 @@ diff --git a/index.js b/index.js index 4effaf0..434b58f 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,16 @@ function darkMode() { element.style.borderRight = "2px solid white"; } } + const toggleButton = document.getElementById("dark-mode-enable"); + + if(toggleButton.classList.contains("fa-moon")){ + toggleButton.classList.remove("fa-moon"); + toggleButton.classList.add("fa-lightbulb"); + } + else{ + toggleButton.classList.remove("fa-lightbulb"); + toggleButton.classList.add("fa-moon"); + } } const toggles = document.querySelectorAll(".faq-toggle");