Skip to content

Commit

Permalink
clean up index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Matts52 committed Dec 3, 2023
1 parent 5e9b33f commit 242df77
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -40,13 +36,8 @@ window.addEventListener('scroll', () => {
});
});





/*** Dark Mode toggling ***/


// Get dark mode preference from local storage
var isDarkMode = localStorage.getItem('darkMode') === 'true';

Expand All @@ -70,5 +61,4 @@ darkModeToggle.addEventListener("click", function() {
localStorage.setItem('darkMode', 'true');
isDarkMode = true;
}

});
});

0 comments on commit 242df77

Please sign in to comment.