From 8cbf2ef3ceb4a4a298f30d452b9add30112e2f94 Mon Sep 17 00:00:00 2001 From: Derek Chen Date: Tue, 3 Oct 2023 17:56:09 -0500 Subject: [PATCH] Color palette changing for the funsies --- docs/colorScheme.js | 4 +++ docs/index.html | 10 ++++++ docs/main.css | 77 ++++++++++++++++++++++++++++++++++++++------- docs/main.js | 3 +- 4 files changed, 82 insertions(+), 12 deletions(-) create mode 100644 docs/colorScheme.js diff --git a/docs/colorScheme.js b/docs/colorScheme.js new file mode 100644 index 0000000..9f52185 --- /dev/null +++ b/docs/colorScheme.js @@ -0,0 +1,4 @@ +const colorToggle = document.getElementById("colorToggle") +colorToggle.addEventListener("change", () => { + document.body.classList.toggle("dark") +}) \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index f7404cb..be8f9e5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,6 +22,7 @@ @@ -85,6 +86,14 @@
Created by Derek Chen +
+ + +