@@ -119,6 +127,10 @@ function toggleTheme() {
} catch(e) {}
})();
+function toggleSection(id) {
+ document.getElementById(id).classList.toggle('collapsed');
+}
+
var activeRow = null;
function closeDrawer() {
document.getElementById('overlay').classList.remove('show');
@@ -131,7 +143,8 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) {
var row = cell.parentElement;
var tbl = row.closest('table');
var rows = tbl.querySelectorAll('tr');
- var product = 'FG2609 玻璃';
+ var h2 = tbl.closest('.section').querySelector('h2');
+ var product = h2.childNodes[h2.childNodes.length - 1].textContent.trim();
var ranges = [];
for (var i = 1; i < rows.length; i++) {
diff --git a/振幅锁仓策略/fg2610.html b/振幅锁仓策略/fg2610.html
index 7851cca..2bef2c9 100644
--- a/振幅锁仓策略/fg2610.html
+++ b/振幅锁仓策略/fg2610.html
@@ -37,7 +37,10 @@
.toggle-btn:hover { opacity: 0.8; }
.section { margin-bottom: 8px; }
- .section h2 { font-size: 1.1rem; margin: 28px 0 10px; padding: 4px 0; }
+ .section h2 { font-size: 1.1rem; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; padding: 4px 0; }
+ .section h2 .arrow { display: inline-block; transition: transform .2s; font-size: 0.8rem; }
+ .section.collapsed h2 .arrow { transform: rotate(-90deg); }
+ .section.collapsed table { display: none; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 99; display: none; }
.drawer-overlay.show { display: block; }
@@ -64,6 +67,8 @@
@@ -119,6 +125,10 @@ function toggleTheme() {
} catch(e) {}
})();
+function toggleSection(id) {
+ document.getElementById(id).classList.toggle('collapsed');
+}
+
var activeRow = null;
function closeDrawer() {
document.getElementById('overlay').classList.remove('show');
@@ -131,7 +141,8 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) {
var row = cell.parentElement;
var tbl = row.closest('table');
var rows = tbl.querySelectorAll('tr');
- var product = 'FG2610 玻璃';
+ var h2 = tbl.closest('.section').querySelector('h2');
+ var product = h2.childNodes[h2.childNodes.length - 1].textContent.trim();
var ranges = [];
for (var i = 1; i < rows.length; i++) {
diff --git a/振幅锁仓策略/fg2611.html b/振幅锁仓策略/fg2611.html
index 5eba4c0..ccd69cd 100644
--- a/振幅锁仓策略/fg2611.html
+++ b/振幅锁仓策略/fg2611.html
@@ -52,6 +52,12 @@
.drawer .result b { font-size: 1.1rem; }
.drawer .close-btn { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--sub); line-height: 1; }
.drawer .close-btn:hover { color: var(--fg); }
+
+ .section { margin-bottom: 8px; }
+ .section h2 { font-size: 1.1rem; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; padding: 4px 0; }
+ .section h2 .arrow { display: inline-block; transition: transform .2s; font-size: 0.8rem; }
+ .section.collapsed h2 .arrow { transform: rotate(-90deg); }
+ .section.collapsed table { display: none; }
@@ -62,6 +68,8 @@
返回总览 | FG2609 | FG2610 | FG2611 | FG2701
振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整
+
+
▼ FG2611 玻璃
| 日期 | 星期 | 开盘 | 收盘 | 最高 | 最低 | 最高最低差价 | 振幅 |
| 2026/7/1 | 周三 | 1011 | 1001 | 1011 | 994 | 17 | - |
@@ -84,6 +92,7 @@
| 2026/7/24 | 周五 | 931 | 939 | 941 | 922 | 19 | 19 |
| 2026/7/27 | 周一 | - | - | - | - | 0 | 16 |
+
@@ -117,6 +126,10 @@ function toggleTheme() {
} catch(e) {}
})();
+function toggleSection(id) {
+ document.getElementById(id).classList.toggle('collapsed');
+}
+
var activeRow = null;
function closeDrawer() {
document.getElementById('overlay').classList.remove('show');
@@ -129,7 +142,8 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) {
var row = cell.parentElement;
var tbl = row.closest('table');
var rows = tbl.querySelectorAll('tr');
- var product = 'FG2611 玻璃';
+ var h2 = tbl.closest('.section').querySelector('h2');
+ var product = h2.childNodes[h2.childNodes.length - 1].textContent.trim();
var ranges = [];
for (var i = 1; i < rows.length; i++) {
diff --git a/振幅锁仓策略/fg2701.html b/振幅锁仓策略/fg2701.html
index 541a8bb..abca32e 100644
--- a/振幅锁仓策略/fg2701.html
+++ b/振幅锁仓策略/fg2701.html
@@ -51,6 +51,11 @@
.drawer .close-btn:hover { color: var(--fg); }
.amp-cell { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.amp-cell:hover { color: #3b82f6; }
+ .section { margin-bottom: 8px; }
+ .section h2 { font-size: 1.1rem; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; padding: 4px 0; }
+ .section h2 .arrow { display: inline-block; transition: transform .2s; font-size: 0.8rem; }
+ .section.collapsed h2 .arrow { transform: rotate(-90deg); }
+ .section.collapsed table { display: none; }
@@ -61,6 +66,8 @@
返回总览 | FG2609 | FG2610 | FG2611 | FG2701
振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整
+
+
▼ FG2701 玻璃
| 日期 | 星期 | 开盘 | 收盘 | 最高 | 最低 | 最高最低差价 | 振幅 |
| 2026/7/1 | 周三 | 1059 | 1054 | 1062 | 1050 | 12 | - |
@@ -83,6 +90,7 @@
| 2026/7/24 | 周五 | 978 | 985 | 987 | 972 | 15 | 17 |
| 2026/7/27 | 周一 | - | - | - | - | 0 | 14 |
+
@@ -116,6 +124,10 @@ function toggleTheme() {
} catch(e) {}
})();
+function toggleSection(id) {
+ document.getElementById(id).classList.toggle('collapsed');
+}
+
var activeRow = null;
function closeDrawer() {
document.getElementById('overlay').classList.remove('show');
@@ -144,7 +156,8 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) {
if (start < 0) return;
var ampVal = cell.textContent.trim();
- document.getElementById('drawer-title').textContent = 'FG2701 玻璃';
+ var h2 = tbl.closest('.section').querySelector('h2');
+ document.getElementById('drawer-title').textContent = h2.childNodes[h2.childNodes.length - 1].textContent.trim();
document.getElementById('drawer-date').textContent = '目标日期: ' + ranges[idx].date + ' ' + ranges[idx].wk + ' 振幅 ' + ampVal;
var html = '
| 日期 | 最高−最低 |
';