mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
1a97b6b763
commit
2ca585e7e6
|
@ -1944,10 +1944,12 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
// PTT STATE
|
// PTT STATE
|
||||||
switch (arg.ptt_state) {
|
switch (arg.ptt_state) {
|
||||||
case "True":
|
case "True":
|
||||||
document.getElementById("ptt_state").className = "btn btn-sm btn-danger me-1";
|
document.getElementById("ptt_state").className =
|
||||||
|
"btn btn-sm btn-danger me-1";
|
||||||
break;
|
break;
|
||||||
case "False":
|
case "False":
|
||||||
document.getElementById("ptt_state").className = "btn btn-sm btn-success me-1";
|
document.getElementById("ptt_state").className =
|
||||||
|
"btn btn-sm btn-success me-1";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
document.getElementById("ptt_state").className =
|
document.getElementById("ptt_state").className =
|
||||||
|
@ -1957,11 +1959,9 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
|
|
||||||
// AUDIO RECORDING
|
// AUDIO RECORDING
|
||||||
if (arg.audio_recording == "True") {
|
if (arg.audio_recording == "True") {
|
||||||
document.getElementById("startStopRecording").textContent =
|
document.getElementById("startStopRecording").textContent = "Stop Rec";
|
||||||
"Stop Rec";
|
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("startStopRecording").textContent =
|
document.getElementById("startStopRecording").textContent = "Record";
|
||||||
"Record";
|
|
||||||
}
|
}
|
||||||
//CHANNEL CODEC2 BUSY STATE
|
//CHANNEL CODEC2 BUSY STATE
|
||||||
if (arg.is_codec2_traffic == "True") {
|
if (arg.is_codec2_traffic == "True") {
|
||||||
|
@ -1989,7 +1989,8 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
// BUSY STATE
|
// BUSY STATE
|
||||||
switch (arg.busy_state) {
|
switch (arg.busy_state) {
|
||||||
case "BUSY":
|
case "BUSY":
|
||||||
document.getElementById("busy_state").className = "btn btn-sm btn-danger me-1";
|
document.getElementById("busy_state").className =
|
||||||
|
"btn btn-sm btn-danger me-1";
|
||||||
//Seems to be no longer user accessible
|
//Seems to be no longer user accessible
|
||||||
//document.getElementById("startTransmission").disabled = true;
|
//document.getElementById("startTransmission").disabled = true;
|
||||||
break;
|
break;
|
||||||
|
@ -2008,7 +2009,8 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
// ARQ STATE
|
// ARQ STATE
|
||||||
switch (arg.arq_state) {
|
switch (arg.arq_state) {
|
||||||
case "True":
|
case "True":
|
||||||
document.getElementById("arq_state").className = "btn btn-sm btn-warning me-1";
|
document.getElementById("arq_state").className =
|
||||||
|
"btn btn-sm btn-warning me-1";
|
||||||
//Seems to be no longer user accessible
|
//Seems to be no longer user accessible
|
||||||
//document.getElementById("startTransmission").disabled = false;
|
//document.getElementById("startTransmission").disabled = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -283,7 +283,7 @@
|
||||||
-->
|
-->
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div id="blurdiv" style="-webkit-filter: blur(0px); filter: blur(0px);">
|
<div id="blurdiv" style="-webkit-filter: blur(0px); filter: blur(0px)">
|
||||||
<!--beginn of blur div -->
|
<!--beginn of blur div -->
|
||||||
<!-------------------------------- MAIN AREA ---------------->
|
<!-------------------------------- MAIN AREA ---------------->
|
||||||
<!-------------------------------- INFO TOASTS ---------------->
|
<!-------------------------------- INFO TOASTS ---------------->
|
||||||
|
@ -974,8 +974,7 @@
|
||||||
class="btn btn-sm btn-outline-secondary ms-1"
|
class="btn btn-sm btn-outline-secondary ms-1"
|
||||||
id="sendCQ"
|
id="sendCQ"
|
||||||
type="button"
|
type="button"
|
||||||
title="Send a CQ to the world"
|
title="Send a CQ to the world"
|
||||||
|
|
||||||
>
|
>
|
||||||
Call CQ
|
Call CQ
|
||||||
</button>
|
</button>
|
||||||
|
@ -985,7 +984,6 @@
|
||||||
id="startBeacon"
|
id="startBeacon"
|
||||||
class="btn btn-sm btn-outline-secondary ms-1"
|
class="btn btn-sm btn-outline-secondary ms-1"
|
||||||
title="Toggle beacon mode. The interval can be set in settings. While sending a beacon, you can receive ping requests and open a datachannel. If a datachannel is opened, the beacon pauses."
|
title="Toggle beacon mode. The interval can be set in settings. While sending a beacon, you can receive ping requests and open a datachannel. If a datachannel is opened, the beacon pauses."
|
||||||
|
|
||||||
>
|
>
|
||||||
<i class="bi bi-soundwave"></i> Toggle beacon
|
<i class="bi bi-soundwave"></i> Toggle beacon
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue