Skip to content

Commit

Permalink
W
Browse files Browse the repository at this point in the history
  • Loading branch information
GCode4000 authored Apr 13, 2024
1 parent 9d0ee71 commit 9b0d084
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</head>
<body>
<h2>MD Web</h2>
<button onclick="myFunction()">Toggle dark mode</button>
<h4></h4>
<div id="chat-container">
<h3 id="CHATtext">MD Web is not meant to replace your doctor. Please do not rely on MD Web. MD Web works best with more information. Please provide as many details as possible in order for MD Web to preform the best it possibly can.</h3>
Expand Down
4 changes: 4 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ document
AISend();
}
});
function myFunction() {
var element = document.body;
element.classList.toggle("dark-mode");
}
12 changes: 12 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,15 @@ a {
padding: 8px;
background-color: #dddddd;
}
body {
padding: 25px;
background-color: white;
color: black;
font-size: 15px;
}

.dark-mode {

background-color: black;
color: white;
}

0 comments on commit 9b0d084

Please sign in to comment.