From 3b7dbf17437c629e4a7a285dabf712258945892f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Tue, 11 Aug 2026 23:05:34 +0300 Subject: [PATCH] Proactive log: inline TR hex, remove expand toggle + polling re-render --- index.html | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 24e4126..2f66d1b 100644 --- a/index.html +++ b/index.html @@ -3966,12 +3966,6 @@ function pysimStartBackendPoll() { pysimFetch('/api/stk-status'), pysimFetch('/api/poll-status'), ]); - const elLog = document.getElementById('pysim-proactive-log'); - const visible = elLog && elLog.parentElement && !elLog.parentElement.closest('.hidden'); - if (visible) { - pysimProactiveLogRender(); - pysimEventsRender(); - } pysimUpdatePollUI(ps.enabled, ps.interval); if (Array.isArray(log) && log.length > 0) _hadData = true; if (_hadData && !ps.enabled && Array.isArray(log) && log.length === 0) { @@ -4021,15 +4015,12 @@ async function pysimProactiveLogRender() { if (qs) qual = ' [' + (qs[parseInt(e.qualifier,16)] || '0x'+e.qualifier.toUpperCase()) + ']'; else qual = ' [0x' + e.qualifier.toUpperCase() + ']'; } - html += '
' - + '
' - + (e.tr_hex ? '' : '') + html += '
' + '' + e.elapsed + 's' + '0x' + e.type_hex.toUpperCase() + '' + '' + esc(name) + '' + (qual ? '' + esc(qual) + '' : '') - + '
' - + (e.tr_hex ? '' : '') + + (e.tr_hex ? '' + esc(e.tr_hex) + '' : '') + '
'; }); el.innerHTML = html; @@ -4038,19 +4029,6 @@ async function pysimProactiveLogRender() { } } -function pysimPlogToggle(idx) { - const panel = document.querySelector('[data-plog-data="' + idx + '"]'); - const tog = document.getElementById('plog-tog-' + idx); - if (!panel || !tog) return; - if (panel.classList.contains('hidden')) { - panel.classList.remove('hidden'); - tog.textContent = '▼'; - } else { - panel.classList.add('hidden'); - tog.textContent = '▶'; - } -} - // ===== PLI data dictionary ===== function decPlmn(hex3) { const h = hex3.replace(/\s/g, '').slice(0, 6);