You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
bugfix pack, server logs
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
<div class="panel-100 p-10">
|
||||
<br>
|
||||
<i class="text-big fa-solid fa-exclamation-triangle color-4"></i>
|
||||
<p>You are not authorized to use this tuner. Please try again later or contact the owner.</p>
|
||||
<p>You are not authorized to use this tuner. <br>
|
||||
There's a possibility you were kicked or banned by the administrator.<br>
|
||||
Please try again later or contact the owner.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -92,6 +92,11 @@ label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#data-station-container h2 {
|
||||
display: block !important;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#data-station-name {
|
||||
font-size: 20px;
|
||||
}
|
||||
@@ -309,11 +314,14 @@ pre {
|
||||
}
|
||||
.highest-signal-container {
|
||||
margin-top: -20px !important;
|
||||
margin-bottom: 15px !important;
|
||||
margin-bottom: -15px !important;
|
||||
}
|
||||
#pi-code-container {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
#data-pi {
|
||||
font-size: 24px;
|
||||
margin-top: 20px;
|
||||
margin-top: 5px;
|
||||
color: var(--color-text-2);
|
||||
}
|
||||
h2.show-phone {
|
||||
@@ -324,16 +332,18 @@ pre {
|
||||
font-size: 42px;
|
||||
}
|
||||
#data-frequency {
|
||||
font-size: 72px;
|
||||
font-size: 64px;
|
||||
}
|
||||
#data-rt0, #data-rt1 {
|
||||
font-size: 10px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
word-break: break-all;
|
||||
white-space: nowrap;
|
||||
overflow-x:auto;
|
||||
padding: 5px 0;
|
||||
}
|
||||
#rt-container {
|
||||
height: 32px !important;
|
||||
height: max-content !important;
|
||||
}
|
||||
ul {
|
||||
font-size: 16px;
|
||||
@@ -376,10 +386,12 @@ pre {
|
||||
#af-list ul {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
#rt-container {
|
||||
order: 2;
|
||||
}
|
||||
.modal-panel-footer {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 769px) and (max-height: 860px) {
|
||||
@@ -412,6 +424,14 @@ pre {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h2.signal-heading {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.highest-signal-container {
|
||||
margin-bottom: -10px !important;
|
||||
}
|
||||
|
||||
h2.mb-0 {
|
||||
margin-bottom: 0;
|
||||
margin-top: 2px !important;
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
<div style="display:inline-block">
|
||||
<span style="margin-left: 20px;display: block;margin-top: 2px;" class="data-flag"></span>
|
||||
</div>
|
||||
<span id="stereo-container" class="pointer" style="position: relative;">
|
||||
<span class="pointer stereo-container" style="position: relative;">
|
||||
<span style="margin-left: 20px;" class="data-st">ST</span>
|
||||
<span class="overlay tooltip" data-tooltip="Stereo / Mono toggle. <br><strong>Click to toggle."></span>
|
||||
</span>
|
||||
@@ -98,7 +98,7 @@
|
||||
</div>
|
||||
|
||||
<div class="panel-33">
|
||||
<h2>SIGNAL</h2>
|
||||
<h2 class="signal-heading">SIGNAL</h2>
|
||||
<div class="text-small text-gray highest-signal-container">
|
||||
<i class="fa-solid fa-arrow-up"></i>
|
||||
<span id="data-signal-highest"></span>
|
||||
@@ -120,7 +120,7 @@
|
||||
</div>
|
||||
|
||||
<% if (antennas.enabled == true) { %>
|
||||
<div class="panel-50 no-bg h-100 m-0 dropdown" id="data-ant" style="margin-right: 25px;width:125px;">
|
||||
<div class="panel-50 no-bg h-100 m-0 dropdown" id="data-ant" style="margin-right: 25px;">
|
||||
<input type="text" placeholder="Ant A" readonly>
|
||||
<ul class="options">
|
||||
<% if(antennas.ant1.enabled == true) { %><li data-value="0" class="option"><%= antennas.ant1.name %></li><% } %>
|
||||
@@ -249,8 +249,12 @@
|
||||
<div class="flex-container flex-phone flex-phone-column">
|
||||
<div class="panel-75 hover-brighten" id="rt-container" style="height: 100px;">
|
||||
<h2 style="margin-top: 4px;">RADIOTEXT</h2>
|
||||
<div id="data-rt0"></div>
|
||||
<div id="data-rt1"></div>
|
||||
<div id="data-rt0">
|
||||
<span></span>
|
||||
</div>
|
||||
<div id="data-rt1">
|
||||
<span></span>
|
||||
</div>
|
||||
<hr class="hide-desktop">
|
||||
</div>
|
||||
|
||||
@@ -297,7 +301,10 @@
|
||||
<div style="display:inline-block">
|
||||
<span style="margin-left: 20px;display: block;margin-top: 2px;" class="data-flag"></span>
|
||||
</div>
|
||||
<span style="margin-left: 20px;" class="data-st"></span>
|
||||
<span class="pointer stereo-container" style="position: relative;">
|
||||
<span style="margin-left: 20px;" class="data-st">ST</span>
|
||||
<span class="overlay tooltip" data-tooltip="Stereo / Mono toggle. <br><strong>Click to toggle."></span>
|
||||
</span>
|
||||
<span style="margin-left: 15px;" class="data-ms">MS</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
@@ -74,15 +74,15 @@ $(document).ready(function() {
|
||||
if (savedNickname) {
|
||||
chatNicknameInput.val(savedNickname);
|
||||
}
|
||||
});
|
||||
|
||||
function sendMessage() {
|
||||
const nickname = chatNicknameInput.val().trim() || 'Anonymous user';
|
||||
const message = chatSendInput.val().trim();
|
||||
|
||||
if (message) {
|
||||
const messageData = { nickname, message };
|
||||
chatSocket.send(JSON.stringify(messageData));
|
||||
chatSendInput.val('');
|
||||
function sendMessage() {
|
||||
const nickname = savedNickname || 'Anonymous user';
|
||||
const message = chatSendInput.val().trim();
|
||||
|
||||
if (message) {
|
||||
const messageData = { nickname, message };
|
||||
chatSocket.send(JSON.stringify(messageData));
|
||||
chatSendInput.val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,9 +1,9 @@
|
||||
var currentDate = new Date('March 25, 2024 23:00:00');
|
||||
var currentDate = new Date('March 28, 2024 22:00:00');
|
||||
var day = currentDate.getDate();
|
||||
var month = currentDate.getMonth() + 1; // Months are zero-indexed, so add 1
|
||||
var year = currentDate.getFullYear();
|
||||
var formattedDate = day + '/' + month + '/' + year;
|
||||
var currentVersion = 'v1.1.8 [' + formattedDate + ']';
|
||||
var currentVersion = 'v1.1.9 [' + formattedDate + ']';
|
||||
|
||||
getInitialSettings();
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ $(document).ready(function () {
|
||||
$(rtContainer).on("click", copyRt);
|
||||
$(txContainer).on("click", copyTx);
|
||||
$(piCodeContainer).on("click", findOnMaps);
|
||||
$(document).on("click", "#stereo-container", toggleForcedStereo);
|
||||
$(document).on("click", ".stereo-container", toggleForcedStereo);
|
||||
$(freqContainer).on("click", function () {
|
||||
textInput.focus();
|
||||
});
|
||||
@@ -476,9 +476,7 @@ function tuneDown() {
|
||||
}
|
||||
|
||||
function tuneTo(freq) {
|
||||
if (socket.readyState === WebSocket.OPEN) {
|
||||
socket.send("T" + ((freq).toFixed(1) * 1000));
|
||||
}
|
||||
}
|
||||
|
||||
async function copyPs() {
|
||||
@@ -513,8 +511,8 @@ async function copyTx() {
|
||||
}
|
||||
|
||||
async function copyRt() {
|
||||
var rt0 = $('#data-rt0').text();
|
||||
var rt1 = $('#data-rt1').text();
|
||||
var rt0 = $('#data-rt0 span').text();
|
||||
var rt1 = $('#data-rt1 span').text();
|
||||
|
||||
try {
|
||||
await copyToClipboard("[0] RT: " + rt0 + "\n[1] RT: " + rt1);
|
||||
@@ -578,11 +576,13 @@ function updateSignalUnits(parsedData, averageSignal) {
|
||||
switch (signalUnit) {
|
||||
case 'dbuv':
|
||||
signalValue = currentSignal - 11.25;
|
||||
highestSignal = highestSignal - 11.25;
|
||||
signalText.text('dBµV');
|
||||
break;
|
||||
|
||||
case 'dbm':
|
||||
signalValue = currentSignal - 120;
|
||||
highestSignal = highestSignal - 120;
|
||||
signalText.text('dBm');
|
||||
break;
|
||||
|
||||
@@ -606,8 +606,8 @@ function updateDataElements(parsedData) {
|
||||
const $dataPi = $('#data-pi');
|
||||
const $dataPs = $('#data-ps');
|
||||
const $dataSt = $('.data-st');
|
||||
const $dataRt0 = $('#data-rt0');
|
||||
const $dataRt1 = $('#data-rt1');
|
||||
const $dataRt0 = $('#data-rt0 span');
|
||||
const $dataRt1 = $('#data-rt1 span');
|
||||
const $dataAntInput = $('#data-ant input');
|
||||
const $dataBwInput = $('#data-bw input');
|
||||
const $dataStationContainer = $('#data-station-container');
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
<div class="panel-100 no-bg">
|
||||
<h3>Themes</h3>
|
||||
<div class="form-group">
|
||||
<label for="themes"><i class="fa-solid fa-palette"></i>Default server theme:</label>
|
||||
<label for="themes"><i class="fa-solid fa-palette"></i> Default server theme:</label>
|
||||
<div class="dropdown" id="server-theme-selector" style="margin-right: 0;">
|
||||
<input type="text" placeholder="Default" id="selected-theme" readonly>
|
||||
<ul class="options">
|
||||
@@ -509,6 +509,7 @@
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<script src="js/init.js"></script>
|
||||
<script src="js/settings.js"></script>
|
||||
<script src="js/dropdown.js"></script>
|
||||
<script src="js/setup.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user