From 242df77bdfee79535573e3dbe39883e7c0a82e6c Mon Sep 17 00:00:00 2001 From: Matt Senick Date: Sun, 3 Dec 2023 12:55:00 -0600 Subject: [PATCH] clean up index.js --- index.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index a036bfe..a0beac5 100644 --- a/index.js +++ b/index.js @@ -13,11 +13,7 @@ window.onload = function(){ } - - - - -/*** fading animation between sections ***/ +/*** Fading Animation between sections ***/ // Get all sections on the page const allSections = document.querySelectorAll('section'); @@ -40,13 +36,8 @@ window.addEventListener('scroll', () => { }); }); - - - - /*** Dark Mode toggling ***/ - // Get dark mode preference from local storage var isDarkMode = localStorage.getItem('darkMode') === 'true'; @@ -70,5 +61,4 @@ darkModeToggle.addEventListener("click", function() { localStorage.setItem('darkMode', 'true'); isDarkMode = true; } - - }); +});