Skip to content

Commit

Permalink
Changed the dark and light mode icons
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar-1005 committed Nov 25, 2022
1 parent 42cbbeb commit 931a665
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ Daniele Avolio <[email protected]>
Adhetya Narayan J.M <[email protected]>
Ranjana Reghunath <[email protected]>
Rudraksh Karpe <[email protected]>
Prakhar Pandey <[email protected]>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@

<!--dark mode button is now outside the option class-->
<button onclick="darkMode()" class="toggleButton">
<i class="fa-solid fa-moon fa-2x" id="dark-mode-enable"></i>
<i class="fa-solid fa-moon fa-2x" id="dark-mode-enable"></i>
</button>
</nav>

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function darkMode() {
element.style.borderRight = "2px solid white";
}
}

const toggleButton = document.getElementById("dark-mode-enable");

if(toggleButton.classList.contains("fa-moon")){
Expand Down

0 comments on commit 931a665

Please sign in to comment.