kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
104 wiersze
3.4 KiB
HTML
104 wiersze
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>BSGSonde Server</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="UTF-8">
|
|
<link rel="icon" href="data:,">
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="wrapper"><div class="header">
|
|
<h2>BSGSonde Server</h2>
|
|
<!--
|
|
<p>GPIO state: <strong> %STATE%</strong></p>
|
|
<p><a href="/on"><button class="button">ON</button></a></p>
|
|
<p><a href="/off"><button class="button button2">OFF</button></a></p>
|
|
-->
|
|
|
|
<div class="tab">
|
|
<button class="tablinks" onclick="selTab(event,'QRG')" id="defaultTab">QRG</button>
|
|
<button class="tablinks" onclick="selTab(event,'WiFi')">WiFi</button>
|
|
<button class="tablinks" onclick="selTab(event,'Data')">Data</button>
|
|
<button class="tablinks" onclick="selTab(event,'Config')">Config</button>
|
|
<button class="tablinks" onclick="selTab(event,'Control')">Control</button>
|
|
<button class="tablinks" onclick="selTab(event,'About')">About</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="QRG" class="tabcontent" data-src="qrg.html">
|
|
<iframe class="tci" src="" ></iframe>
|
|
</div>
|
|
|
|
<div id="WiFi" class="tabcontent" data-src="wifi.html">
|
|
<iframe class="tci" src="" ></iframe>
|
|
</div>
|
|
|
|
<div id="Data" class="tabcontent" data-src="status.html">
|
|
<iframe class="tci" src="" ></iframe>
|
|
</div>
|
|
|
|
<div id="Config" class="tabcontent" data-src="config.html">
|
|
<iframe class="tci" src="" ></iframe>
|
|
</div>
|
|
|
|
<div id="Control" class="tabcontent" data-src="control.html">
|
|
<iframe class="tci" src="" ></iframe>
|
|
</div>
|
|
|
|
<div id="About" class="tabcontent">
|
|
<div class="tci">
|
|
%VERSION_NAME%<br>
|
|
Copyright © 2019-2021 by Hansi Reiser, DL9RDZ<br>
|
|
(version %VERSION_ID%)<br><br>
|
|
with contributions by Vigor and Xavier (M20 support), <a href="https://www.dl2mf.de/" target="_blank">Meinhard Guenther, DL2MF</a>,
|
|
<a href="https://github.com/bazjo">Johannes</a>, <a href="http://www.p1337.synology.me/dokuwiki/doku.php?id=public:wettersonden">Robert Stefanowicz</a>,
|
|
<a href="https://github.com/puspis">Josema</a>, and probably some more people I forgot to mention here.
|
|
|
|
<br>
|
|
<br>
|
|
Autodetect info: %AUTODETECT_INFO%<br>
|
|
<br>
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of
|
|
the License, or (at your option) any later version.<br>
|
|
See <a href="https://www.gnu.org/licenses/gpl-2.0.txt">https://www.gnu.org/licenses/gpl-2.0.txt</a>
|
|
for details.
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<script>
|
|
function selTab(evt, id) {
|
|
var i, tabcontent, tablinks;
|
|
tabcontent=document.getElementsByClassName("tabcontent");
|
|
for(i=0; i<tabcontent.length; i++) {
|
|
tabcontent[i].style.display = "none";
|
|
var link = tabcontent[i].dataset.src;
|
|
if(link) {
|
|
var iframe = tabcontent[i].getElementsByTagName("iframe")[0];
|
|
iframe.setAttribute("src", "");
|
|
}
|
|
}
|
|
tablinks=document.getElementsByClassName("tablinks");
|
|
for(i=0; i<tablinks.length; i++) {
|
|
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
|
}
|
|
var act = document.getElementById(id);
|
|
act.style.display = "flex";
|
|
evt.currentTarget.className += " active";
|
|
|
|
var link = act.dataset.src;
|
|
if(link) {
|
|
var iframe = act.getElementsByTagName("iframe")[0];
|
|
iframe.setAttribute("src", link);
|
|
}
|
|
}
|
|
document.getElementById("defaultTab").click();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|