Spaces:
Runtime error
Runtime error
ToluClassics
commited on
Commit
·
f268956
1
Parent(s):
11cb26c
Docker
Browse files
app.py
CHANGED
@@ -235,6 +235,10 @@ if st.sidebar.button("Search"):
|
|
235 |
}
|
236 |
</style>
|
237 |
<script>
|
|
|
|
|
|
|
|
|
238 |
function myFunction() {
|
239 |
var element = document.body;
|
240 |
element.classList.toggle("dark-mode");
|
|
|
235 |
}
|
236 |
</style>
|
237 |
<script>
|
238 |
+
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
239 |
+
var element = document.body;
|
240 |
+
element.classList.toggle("dark-mode");
|
241 |
+
}
|
242 |
function myFunction() {
|
243 |
var element = document.body;
|
244 |
element.classList.toggle("dark-mode");
|