From 65ae34ceb68438553eee9a84c407e93563ef5bcb Mon Sep 17 00:00:00 2001 From: fish Date: Fri, 24 Jul 2026 15:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E7=82=B9=E5=87=BB=E5=8F=AF?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 振幅锁仓策略/index-FG.html | 10 +++++++--- 振幅锁仓策略/index-SA.html | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/振幅锁仓策略/index-FG.html b/振幅锁仓策略/index-FG.html index 18eaa00..1fc0ef5 100644 --- a/振幅锁仓策略/index-FG.html +++ b/振幅锁仓策略/index-FG.html @@ -182,10 +182,14 @@ function toggleSection(id) { document.getElementById(id).classList.toggle('collapsed'); } function openSection(id) { - document.querySelectorAll('.section').forEach(function(s) { s.classList.add('collapsed'); }); var el = document.getElementById(id); - el.classList.remove('collapsed'); - el.scrollIntoView({ behavior: 'smooth', block: 'start' }); + if (el.classList.contains('collapsed')) { + document.querySelectorAll('.section').forEach(function(s) { s.classList.add('collapsed'); }); + el.classList.remove('collapsed'); + el.scrollIntoView({ behavior: 'smooth', block: 'start' }); + } else { + el.classList.add('collapsed'); + } } var activeRow = null; diff --git a/振幅锁仓策略/index-SA.html b/振幅锁仓策略/index-SA.html index 776d777..8e42d80 100644 --- a/振幅锁仓策略/index-SA.html +++ b/振幅锁仓策略/index-SA.html @@ -182,10 +182,14 @@ function toggleSection(id) { document.getElementById(id).classList.toggle('collapsed'); } function openSection(id) { - document.querySelectorAll('.section').forEach(function(s) { s.classList.add('collapsed'); }); var el = document.getElementById(id); - el.classList.remove('collapsed'); - el.scrollIntoView({ behavior: 'smooth', block: 'start' }); + if (el.classList.contains('collapsed')) { + document.querySelectorAll('.section').forEach(function(s) { s.classList.add('collapsed'); }); + el.classList.remove('collapsed'); + el.scrollIntoView({ behavior: 'smooth', block: 'start' }); + } else { + el.classList.add('collapsed'); + } } var activeRow = null;