统一FG2610页面结构与其它合约一致

This commit is contained in:
fish
2026-07-24 17:41:45 +08:00
parent 106eb73b22
commit 4c3dd86c37
+3 -10
View File
@@ -54,9 +54,6 @@
.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; }
.nav-link { color: var(--sub); font-size: 0.82rem; margin-bottom: 4px; }
.nav-link a { color: #3b82f6; text-decoration: none; }
.nav-link a:hover { text-decoration: underline; }
</style>
</head>
<body>
@@ -67,9 +64,7 @@
<p class="sub"><a href="index.html">返回总览</a> &nbsp;|&nbsp; <a href="fg2609.html">FG2609</a> &nbsp;|&nbsp; <span>FG2610</span> &nbsp;|&nbsp; <a href="fg2611.html">FG2611</a> &nbsp;|&nbsp; <a href="fg2701.html">FG2701</a></p>
<p class="formula">振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整</p>
<div class="section" id="sec-fg2610">
<h2>FG2610 玻璃</h2>
<table>
<table>
<tr><th>日期</th><th>星期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>最高最低差价</th><th>振幅</th></tr>
<tr><td>2026/7/1</td><td>周三</td><td>1015</td><td>1007</td><td>1015</td><td>1000</td><td>15</td><td class="na">-</td></tr>
<tr><td>2026/7/2</td><td>周四</td><td>1005</td><td>1007</td><td>1014</td><td>1000</td><td>14</td><td class="na">-</td></tr>
@@ -90,8 +85,7 @@
<tr><td>2026/7/23</td><td>周四</td><td>948</td><td>937</td><td>951</td><td>931</td><td>20</td><td class="amp-cell">22</td></tr>
<tr><td>2026/7/24</td><td>周五</td><td>938</td><td>944</td><td>947</td><td>928</td><td>19</td><td class="amp-cell">21</td></tr>
<tr><td>2026/7/27</td><td>周一</td><td class="na">-</td><td class="na">-</td><td class="na">-</td><td class="na">-</td><td>0</td><td class="amp-cell">18</td></tr>
</table>
</div>
</table>
<div class="drawer-overlay" id="overlay" onclick="closeDrawer()"></div>
<div class="drawer" id="drawer">
@@ -137,8 +131,7 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) {
var row = cell.parentElement;
var tbl = row.closest('table');
var rows = tbl.querySelectorAll('tr');
var h2 = tbl.closest('.section').querySelector('h2');
var product = h2.childNodes[h2.childNodes.length - 1].textContent.trim();
var product = 'FG2610 玻璃';
var ranges = [];
for (var i = 1; i < rows.length; i++) {