diff --git a/振幅锁仓策略/index.html b/振幅锁仓策略/index.html index 9c43489..7fc0462 100644 --- a/振幅锁仓策略/index.html +++ b/振幅锁仓策略/index.html @@ -27,6 +27,7 @@ td { padding: 6px 10px; border: 1px solid var(--td-border); text-align: center; } tr:nth-child(even) td { background: var(--td-even); } td:first-child { font-weight: 500; color: var(--td-first); } + td:nth-child(2) { font-size: 0.78rem; color: var(--sub); } .na { color: var(--na); } .toggle { position: fixed; top: 16px; right: 24px; background: var(--th-bg); border: 1px solid var(--th-border); color: var(--th-fg); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; z-index: 10; } @@ -115,12 +116,10 @@ document.querySelectorAll('table').forEach(function(tbl) { var rows = tbl.querySelectorAll('tr'); var ranges = []; for (var i = 1; i < rows.length; i++) { - var cells = rows[i].querySelectorAll('td'); - if (cells.length < 7) continue; - var date = cells[0].textContent.trim(); - var diff = parseInt(cells[5].textContent) || 0; + if (cells.length < 8) continue; + var diff = parseInt(cells[6].textContent) || 0; ranges.push({ date: date, diff: diff }); - var ampCell = cells[6]; + var ampCell = cells[7]; var ampVal = parseInt(ampCell.textContent); if (isNaN(ampVal)) continue; (function(cell, idx) { @@ -155,14 +154,24 @@ document.querySelectorAll('table').forEach(function(tbl) {