合约标题可点击跳转
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
body { font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; padding: 24px; max-width: 1100px; margin: 0 auto; color: var(--fg); background: var(--bg); }
|
body { font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; padding: 24px; max-width: 1100px; margin: 0 auto; color: var(--fg); background: var(--bg); }
|
||||||
h1 { font-size: 1.4rem; margin-bottom: 8px; }
|
h1 { font-size: 1.4rem; margin-bottom: 8px; }
|
||||||
.sub { color: var(--sub); font-size: 0.85rem; margin-bottom: 8px; }
|
.sub { color: var(--sub); font-size: 0.85rem; margin-bottom: 8px; }
|
||||||
|
.sub a { color: #3b82f6; cursor: pointer; text-decoration: none; }
|
||||||
|
.sub a:hover { text-decoration: underline; }
|
||||||
.formula { color: var(--sub); font-size: 0.8rem; margin-bottom: 24px; padding: 6px 12px; background: var(--th-bg); border-radius: 4px; display: inline-block; }
|
.formula { color: var(--sub); font-size: 0.8rem; margin-bottom: 24px; padding: 6px 12px; background: var(--th-bg); border-radius: 4px; display: inline-block; }
|
||||||
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
|
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
|
||||||
th { background: var(--th-bg); color: var(--th-fg); font-weight: 600; padding: 8px 10px; border: 1px solid var(--th-border); text-align: center; white-space: nowrap; }
|
th { background: var(--th-bg); color: var(--th-fg); font-weight: 600; padding: 8px 10px; border: 1px solid var(--th-border); text-align: center; white-space: nowrap; }
|
||||||
@@ -66,7 +68,7 @@
|
|||||||
|
|
||||||
<h1>振幅锁仓策略 — 玻璃</h1>
|
<h1>振幅锁仓策略 — 玻璃</h1>
|
||||||
<p class="nav-link"><a href="index.html">← 返回总览</a> | <a href="index-SA.html">查看纯碱</a></p>
|
<p class="nav-link"><a href="index.html">← 返回总览</a> | <a href="index-SA.html">查看纯碱</a></p>
|
||||||
<p class="sub">FG2609 | FG2611 | FG2701</p>
|
<p class="sub"><a href="javascript:;" onclick="openSection('sec-fg2609')">FG2609</a> | <a href="javascript:;" onclick="openSection('sec-fg2611')">FG2611</a> | <a href="javascript:;" onclick="openSection('sec-fg2701')">FG2701</a></p>
|
||||||
<p class="formula">振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整</p>
|
<p class="formula">振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整</p>
|
||||||
|
|
||||||
<div class="section collapsed" id="sec-fg2609">
|
<div class="section collapsed" id="sec-fg2609">
|
||||||
@@ -179,6 +181,11 @@ function toggleTheme() {
|
|||||||
function toggleSection(id) {
|
function toggleSection(id) {
|
||||||
document.getElementById(id).classList.toggle('collapsed');
|
document.getElementById(id).classList.toggle('collapsed');
|
||||||
}
|
}
|
||||||
|
function openSection(id) {
|
||||||
|
var el = document.getElementById(id);
|
||||||
|
el.classList.remove('collapsed');
|
||||||
|
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||||
|
}
|
||||||
|
|
||||||
var activeRow = null;
|
var activeRow = null;
|
||||||
function closeDrawer() {
|
function closeDrawer() {
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
body { font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; padding: 24px; max-width: 1100px; margin: 0 auto; color: var(--fg); background: var(--bg); }
|
body { font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; padding: 24px; max-width: 1100px; margin: 0 auto; color: var(--fg); background: var(--bg); }
|
||||||
h1 { font-size: 1.4rem; margin-bottom: 8px; }
|
h1 { font-size: 1.4rem; margin-bottom: 8px; }
|
||||||
.sub { color: var(--sub); font-size: 0.85rem; margin-bottom: 8px; }
|
.sub { color: var(--sub); font-size: 0.85rem; margin-bottom: 8px; }
|
||||||
|
.sub a { color: #3b82f6; cursor: pointer; text-decoration: none; }
|
||||||
|
.sub a:hover { text-decoration: underline; }
|
||||||
.formula { color: var(--sub); font-size: 0.8rem; margin-bottom: 24px; padding: 6px 12px; background: var(--th-bg); border-radius: 4px; display: inline-block; }
|
.formula { color: var(--sub); font-size: 0.8rem; margin-bottom: 24px; padding: 6px 12px; background: var(--th-bg); border-radius: 4px; display: inline-block; }
|
||||||
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
|
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
|
||||||
th { background: var(--th-bg); color: var(--th-fg); font-weight: 600; padding: 8px 10px; border: 1px solid var(--th-border); text-align: center; white-space: nowrap; }
|
th { background: var(--th-bg); color: var(--th-fg); font-weight: 600; padding: 8px 10px; border: 1px solid var(--th-border); text-align: center; white-space: nowrap; }
|
||||||
@@ -66,7 +68,7 @@
|
|||||||
|
|
||||||
<h1>振幅锁仓策略 — 纯碱</h1>
|
<h1>振幅锁仓策略 — 纯碱</h1>
|
||||||
<p class="nav-link"><a href="index.html">← 返回总览</a> | <a href="index-FG.html">查看玻璃</a></p>
|
<p class="nav-link"><a href="index.html">← 返回总览</a> | <a href="index-FG.html">查看玻璃</a></p>
|
||||||
<p class="sub">SA2609 | SA2611 | SA2701</p>
|
<p class="sub"><a href="javascript:;" onclick="openSection('sec-sa2609')">SA2609</a> | <a href="javascript:;" onclick="openSection('sec-sa2611')">SA2611</a> | <a href="javascript:;" onclick="openSection('sec-sa2701')">SA2701</a></p>
|
||||||
<p class="formula">振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整</p>
|
<p class="formula">振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整</p>
|
||||||
|
|
||||||
<div class="section collapsed" id="sec-sa2609">
|
<div class="section collapsed" id="sec-sa2609">
|
||||||
@@ -179,6 +181,11 @@ function toggleTheme() {
|
|||||||
function toggleSection(id) {
|
function toggleSection(id) {
|
||||||
document.getElementById(id).classList.toggle('collapsed');
|
document.getElementById(id).classList.toggle('collapsed');
|
||||||
}
|
}
|
||||||
|
function openSection(id) {
|
||||||
|
var el = document.getElementById(id);
|
||||||
|
el.classList.remove('collapsed');
|
||||||
|
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||||
|
}
|
||||||
|
|
||||||
var activeRow = null;
|
var activeRow = null;
|
||||||
function closeDrawer() {
|
function closeDrawer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user