Prettified Code!

This commit is contained in:
DJ2LS 2023-02-12 07:44:27 +00:00 committed by GitHub Action
parent 5e8008324c
commit d0c8af2623
2 changed files with 548 additions and 568 deletions

View file

@ -421,7 +421,6 @@ window.addEventListener("DOMContentLoaded", () => {
"hidden"; "hidden";
document.getElementById("radio-control-disabled").style.display = "none"; document.getElementById("radio-control-disabled").style.display = "none";
document.getElementById("radio-control-network").style.visibility = document.getElementById("radio-control-network").style.visibility =
"hidden"; "hidden";
document.getElementById("radio-control-network").style.display = "none"; document.getElementById("radio-control-network").style.display = "none";
@ -437,8 +436,6 @@ window.addEventListener("DOMContentLoaded", () => {
"radio-control-switch-rigctld-info" "radio-control-switch-rigctld-info"
).checked = false; ).checked = false;
document.getElementById("radio-control-network").style.display = "none"; document.getElementById("radio-control-network").style.display = "none";
document.getElementById("radio-control-network").style.visibility = document.getElementById("radio-control-network").style.visibility =
"hidden"; "hidden";
@ -519,13 +516,10 @@ window.addEventListener("DOMContentLoaded", () => {
document.getElementById("radio-control-disabled").style.visibility = document.getElementById("radio-control-disabled").style.visibility =
"visible"; "visible";
document.getElementById("radio-control-network").style.display = "none"; document.getElementById("radio-control-network").style.display = "none";
document.getElementById("radio-control-network").style.visibility = document.getElementById("radio-control-network").style.visibility =
"hidden"; "hidden";
document.getElementById("radio-control-rigctld-info").style.visibility = document.getElementById("radio-control-rigctld-info").style.visibility =
"hidden"; "hidden";
document.getElementById("radio-control-rigctld-info").style.display = document.getElementById("radio-control-rigctld-info").style.display =
@ -535,8 +529,6 @@ window.addEventListener("DOMContentLoaded", () => {
fs.writeFileSync(configPath, JSON.stringify(config, null, 2)); fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
}); });
// // radio settings 'network' event listener // // radio settings 'network' event listener
document document
.getElementById("radio-control-switch-network") .getElementById("radio-control-switch-network")

View file

@ -69,7 +69,7 @@
</label> </label>
</div> </div>
<div class="input-group input-group-sm me-2" id="remote-tnc-field"> <div class="input-group input-group-sm me-2" id="remote-tnc-field">
<span class="input-group-text" >TNC IP</span> <span class="input-group-text">TNC IP</span>
<input <input
type="text" type="text"
class="form-control" class="form-control"
@ -81,7 +81,7 @@
aria-label="Username" aria-label="Username"
aria-describedby="basic-addon1" aria-describedby="basic-addon1"
/> />
<span class="input-group-text" >:</span> <span class="input-group-text">:</span>
<input <input
type="text" type="text"
class="form-control" class="form-control"
@ -278,7 +278,7 @@
</div> </div>
<div class="card-body p-2 mb-1"> <div class="card-body p-2 mb-1">
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" > <span class="input-group-text">
<i <i
class="bi bi-mic-fill" class="bi bi-mic-fill"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
@ -293,7 +293,7 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" > <span class="input-group-text">
<i <i
class="bi bi-volume-up" class="bi bi-volume-up"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
@ -337,14 +337,12 @@
> >
disabled disabled
</label> </label>
</div> </div>
<div <div
class="btn-group btn-group-sm" class="btn-group btn-group-sm"
role="group" role="group"
aria-label="radio-control-switch-rigctld" aria-label="radio-control-switch-rigctld"
> >
<input <input
type="radio" type="radio"
class="btn-check" class="btn-check"
@ -400,9 +398,7 @@
<!-- RADIO CONTROL NETWORK --> <!-- RADIO CONTROL NETWORK -->
<div id="radio-control-network"> <div id="radio-control-network">
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" <span class="input-group-text">Rigctld IP</span>
>Rigctld IP</span
>
<input <input
type="text" type="text"
class="form-control" class="form-control"
@ -411,7 +407,7 @@
aria-label="Device IP" aria-label="Device IP"
aria-describedby="basic-addon1" aria-describedby="basic-addon1"
/> />
<span class="input-group-text" >:</span> <span class="input-group-text">:</span>
<input <input
type="text" type="text"
class="form-control" class="form-control"
@ -473,7 +469,7 @@
data-bs-html="false" data-bs-html="false"
title="Enter your callsign and save it" title="Enter your callsign and save it"
> >
<span class="input-group-text" > <span class="input-group-text">
<i <i
class="bi bi-person-bounding-box" class="bi bi-person-bounding-box"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
@ -522,7 +518,7 @@
data-bs-html="false" data-bs-html="false"
title="Enter your gridsquare and save it" title="Enter your gridsquare and save it"
> >
<span class="input-group-text" > <span class="input-group-text">
<i <i
class="bi bi-house-fill" class="bi bi-house-fill"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
@ -1080,9 +1076,7 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<span class="input-group-text" <span class="input-group-text">Mode</span>
>Mode</span
>
<select <select
class="form-select form-select-sm" class="form-select form-select-sm"
aria-label=".form-select-sm" aria-label=".form-select-sm"
@ -1098,9 +1092,7 @@
</div> </div>
<div class="col-auto"> <div class="col-auto">
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<span class="input-group-text" <span class="input-group-text">Frames</span>
>Frames</span
>
<select <select
class="form-select form-select-sm" class="form-select form-select-sm"
aria-label=".form-select-sm" aria-label=".form-select-sm"
@ -1379,7 +1371,7 @@
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<span class="input-group-text" > <span class="input-group-text">
<i <i
class="bi bi-speedometer2" class="bi bi-speedometer2"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
@ -1398,7 +1390,7 @@
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
></i> ></i>
</span> </span>
<span class="input-group-text" > <span class="input-group-text">
<i <i
class="bi bi-file-earmark-binary" class="bi bi-file-earmark-binary"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
@ -1415,7 +1407,6 @@
> >
<span <span
class="input-group-text" class="input-group-text"
data-bs-toggle="tooltip" data-bs-toggle="tooltip"
title="Indicates if a session is active" title="Indicates if a session is active"
><span class="bi bi-chat-fill" id="spnConnectedWith"></span ><span class="bi bi-chat-fill" id="spnConnectedWith"></span
@ -1483,15 +1474,15 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" >Test-Frame</span> <span class="input-group-text">Test-Frame</span>
<button type="button" id="sendTestFrame" class="btn btn-danger"> <button type="button" id="sendTestFrame" class="btn btn-danger">
Transmit Transmit
</button> </button>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" >TX Level</span> <span class="input-group-text">TX Level</span>
<span class="input-group-text" id="audioLevelTXvalue">---</span> <span class="input-group-text" id="audioLevelTXvalue">---</span>
<span class="input-group-text w-75" > <span class="input-group-text w-75">
<input <input
type="range" type="range"
class="form-range" class="form-range"
@ -1612,9 +1603,7 @@
tabindex="0" tabindex="0"
> >
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50" <span class="input-group-text w-50">GUI theme</span>
>GUI theme</span
>
<select <select
class="form-select form-select-sm w-50" class="form-select form-select-sm w-50"
id="theme_selector" id="theme_selector"
@ -1648,9 +1637,7 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50" <span class="input-group-text w-50">Waterfall theme</span>
>Waterfall theme</span
>
<select <select
class="form-select form-select-sm w-50" class="form-select form-select-sm w-50"
id="wftheme_selector" id="wftheme_selector"
@ -1690,9 +1677,7 @@
/> />
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50" <span class="input-group-text w-50">Update channel</span>
>Update channel</span
>
<select <select
class="form-select form-select-sm w-50" class="form-select form-select-sm w-50"
id="update_channel_selector" id="update_channel_selector"
@ -1712,7 +1697,9 @@
tabindex="0" tabindex="0"
> >
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Rigctld command</span> <span class="input-group-text" style="width: 180px"
>Rigctld command</span
>
<input <input
type="text" type="text"
class="form-control" class="form-control"
@ -1722,7 +1709,7 @@
aria-describedby="basic-addon1" aria-describedby="basic-addon1"
/> />
</div> </div>
<hr class="m-2"> <hr class="m-2" />
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px" <span class="input-group-text" style="width: 180px"
>Rigctld Path</span >Rigctld Path</span
@ -1749,13 +1736,14 @@
aria-describedby="basic-addon1" aria-describedby="basic-addon1"
/> />
</div> </div>
<hr class="m-2"> <hr class="m-2" />
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px"> <span class="input-group-text" style="width: 180px">
<i <i
class="bi bi-projector-fill me-2" class="bi bi-projector-fill me-2"
style="font-size: 0.8rem; color: black" style="font-size: 0.8rem; color: black"
></i> Radio model ></i>
Radio model
</span> </span>
<input <input
class="form-control" class="form-control"
@ -1857,9 +1845,7 @@
<option value="2045">Elecraft KX3</option> <option value="2045">Elecraft KX3</option>
<option value="2046">Hilberling PT-8000A</option> <option value="2046">Hilberling PT-8000A</option>
<option value="2047">Elecraft K4</option> <option value="2047">Elecraft K4</option>
<option value="2048"> <option value="2048">FlexRadio/ANAN PowerSDR/Thetis</option>
FlexRadio/ANAN PowerSDR/Thetis
</option>
<option value="2049">Malachite DSP</option> <option value="2049">Malachite DSP</option>
<option value="3002">Icom IC-1275</option> <option value="3002">Icom IC-1275</option>
<option value="3003">Icom IC-271</option> <option value="3003">Icom IC-271</option>
@ -2017,9 +2003,7 @@
<option value="25015">Funkamateur FA-SDR</option> <option value="25015">Funkamateur FA-SDR</option>
<option value="25016">AE9RB Si570 Peaberry V1</option> <option value="25016">AE9RB Si570 Peaberry V1</option>
<option value="25017">AE9RB Si570 Peaberry V2</option> <option value="25017">AE9RB Si570 Peaberry V2</option>
<option value="25018"> <option value="25018">AMSAT-UK FUNcube Dongle Pro+</option>
AMSAT-UK FUNcube Dongle Pro+
</option>
<option value="25019">HobbyPCB RS-HFIQ</option> <option value="25019">HobbyPCB RS-HFIQ</option>
<option value="26001">Video4Linux SW/FM radio</option> <option value="26001">Video4Linux SW/FM radio</option>
<option value="26002">Video4Linux2 SW/FM radio</option> <option value="26002">Video4Linux2 SW/FM radio</option>
@ -2044,9 +2028,10 @@
<i <i
class="bi bi-usb-symbol" class="bi bi-usb-symbol"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
></i> Device Port ></i>
Device Port
</span> </span>
<span class="input-group-text" > <span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2062,17 +2047,16 @@
<!--<option selected value="/dev/ttyUSB0">/dev/ttyUSB0</option> <!--<option selected value="/dev/ttyUSB0">/dev/ttyUSB0</option>
<option value="/dev/ttyUSB1">/dev/ttyUSB1</option>--> <option value="/dev/ttyUSB1">/dev/ttyUSB1</option>-->
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px" <span class="input-group-text" style="width: 180px"
><i ><i
class="bi bi-speedometer" class="bi bi-speedometer"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
></i ></i>
> Serial Speed</span> Serial Speed</span
<span class="input-group-text" > >
<span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2097,8 +2081,10 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Data bits</span> <span class="input-group-text" style="width: 180px"
<span class="input-group-text" > >Data bits</span
>
<span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2115,8 +2101,10 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Stop Bits</span> <span class="input-group-text" style="width: 180px"
<span class="input-group-text" > >Stop Bits</span
>
<span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2133,8 +2121,10 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Serial Handshake</span> <span class="input-group-text" style="width: 180px"
<span class="input-group-text" > >Serial Handshake</span
>
<span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2156,8 +2146,9 @@
class="bi bi-usb-symbol" class="bi bi-usb-symbol"
style="font-size: 1rem; color: black" style="font-size: 1rem; color: black"
></i ></i
>PTT Device Port</span> >PTT Device Port</span
<span class="input-group-text" > >
<span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2173,8 +2164,10 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">PTT Type</span> <span class="input-group-text" style="width: 180px"
<span class="input-group-text" > >PTT Type</span
>
<span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2198,7 +2191,7 @@
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">DCD</span> <span class="input-group-text" style="width: 180px">DCD</span>
<span class="input-group-text" > <span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2218,10 +2211,10 @@
<option value="CD">CD</option> <option value="CD">CD</option>
<option value="PARALLEL">PARALLEL</option> <option value="PARALLEL">PARALLEL</option>
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">DTR</span> <span class="input-group-text" style="width: 180px">DTR</span>
<span class="input-group-text" > <span class="input-group-text">
<input <input
class="form-check-sm form-check-input" class="form-check-sm form-check-input"
type="checkbox" type="checkbox"
@ -2238,9 +2231,6 @@
<option value="ON">ON</option> <option value="ON">ON</option>
</select> </select>
</div> </div>
</div> </div>
<!-- TNC Tab contents--> <!-- TNC Tab contents-->
@ -2277,9 +2267,7 @@
</select> </select>
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50" <span class="input-group-text w-50">Beacon interval</span>
>Beacon interval</span
>
<select <select
class="form-select form-select-sm" class="form-select form-select-sm"
aria-label=".form-select-sm" aria-label=".form-select-sm"