Skip to content

Commit

Permalink
Merge pull request #11 from shaikshahid98/main
Browse files Browse the repository at this point in the history
Update dark-mode-switch.min.js
  • Loading branch information
LakinduK authored Oct 19, 2022
2 parents f1a7b05 + 5e0a1c1 commit 67a7c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contributors/src/dark-mode-switch.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ function resetTheme() {
localStorage.setItem("darkSwitch", "dark"))
text.innerHTML = "Light Theme 🌤️";
document.getElementById("H22-image").src = "src/H22/H22-logo-dark.png";
document.getElementById("bg-img").style.backgroundImage = "url('src/H22/H22-Banners-Dark.png')";
document.getElementById("bg-img").style.backgroundImage = "url('src/H22/H22-Banners-Light.png')";
}
else {
(document.body.removeAttribute("data-theme"),
localStorage.removeItem("darkSwitch"));
text.innerHTML = 'Dark Theme 🌚';
document.getElementById("H22-image").src = "src/H22/H22-logo-light.png";
document.getElementById("bg-img").style.backgroundImage = "url('src/H22/H22-Banners-Light.png')";
document.getElementById("bg-img").style.backgroundImage = "url('src/H22/H22-Banners-Dark.png')";

}

Expand Down

0 comments on commit 67a7c0e

Please sign in to comment.