diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2ba986f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/index.css b/index.css new file mode 100644 index 0000000..75c5ef0 --- /dev/null +++ b/index.css @@ -0,0 +1,3 @@ +@media screen and (max-width:600px) { + +} \ No newline at end of file diff --git a/index.html b/index.html index d9104af..e252cce 100644 --- a/index.html +++ b/index.html @@ -2,10 +2,11 @@ - + + -
-
+ + +
+ 🌙
@@ -265,6 +280,14 @@ calculation.textContent = result.textContent; }); + // Add the night mode toggle functionality + // By Rahul + const nightModeToggle = document.querySelector('.nightModeToggle'); + const body = document.body; + + nightModeToggle.addEventListener('click', function () { + body.classList.toggle('dark-mode'); + });