Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -261,6 +261,9 @@ def create_interface():
|
|
261 |
|
262 |
js_code = """
|
263 |
function gradio_init() {
|
|
|
|
|
|
|
264 |
const observer = new MutationObserver((mutations, obs) => {
|
265 |
const table = document.getElementById('periodic-table-container');
|
266 |
if (table) {
|
|
|
261 |
|
262 |
js_code = """
|
263 |
function gradio_init() {
|
264 |
+
document.documentElement.classList.add('dark');
|
265 |
+
|
266 |
+
// 設定事件監聽
|
267 |
const observer = new MutationObserver((mutations, obs) => {
|
268 |
const table = document.getElementById('periodic-table-container');
|
269 |
if (table) {
|