From 0ed6363a163ed16dc332027b686a5264d115ca31 Mon Sep 17 00:00:00 2001 From: MKStoler1024 <158786854+MKStoler1024@users.noreply.github.com> Date: Sat, 1 Feb 2025 06:32:07 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 66 insertions(+), 13 deletions(-) diff --git a/index.php b/index.php index 7bb135e..a9e02b6 100644 --- a/index.php +++ b/index.php @@ -8,18 +8,26 @@ header('Content-Type: text/html; charset=utf-8'); 考试看板配置查询 +

考试看板配置查询

@@ -134,6 +159,34 @@ header('Content-Type: text/html; charset=utf-8'); return '' + match + ''; }); } + + function toggleTheme() { + const body = document.body; + const container = document.querySelector('.container'); + const themeToggle = document.querySelector('.theme-toggle'); + if (body.classList.contains('dark-theme')) { + body.classList.remove('dark-theme'); + container.classList.remove('dark-theme'); + themeToggle.textContent = '切换主题'; + } else { + body.classList.add('dark-theme'); + container.classList.add('dark-theme'); + themeToggle.textContent = '切换主题'; + } + } + \ No newline at end of file