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
502 lines
34 KiB
Plaintext
502 lines
34 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>FM-DX Webserver [<%= tunerName %>]</title>
|
|
<link href="css/entry.css" type="text/css" rel="stylesheet">
|
|
<link href="css/flags.min.css" type="text/css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" type="text/css" rel="stylesheet">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
|
|
<link rel="icon" type="image/png" href="favicon.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta property="og:title" content="FM-DX WebServer [<%= tunerName %>]">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:image" content="https://fmdx.org/img/webserver_icon.png">
|
|
<meta property="og:description" content="Server description: <%= tunerDescMeta %>.">
|
|
|
|
<script src="js/init.js"></script>
|
|
|
|
<!-- 3LAS Scripts for Audio streaming -->
|
|
<script src="js/3las/util/3las.helpers.js"></script>
|
|
<script src="js/3las/util/3las.logging.js"></script>
|
|
<script src="js/3las/fallback/3las.liveaudioplayer.js"></script>
|
|
<script src="js/3las/fallback/3las.formatreader.js"></script>
|
|
<script src="js/3las/fallback/formats/3las.formatreader.mpeg.js"></script>
|
|
<script src="js/3las/fallback/formats/3las.formatreader.wav.js"></script>
|
|
<script src="js/3las/util/3las.websocketclient.js"></script>
|
|
<script src="js/3las/fallback/3las.fallback.js"></script>
|
|
<script src="js/3las/3las.js"></script>
|
|
<script src="js/3las/main.js"></script>
|
|
<script type="text/javascript">
|
|
window.addEventListener('load', Init, false);
|
|
document.ontouchmove = function(e){
|
|
e.preventDefault();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="wrapper-outer">
|
|
<div id="wrapper">
|
|
<div class="panel-100 no-bg tuner-info">
|
|
<h1 id="tuner-name"><span class="text-bold" style="color: var(--color-text);">[</span> <%= tunerName %> <span class="text-bold" style="color: var(--color-text);">]</span>
|
|
<% if (!publicTuner) { %><i class="fa-solid fa-key pointer tooltip" aria-label="Only people with tune password can tune." data-tooltip="Only people with tune password can tune."></i>
|
|
<% } if (tunerLock) { %><i class="fa-solid fa-lock pointer tooltip" aria-label="Tuner is currently locked to admin." data-tooltip="Tuner is currently locked to admin."></i>
|
|
<% } %>
|
|
</h1>
|
|
<p id="tuner-desc">
|
|
<%- tunerDesc %>
|
|
<% if(tuningLimit && tuningLimit == true){ %>
|
|
<br><span class="text-small">Limit: <span class="color-4"><%= tuningLowerLimit %> MHz - <%= tuningUpperLimit %> MHz</span></span><br>
|
|
<% } %>
|
|
</p>
|
|
<div style="clear: both"></div>
|
|
</div>
|
|
<div class="canvas-container hide-phone">
|
|
<canvas id="signal-canvas"></canvas>
|
|
</div>
|
|
|
|
<div class="flex-container">
|
|
<div class="panel-100 no-bg" style="margin-top: 0; margin-left: 0;">
|
|
<div class="flex-container">
|
|
<div class="panel-75 flex-container no-bg">
|
|
<div class="panel-10 no-bg h-100 m-0 m-right-20 hide-phone" style="width: 100px;margin-right: 20px !important;">
|
|
<button class="playbutton" aria-label="Play / Stop"><i class="fa-solid fa-play fa-lg"></i></button>
|
|
</div>
|
|
<div class="panel-100 m-0 hover-brighten flex-center tooltip" id="ps-container" style="height: 90px;" data-tooltip="Clicking on the RDS PS will copy the RDS info into the clipboard.">
|
|
<span class="text-big" id="data-ps"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="flags-container-desktop" class="panel-33 user-select-none">
|
|
<h2 class="show-phone">
|
|
<div class="data-pty text-color-default"></div>
|
|
</h2>
|
|
<h3 style="margin-top:0;margin-bottom:0;" class="color-4 flex-center">
|
|
<span class="data-tp">TP</span>
|
|
<span style="margin-left: 15px;" class="data-ta">TA</span>
|
|
<div style="display:inline-block">
|
|
<span style="margin-left: 20px;display: block;margin-top: 2px;" class="data-flag"></span>
|
|
</div>
|
|
<span class="pointer stereo-container" style="position: relative; margin-left: 20px;" role="button" aria-label="Stereo / Mono toggle" tabindex="0">
|
|
<div class="circle-container">
|
|
<div class="circle data-st circle1"></div>
|
|
<div class="circle data-st circle2"></div>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
|
|
<div class="flex-container">
|
|
<div class="panel-33 hover-brighten tooltip" id="pi-code-container" data-tooltip="Clicking on the PI code will show the current station on a map.">
|
|
<h2>PI CODE</h2>
|
|
<div class="text-small text-gray highest-signal-container">
|
|
<span id="data-regular-pi"> </span>
|
|
</div>
|
|
<span id="data-pi" class="text-big text-uppercase"></span>
|
|
</div>
|
|
|
|
<div class="panel-33 hover-brighten" id="freq-container">
|
|
<h2>FREQUENCY</h2>
|
|
<span id="data-frequency" class="text-big"></span>
|
|
</div>
|
|
|
|
<div class="panel-33">
|
|
<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>
|
|
<% if (device == 'sdr') { %> <span>dB SNR</span> <% } else { %> <span class="signal-units"></span> <% } %>
|
|
</div>
|
|
<div class="text-big">
|
|
<span id="data-signal"></span><!--
|
|
--><span id="data-signal-decimal" class="text-medium-big" style="opacity:0.7;"></span>
|
|
<% if (device == 'sdr') { %> <span class="text-medium">dB SNR</span> <% } else { %> <span class="signal-units text-medium">dBf</span> <% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex-container flex-phone flex-phone-column">
|
|
<div class="panel-33 no-bg filter-controls" style="height: 48px;">
|
|
<div class="flex-container no-filter flex-phone h-100">
|
|
<div class="panel-75 no-bg h-100 m-0 hide-desktop m-right-20 button-play-mobile" style="margin-right: 20px;">
|
|
<button class="playbutton" aria-label="Play/Stop"><i class="fa-solid fa-play"></i></button>
|
|
</div>
|
|
|
|
<% if (antennas.enabled == true) { %>
|
|
<div class="panel-50 no-bg h-100 br-0 m-0 dropdown dropdown-up" id="data-ant" style="margin-right: 25px;">
|
|
<input type="text" placeholder="Ant A" readonly tabindex="0">
|
|
<ul class="options open-top" tabindex="-1">
|
|
<% if(antennas.ant1.enabled == true) { %><li data-value="0" class="option" tabindex="0"><%= antennas.ant1.name %></li><% } %>
|
|
<% if(antennas.ant2.enabled == true) { %><li data-value="1" class="option" tabindex="0"><%= antennas.ant2.name %></li><% } %>
|
|
<% if(antennas.ant3.enabled == true) { %><li data-value="2" class="option" tabindex="0"><%= antennas.ant3.name %></li><% } %>
|
|
<% if(antennas.ant4.enabled == true) { %><li data-value="3" class="option" tabindex="0"><%= antennas.ant4.name %></li><% } %>
|
|
</ul>
|
|
</div>
|
|
<% } %>
|
|
|
|
<div class="panel-50 no-bg br-0 h-100 m-0 button-eq">
|
|
<% if (device == 'tef') { %><button id="data-eq" style="border-radius: 15px 0px 0px 15px;" class="tooltip" aria-label="EQ Filter" data-tooltip="<strong>The cEQ filter can reduce bandwidth below 56 KHz.</strong><br><br>Useful for weak stations next to strong ones,<br>although it may pick up more interference."><span class="text-bold">cEQ</span></button><% } %>
|
|
<% if (device == 'xdr') { %><button id="data-eq" style="border-radius: 15px 0px 0px 15px;" class="tooltip" aria-label="RF+ Filter" data-tooltip="<strong>The RF+ filter increases gain by 5dB</strong>"><span class="text-bold">RF+</span></button><% } %>
|
|
</div>
|
|
<div class="panel-50 no-bg br-0 h-100 m-0 button-ims">
|
|
<% if (device == 'tef') { %><button id="data-ims" style="border-radius: 0px 15px 15px 0px;" class="tooltip" aria-label="iMS + Filter" data-tooltip="<strong>The iMS filter reduces multipath audio artifacts.</strong><br><br>It's recommended to leave it on most of the time."><span class="text-bold">iMS</span></button><% } %>
|
|
<% if (device == 'xdr') { %><button id="data-ims" style="border-radius: 0px 15px 15px 0px;" class="tooltip" aria-label="IF+ Filter" data-tooltip="<strong>The IF+ filter increases gain by 6dB</strong>"><span class="text-bold">IF+</span></button><% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel-33 flex-container flex-phone no-bg" id="tune-buttons">
|
|
<button id="freq-down" aria-label="Tune down"><i class="fa-solid fa-chevron-left"></i></button>
|
|
<input type="text" id="commandinput" inputmode="numeric" placeholder="Frequency" autocomplete="off" aria-label="Current frequency: ">
|
|
<button id="freq-up" aria-label="Tune up"><i class="fa-solid fa-chevron-right"></i></button>
|
|
</div>
|
|
|
|
<div class="panel-33 hide-phone no-bg">
|
|
<div class="flex-container">
|
|
<span class="panel-100-real m-0" style="height: 48px;">
|
|
<input type="range" id="volumeSlider" min="0" max="1" step="0.01" value="1" aria-label="Volume slider">
|
|
</span>
|
|
<% if (device == 'tef' && bwSwitch == true) { %>
|
|
<div class="panel-50 w-150 no-bg h-100 m-0 dropdown dropdown-up" id="data-bw" style="margin-left: 15px !important;">
|
|
<input type="text" placeholder="Auto BW" readonly tabindex="0">
|
|
<ul class="options open-top" tabindex="-1">
|
|
<li data-value="0" class="option" tabindex="0">Auto</li>
|
|
<li data-value="56000" class="option" tabindex="0">56 KHz</li>
|
|
<li data-value="64000" class="option" tabindex="0">64 KHz</li>
|
|
<li data-value="72000" class="option" tabindex="0">72 KHz</li>
|
|
<li data-value="84000" class="option" tabindex="0">84 KHz</li>
|
|
<li data-value="97000" class="option" tabindex="0">97 KHz</li>
|
|
<li data-value="114000" class="option" tabindex="0">114 KHz</li>
|
|
<li data-value="133000" class="option" tabindex="0">133 KHz</li>
|
|
<li data-value="151000" class="option" tabindex="0">151 KHz</li>
|
|
<li data-value="184000" class="option" tabindex="0">184 KHz</li>
|
|
<li data-value="200000" class="option" tabindex="0">200 KHz</li>
|
|
<li data-value="217000" class="option" tabindex="0">217 KHz</li>
|
|
<li data-value="236000" class="option" tabindex="0">236 KHz</li>
|
|
<li data-value="254000" class="option" tabindex="0">254 KHz</li>
|
|
<li data-value="287000" class="option" tabindex="0">287 KHz</li>
|
|
<li data-value="311000" class="option" tabindex="0">311 KHz</li>
|
|
</ul>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (device == 'xdr' && bwSwitch == true) { %>
|
|
<div class="panel-50 w-150 no-bg h-100 m-0 dropdown dropdown-up" id="data-bw" style="margin-left: 15px !important;">
|
|
<input type="text" placeholder="Auto BW" readonly tabindex="0">
|
|
<ul class="options open-top" tabindex="-1">
|
|
<li data-value="0" data-value2="-1" class="option" tabindex="0">Auto</li>
|
|
<li data-value="55000" data-value2="0" class="option" tabindex="0">55 KHz</li>
|
|
<li data-value="73000" data-value2="1" class="option" tabindex="0">73 KHz</li>
|
|
<li data-value="90000" data-value2="2" class="option" tabindex="0">90 KHz</li>
|
|
<li data-value="108000" data-value2="3" class="option" tabindex="0">108 KHz</li>
|
|
<li data-value="125000" data-value2="4" class="option" tabindex="0">125 KHz</li>
|
|
<li data-value="142000" data-value2="5" class="option" tabindex="0">142 KHz</li>
|
|
<li data-value="159000" data-value2="6" class="option" tabindex="0">159 KHz</li>
|
|
<li data-value="177000" data-value2="7" class="option" tabindex="0">177 KHz</li>
|
|
<li data-value="194000" data-value2="8" class="option" tabindex="0">194 KHz</li>
|
|
<li data-value="211000" data-value2="9" class="option" tabindex="0">211 KHz</li>
|
|
<li data-value="229000" data-value2="10" class="option" tabindex="0">229 KHz</li>
|
|
<li data-value="246000" data-value2="11" class="option" tabindex="0">246 KHz</li>
|
|
<li data-value="263000" data-value2="12" class="option" tabindex="0">263 KHz</li>
|
|
<li data-value="281000" data-value2="13" class="option" tabindex="0">281 KHz</li>
|
|
<li data-value="298000" data-value2="14" class="option" tabindex="0">298 KHz</li>
|
|
<li data-value="309000" data-value2="15" class="option" tabindex="0">309 KHz</li>
|
|
</ul>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (device == 'sdr' && bwSwitch == true) { %>
|
|
<div class="panel-50 w-150 no-bg h-100 m-0 dropdown dropdown-up" id="data-bw" style="margin-left: 15px !important;">
|
|
<input type="text" placeholder="Auto BW" readonly tabindex="0">
|
|
<ul class="options open-top" tabindex="-1">
|
|
<li data-value="0" class="option" tabindex="0">Auto</li>
|
|
<li data-value="4000" class="option" tabindex="0">4 KHz</li>
|
|
<li data-value="8000" class="option" tabindex="0">8 KHz</li>
|
|
<li data-value="10000" class="option" tabindex="0">10 KHz</li>
|
|
<li data-value="20000" class="option" tabindex="0">20 KHz</li>
|
|
<li data-value="30000" class="option" tabindex="0">30 KHz</li>
|
|
<li data-value="50000" class="option" tabindex="0">50 KHz</li>
|
|
<li data-value="75000" class="option" tabindex="0">75 KHz</li>
|
|
<li data-value="100000" class="option" tabindex="0">100 KHz</li>
|
|
<li data-value="125000" class="option" tabindex="0">125 KHz</li>
|
|
<li data-value="150000" class="option" tabindex="0">150 KHz</li>
|
|
<li data-value="175000" class="option" tabindex="0">175 KHz</li>
|
|
<li data-value="200000" class="option" tabindex="0">200 KHz</li>
|
|
<li data-value="225000" class="option" tabindex="0">225 KHz</li>
|
|
</ul>
|
|
</div>
|
|
<% } %>
|
|
<% if (fmlist_integration == true) { %>
|
|
<button class="tooltip bg-color-4" id="log-fmlist"
|
|
data-tooltip="<strong>LOG TO FMLIST</strong><br>Clicking this button logs the current station to FMLIST's visual logbook." aria-label="Log to FMLIST"
|
|
style="width: 80px; height: 48px;margin-left: 15px !important;"><i class="fa-solid fa-flag fa-lg"></i></button>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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">
|
|
<span></span>
|
|
</div>
|
|
<div id="data-rt1">
|
|
<span></span>
|
|
</div>
|
|
<hr class="hide-desktop">
|
|
</div>
|
|
|
|
<div class="panel-33 hover-brighten tooltip" data-tooltip="This panel contains the current TX info when RDS is loaded.<br><strong>Clicking on this panel copies the info into the clipboard.</strong>">
|
|
<div id="data-station-container">
|
|
<h2 style="margin-top: 0;" class="mb-0">
|
|
<span id="data-station-name"></span>
|
|
</h2>
|
|
<h4 class="m-0">
|
|
<span id="data-station-city" style="font-size: 16px;"></span> <span class="text-small">[<span id="data-station-itu"></span>]</span>
|
|
</h4>
|
|
<span class="text-small">
|
|
<span id="data-station-erp"></span> kW [<span id="data-station-pol"></span>] <span class="text-gray">•</span> <span id="data-station-distance"></span> km <span class="text-gray">•</span> <span id="data-station-azimuth"></span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-10 no-bg m-0">
|
|
<div class="panel-100 w-100" style="margin-left: 0;">
|
|
<h2>AF</h2>
|
|
<div id="af-list" class="p-bottom-20" style="text-align: center;">
|
|
<% if (chatEnabled) { %><ul style="height: 231px;">
|
|
<% } else { %>
|
|
<ul style="height: 351px;">
|
|
<% } %>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<% if (chatEnabled) { %>
|
|
<div class="panel-10 no-bg h-100 hide-phone" style="width: 100px; height: 100px; margin-left: 0;">
|
|
<button class="chatbutton bg-color-2" aria-label="Chatbox"><i class="fa-solid fa-comments fa-lg"></i> (<span class="chat-messages-count">0</span>)</button>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
<div id="flags-container-phone" class="panel-33">
|
|
<h2 class="show-phone">
|
|
<div class="data-pty text-color-default"></div>
|
|
</h2>
|
|
<h3 style="margin-top:0;margin-bottom:0;" class="colornode-4 flex-center">
|
|
<span class="data-tp">TP</span>
|
|
<span style="margin-left: 15px;" class="data-ta">TA</span>
|
|
<div style="display:inline-block">
|
|
<span style="margin-left: 20px;display: block;margin-top: 2px;" class="data-flag"></span>
|
|
</div>
|
|
<span class="pointer stereo-container" style="position: noderelative; margin-left: 20px;" role="button" aria-label="Stereo / Mono toggle" tabindex="0">
|
|
<div class="circle-container">
|
|
<div class="circle data-st circle1"></div>
|
|
<div class="circle data-st circle2"></div>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
|
|
<button id="settings" aria-label="Settings"><i class="fa-solid fa-gear"></i></button>
|
|
<% if (chatEnabled) { %>
|
|
<button class="chatbutton hide-desktop bg-color-2" aria-label="Chatbox"><i class="fa-solid fa-comments fa-lg"></i> (<span class="chat-messages-count">0</span>)</button>
|
|
<% } %>
|
|
<button id="users-online-container" class="hide-phone" aria-label="Online users"><i class="fa-solid fa-user"></i> <span class="users-online"></span></button>
|
|
|
|
<div id="myModal" class="modal">
|
|
<div class="modal-panel">
|
|
<div class="flex-container flex-phone" style="height: calc(100% - 100px)">
|
|
<div class="modal-panel-sidebar hover-brighten flex-center text-medium-big closeModal" role="button" aria-label="Close settings" tabindex="0"><i class="fa-solid fa-chevron-right"></i></div>
|
|
<div class="modal-panel-content">
|
|
<h1 class="top-25">Settings</h1>
|
|
|
|
<div class="form-group top-25">
|
|
<label for="themes"><i class="fa-solid fa-palette"></i> Theme</label>
|
|
<div class="dropdown" id="theme-selector">
|
|
<input type="text" placeholder="Default" readonly tabindex="0">
|
|
<ul class="options" tabindex="-1">
|
|
<li class="option" tabindex="0" data-value="theme1">Default</li>
|
|
<li class="option" tabindex="0" data-value="theme2">Cappuccino</li>
|
|
<li class="option" tabindex="0" data-value="theme3">Nature</li>
|
|
<li class="option" tabindex="0" data-value="theme4">Ocean</li>
|
|
<li class="option" tabindex="0" data-value="theme5">Terminal</li>
|
|
<li class="option" tabindex="0" data-value="theme6">Nightlife</li>
|
|
<li class="option" tabindex="0" data-value="theme7">Blurple</li>
|
|
<li class="option" tabindex="0" data-value="theme8">Construction</li>
|
|
<li class="option" tabindex="0" data-value="theme9">AMOLED</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<% if (device !== 'sdr') { %>
|
|
<div class="form-group top-25">
|
|
<label for="signal"><i class="fa-solid fa-signal"></i> Signal units</label>
|
|
<div class="dropdown" id="signal-selector">
|
|
<input type="text" placeholder="dBf" readonly tabindex="0">
|
|
<ul class="options" tabindex="-1">
|
|
<li class="option" tabindex="0" data-value="dbf">dBf</li>
|
|
<li class="option" tabindex="0" data-value="dbuv">dBuV</li>
|
|
<li class="option" tabindex="0" data-value="dbm">dBm</li>
|
|
</ul>
|
|
</div>
|
|
</div><br>
|
|
<% } %>
|
|
|
|
<div class="form-group checkbox">
|
|
<input type="checkbox" tabindex="0" id="extended-frequency-range" aria-label="Add decimals manually">
|
|
<label for="extended-frequency-range" class="tooltip" data-tooltip="Enabling this will allow you to enter the decimal point manually.<br>Useful for servers that use upconverters."><i class="fa-solid fa-toggle-off m-right-10"></i> Manual decimal entry</label>
|
|
</div>
|
|
<div class="form-group checkbox">
|
|
<input type="checkbox" tabindex="0" id="ps-underscores" aria-label="Add underscores to RDS PS">
|
|
<label for="ps-underscores" class="tooltip" data-tooltip="Enabling this option replaces spaces in RDS PS with underscores."><i class="fa-solid fa-toggle-off m-right-10"></i> Underscores in RDS PS</label>
|
|
</div>
|
|
|
|
<div class="form-group bottom-20 hide-desktop" style="float: none;">
|
|
<label for="users-online"><i class="fa-solid fa-user"></i> Users online</label>
|
|
<span class="users-online" name="users-online">0</span>
|
|
</div>
|
|
|
|
<% if (isAdminAuthenticated) { %>
|
|
<p class="color-3">You are logged in as an adminstrator.</p>
|
|
<div class="admin-quick-dashboard">
|
|
<div class="icon tooltip <% if (tunerLock) { %>active<% } %>" id="dashboard-lock-admin" onClick="toggleAdminLock()" role="button" aria-label="Toggle admin lock until restart" tabindex="0" data-tooltip="Toggle admin lock<br>Lasts until restart">
|
|
<i class="fa-solid fa-lock"></i>
|
|
</div>
|
|
<div class="icon tooltip <% if (!publicTuner) { %>active<% } %>" id="dashboard-lock-tune" onClick="togglePasswordLock()" role="button" aria-label="Toggle password lock until restart" tabindex="0" data-tooltip="Toggle password lock<br>Lasts until restart">
|
|
<i class="fa-solid fa-key"></i>
|
|
</div>
|
|
<div class="icon tooltip" role="button" aria-label="Go to admin panel" tabindex="0" data-tooltip="Go to admin panel" onClick="window.open('./setup', '_blank').focus();">
|
|
<i class="fa-solid fa-user"></i>
|
|
</div>
|
|
<div class="icon tooltip logout-link" role="button" aria-label="Sign out" tabindex="0" data-tooltip="Sign out">
|
|
<i class="fa-solid fa-sign-out"></i>
|
|
</div>
|
|
</div>
|
|
<% } else if (isTuneAuthenticated) { %>
|
|
<p class="color-3">You are logged in and can control the receiver.</p>
|
|
<div class="admin-quick-dashboard">
|
|
<div class="icon tooltip logout-link" role="button" aria-label="Sign out" tabindex="0" data-tooltip="Sign out">
|
|
<i class="fa-solid fa-sign-out"></i>
|
|
</div>
|
|
</div>
|
|
<% } else { %>
|
|
<form action="./login" method="post" id="login-form" class="top-25">
|
|
<input type="password" id="password" name="password" placeholder="Password" style="width: 145px;" required>
|
|
<button type="submit" class="br-0 top-10 tooltip" style="height: 46px; width: 50px; margin-left: -2px;border-radius: 0 15px 15px 0;" role="button" aria-label="Log in" tabindex="0" data-tooltip="Log in">
|
|
<i class="fa-solid fa-right-to-bracket"></i>
|
|
</button>
|
|
</form>
|
|
<% } %>
|
|
<div id="login-message" class="color-3"> </div>
|
|
|
|
<hr class="color-2 auto">
|
|
|
|
<table class="auto text-left p-10">
|
|
<tr>
|
|
<td>Device:</td>
|
|
<td class="color-3 p-left-10">
|
|
<% if (device == 'tef') { %>TEF668x<% } %>
|
|
<% if (device == 'xdr') { %>Sony XDR<% } %>
|
|
<% if (device == 'sdr') { %>SDR<% } %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Server Time:</td>
|
|
<td class="color-3 p-left-10" id="server-time"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Local Time:</td>
|
|
<td class="color-3 p-left-10" id="client-time"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="auto">
|
|
<tr>
|
|
<td class="p-left-10">P1: <a class="color-3 pointer" id="preset1">87.5</a></td>
|
|
<td class="p-left-10">P2: <a class="color-3 pointer" id="preset2"></a></td>
|
|
<td class="p-left-10">P3: <a class="color-3 pointer" id="preset3"></a></td>
|
|
<td class="p-left-10">P4: <a class="color-3 pointer" id="preset4"></a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="version-info">
|
|
<p class="m-0">
|
|
FM-DX Webserver <span style="color: var(--color-3);" class="version-string"></span>
|
|
</p>
|
|
<p class="text-small m-0 color-3">by <a href="https://fmdx.org" target="_blank">FMDX.org</a></p>
|
|
<span class="text-small" style="color: var(--color-3);">[<a href="https://servers.fmdx.org/" target="_blank">Receiver Map</a>]</span>
|
|
<br>
|
|
<br>
|
|
<% if(ownerContact){ %>
|
|
<span>Owner contact:</span><br>
|
|
<span class="text-small m-0 bottom-20"><%= ownerContact %></span>
|
|
<% } %>
|
|
<p class="text-small color-3" id="current-ping"></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-panel-footer flex-container flex-phone">
|
|
<div class="modal-panel-sidebar" style="font-size: 22px;">
|
|
<div class="flex-center" style="height: 50px">
|
|
<i class="fa-solid fa-hand-holding-medical"></i>
|
|
</div>
|
|
<div class="flex-center" style="height: 50px">
|
|
<i class="fa-brands fa-discord"></i>
|
|
</div>
|
|
</div>
|
|
<div class="modal-panel-content">
|
|
<div class="hover-brighten br-0 bg-color-1" style="height: 50px;padding:12px;" onclick="window.open('https://buymeacoffee.com/noobish')">
|
|
<strong>Support</strong> the developer!
|
|
</div>
|
|
<div class="hover-brighten br-0 bg-color-1" style="height: 50px;padding:12px;" onclick="window.open('https://discord.com/invite/ZAVNdS74mC')">
|
|
Join our <strong>OpenRadio Discord</strong> community!
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-panel-chat">
|
|
<div class="modal-panel-sidebar hover-brighten flex-center text-medium-big closeModal" role="button" aria-label="Close chat" tabindex="0"><i class="fa-solid fa-chevron-down"></i></div>
|
|
<div class="modal-panel-content text-left">
|
|
<div style="text-align: center;">
|
|
<input type="text" id="chat-nickname" name="chat-nickname" placeholder="Nickname">
|
|
<button class="br-0 w-100 top-10" style="height: 44px" id="chat-nickname-save">Save</button>
|
|
<p style="margin: 5px;">
|
|
Current identity: <span style="color: #bada55;" id="chat-admin"></span> <strong id="chat-identity-nickname"></strong>
|
|
</p>
|
|
</div>
|
|
|
|
<div id="chat-chatbox" class="bg-color-1" style="height: 270px;padding: 10px;overflow-y: auto;">
|
|
</div>
|
|
|
|
<div class="flex-container flex-phone" style="align-content: stretch;">
|
|
<input class="bg-color-2" type="text" id="chat-send-message" name="chat-send-message" placeholder="Send message..." style="background-color: var(--color-2);width: 100%;">
|
|
<button aria-label="Send message" class="chat-send-message-btn br-0" style="width: 80px; height: 45px;"><i class="fa-solid fa-paper-plane"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="toast-container"></div>
|
|
<script src="js/websocket.js"></script>
|
|
<script src="js/webserver.js"></script>
|
|
<% if (!noPlugins) { %>
|
|
<% plugins?.forEach(function(plugin) { %>
|
|
<script src="js/plugins/<%= plugin %>"></script>
|
|
<% }); %>
|
|
<% } %>
|
|
</body>
|
|
</html>
|