From fb4710b011426034c340193a8fba9b3fc24b34a5 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 26 Jul 2026 11:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=A4=E6=98=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=AF=BC=E8=88=AA=E6=8A=98=E5=8F=A0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E7=9A=84JS=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- ft-app/app/templates/base.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ft-app/app/templates/base.html b/ft-app/app/templates/base.html index dc84b6c..4361eb8 100644 --- a/ft-app/app/templates/base.html +++ b/ft-app/app/templates/base.html @@ -270,6 +270,10 @@ function setTheme(dark) { function toggleTheme() { setTheme(document.documentElement.getAttribute('data-theme') !== 'dark'); } +function toggleNavGroup(e, id) { + e.preventDefault(); + document.getElementById(id).classList.toggle('open'); +} (function() { try { var s = localStorage.getItem('ft-theme');