Skip to content

Commit

Permalink
0.1.34
Browse files Browse the repository at this point in the history
script updatessssss
  • Loading branch information
EDU-MDAnderson committed Sep 25, 2023
1 parent 66b40d5 commit 414e7b4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ <h3>Information</h3>
<p id="lastModified">Last modified: [Date]</p>
<p>&copy; <span id="currentYear">Year</span> Matthew Anderson UT/US</p>
</footer>
<script src="scripts/menu.js"></script>
<script src="scripts/darkmode.js"></script>
<script src="scripts/getDates.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions scripts/darkmode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// darkmode.js
function toggleDarkMode() {
const body = document.body;
body.classList.toggle('dark-mode');
}
14 changes: 13 additions & 1 deletion styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@ span {background-color: red}
hr {
border-top: .25rem solid #000000;
}

.dark-mode {
background-color: #1f1f1f;
color: #ffffff;
}
/* Dark mode styles for the toggle button */
#darkModeToggle {
background-color: #333;
color: #fff;
border: none;
padding: 8px 16px;
cursor: pointer;
}

header {
background-color: #8efbff;
margin: auto;
Expand Down

0 comments on commit 414e7b4

Please sign in to comment.