From 27e9ee93fb376af08c38ccf32b25b846ff5f9695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Farka=C5=A1?= Date: Fri, 25 Apr 2025 12:46:34 +0200 Subject: [PATCH] reformat index.ejs --- web/index.ejs | 1025 +++++++++++++++++++++++++------------------------ 1 file changed, 513 insertions(+), 512 deletions(-) diff --git a/web/index.ejs b/web/index.ejs index 0800cc7..eec89e1 100644 --- a/web/index.ejs +++ b/web/index.ejs @@ -1,436 +1,437 @@ + - <%= tunerName %> - FM-DX Webserver - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + <%= tunerName %> - FM-DX Webserver + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
-
-

- <%= tunerName %> -

- <% if(!publicTuner || tunerLock) { %> -
- <% if (!publicTuner) { %> - <% } if (tunerLock) { %> - <% } %> -
- <% } %> -
-
- -
-
-
-
-
- -
-
-
-
- - <% if (chatEnabled) { %> - - <% } %> - -
+
+
+

+ <%= tunerName %> +

+ <% if(!publicTuner || tunerLock) { %> +
+ <% if (!publicTuner) { %> + <% } if (tunerLock) { %> + <% } %> +
+ <% } %> +
+
+
-
-
- -
-
- <%- tunerDesc %> - <% if(tuningLimit && tuningLimit == true){ %> -
Limit: <%= tuningLowerLimit %> MHz - <%= tuningUpperLimit %> MHz
- <% } %> -
- -
-
-
- Device
- - <% if (device == 'tef') { %>TEF668x<% } %> - <% if (device == 'xdr') { %>Sony XDR<% } %> - <% if (device == 'sdr') { %>SDR<% } %> - -
-
- -
-
- -
-
- Server time
- -
-
- -
-
- -
- -
- -
- <% const presets = [1, 2, 3, 4]; %> - -
- <% presets.forEach(preset => { %> - - <% }); %> -
- -
-
- -
-
- Owner contact
- <%= ownerContact %> -
-
-
- +
+
+
+ +
+
+
+
+ + <% if (chatEnabled) { %> + + <% } %> + +
-
-
-
- +
+
+ +
+
+ <%- tunerDesc %> + <% if(tuningLimit && tuningLimit == true){ %> +
Limit: <%= tuningLowerLimit %> MHz - <%= tuningUpperLimit %> MHz
+ <% } %> +
+ +
+
+
+ Device
+ + <% if (device == 'tef') { %>TEF668x<% } %> + <% if (device == 'xdr') { %>Sony XDR<% } %> + <% if (device == 'sdr') { %>SDR<% } %> + +
+
+ +
+
+ +
+
+ Server time
+ +
+
+ +
+
+ +
+ +
+ +
+ <% const presets = [1, 2, 3, 4]; %> + +
+ <% presets.forEach(preset => { %> + + <% }); %> +
+ +
+
+ +
+
+ Owner contact
+ <%= ownerContact %> +
+
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+ +
+
+ +
+

+
+

+

+ TP + TA +
+
- -
-
-
-
-
- -
-
- -
-
- -
-

-
-

-

- TP - TA -
- -
- -
-
-
-
- -
- MS -

-
-
- -
-
-

PI CODE

-
-   -
- -
- -
-

FREQUENCY

- -
- -
-

SIGNAL

-
- - - <% if (device == 'sdr') { %> dB SNR <% } else { %> <% } %> -
-
- - <% if (device == 'sdr') { %> dB SNR <% } else { %> dBf <% } %> -
-
-
- -
-
-
-
- -
- - <% if (antennas.enabled == true) { %> - - <% } %> - -
- <% if (device == 'tef') { %><% } %> - <% if (device == 'xdr') { %><% } %> -
-
- <% if (device == 'tef') { %><% } %> - <% if (device == 'xdr') { %><% } %> -
-
-
- -
- - - -
- -
-
- - - - <% if (device == 'tef' && bwSwitch == true) { %> - - <% } %> - - <% if (device == 'xdr' && bwSwitch == true) { %> - - <% } %> - - <% if (device == 'sdr' && bwSwitch == true) { %> - - <% } %> - <% if (fmlist_integration == true) { %> - - <% } %> -
-
-
- -
-
-

RADIOTEXT

-
- -
-
- -
-
-
- -
-
-

- -

-

- [] -

- - kW [] - -
-
-
- -
- -
-
-

AF

-
-
-
-
+ + + <% } %> +
+
+

-
-
-
-

-
-

-

- TP - TA -
- -
- -
-
-
-
- -
- MS -

-
-
+
+
+

RADIOTEXT

+
+ +
+
+ +
+
+
- - - -
-
- - - <% if (!noPlugins) { %> - <% plugins?.forEach(function(plugin) { %> - - <% }); %> - <% } %> - - - \ No newline at end of file +
+ <%- include('_components', {component: 'checkbox', cssClass: 'top-25', label: 'Manual decimals', id: 'extended-frequency-range'}) %> + <%- include('_components', {component: 'checkbox', cssClass: '', label: 'RDS PS Underscores', id: 'ps-underscores'}) %> + <%- include('_components', {component: 'checkbox', cssClass: '', label: 'Imperial units', id: 'imperial-units'}) %> +
+ + <% if (isAdminAuthenticated) { %> +

You are logged in as an adminstrator.

+
+
+ +
+
+ +
+
+ +
+ +
+ <% } else if (isTuneAuthenticated) { %> +

You are logged in and can control the receiver.

+
+
+ +
+ +
+ <% } else { %> +
+ + +
+ <% } %> +
 
+ +
+

+ FM-DX Webserver +

+

by FMDX.org

+ [Receiver Map] +
+

+
+
+
+ +
+
+
+
+ + + <% if (!noPlugins) { %> + <% plugins?.forEach(function(plugin) { %> + + <% }); %> + <% } %> + + + \ No newline at end of file