[feat](trx-frontend-http): add clear button to CW decoder output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -147,6 +147,7 @@
|
|||||||
<div id="subtab-cw" class="sub-tab-panel" style="display:none;">
|
<div id="subtab-cw" class="sub-tab-panel" style="display:none;">
|
||||||
<div class="cw-controls">
|
<div class="cw-controls">
|
||||||
<button id="cw-toggle-btn" type="button">Start CW</button>
|
<button id="cw-toggle-btn" type="button">Start CW</button>
|
||||||
|
<button id="cw-clear-btn" type="button">Clear</button>
|
||||||
<small id="cw-status" style="color:var(--text-muted);">Stopped</small>
|
<small id="cw-status" style="color:var(--text-muted);">Stopped</small>
|
||||||
<div id="cw-signal-indicator" class="cw-signal-off"></div>
|
<div id="cw-signal-indicator" class="cw-signal-off"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -435,3 +435,6 @@ function stopCw() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cwToggleBtn.addEventListener("click", startCw);
|
cwToggleBtn.addEventListener("click", startCw);
|
||||||
|
document.getElementById("cw-clear-btn").addEventListener("click", () => {
|
||||||
|
cwOutputEl.innerHTML = "";
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user