66 lines
3.4 KiB
HTML
66 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>DMR Web Receiver</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; text-align: center; background-color: #2c3e50; color: white; margin-top: 40px; }
|
|
.container { max-width: 420px; margin: 0 auto; background: #34495e; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
|
|
.display { background: #1abc9c; padding: 20px; border-radius: 5px; font-size: 24px; font-family: monospace; margin-bottom: 20px; color: #fff; font-weight: bold; transition: background 0.3s; }
|
|
|
|
.tg-box { display: flex; gap: 10px; margin-bottom: 15px; }
|
|
input[type="number"] { flex: 1; padding: 12px; font-size: 16px; border-radius: 5px; border: none; outline: none; text-align: center; font-weight: bold; }
|
|
.set-btn { background-color: #e67e22; color: white; border: none; padding: 12px 18px; border-radius: 5px; font-size: 15px; cursor: pointer; font-weight: bold; }
|
|
.set-btn:hover { background-color: #d35400; }
|
|
|
|
.quick-tg { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
|
|
.quick-btn { background: #7f8c8d; color: white; border: none; padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; }
|
|
.quick-btn:hover { background: #95a5a6; }
|
|
|
|
/* --- STILE PER IL CONTROLLO VOLUME --- */
|
|
.volume-box { margin-bottom: 20px; text-align: left; background: #2c3e50; padding: 10px 15px; border-radius: 5px; }
|
|
.volume-box label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: #bdc3c7; font-weight: bold; }
|
|
input[type="range"] { width: 100%; cursor: pointer; accent-color: #3498db; }
|
|
|
|
.connect-btn { background-color: #3498db; color: white; padding: 15px 24px; border: none; border-radius: 5px; font-size: 18px; cursor: pointer; margin-bottom: 15px; width: 100%; font-weight: bold; }
|
|
.connect-btn:hover { background-color: #2980b9; }
|
|
.status { font-size: 14px; color: #bdc3c7; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h2>ARI FVG Web-Receiver</h2>
|
|
|
|
<!-- Display Caller ID -->
|
|
<div class="display" id="displayScreen">IN ASCOLTO</div>
|
|
|
|
<!-- Campo di inserimento TG Libero -->
|
|
<div class="tg-box">
|
|
<input type="number" id="tgInput" placeholder="Inserisci TG" value="222" min="1" max="9999999">
|
|
<button class="set-btn" id="setTgBtn">Sintonizza</button>
|
|
</div>
|
|
|
|
<!-- Scorciatoie Rapide -->
|
|
<div class="quick-tg">
|
|
<button class="quick-btn" onclick="setQuickTg(112)">TG 112 ARI FVG PC</button>
|
|
<button class="quick-btn" onclick="setQuickTg(22231)">TG 22231 BM</button>
|
|
<button class="quick-btn" onclick="setQuickTg(22200)">TG 22200 FreeDMR</button>
|
|
</div>
|
|
|
|
<!-- CONTROLLO VOLUME -->
|
|
<div class="volume-box">
|
|
<label for="volumeSlider"><span>Volume</span> <span id="volumeValue">100%</span></label>
|
|
<input type="range" id="volumeSlider" min="0" max="2" step="0.05" value="1">
|
|
</div>
|
|
|
|
<!-- Bottone Avvio -->
|
|
<button class="connect-btn" id="connectBtn">📡 Avvia Ascolto DMR</button>
|
|
|
|
<div class="status" id="statusText">Clicca il pulsante per attivare l'audio.</div>
|
|
</div>
|
|
|
|
<script src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|