blah2/html/controller/index.html

83 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>blah2</title>
<!-- load lib js -->
<script src="../lib/bootstrap-5.2.3.min.js"></script>
<script src="../lib/plotly-2.20.0.min.js"></script>
<script src="../lib/jquery-3.6.4.min.js"></script>
<!-- load lib css -->
<link rel="stylesheet" href="../lib/bootstrap-5.2.3.min.css">
<link rel="stylesheet" href="../lib/blah2.css">
<style>
</style>
</head>
<body style="background-color:#f78c58;">
<div class="container-fluid">
<div class="row align-items-center d-flex">
<nav class="navbar navbar-light navbar-expand text-center pb-5">
<!-- Links -->
<ul class="navbar-nav mx-auto justify-content-center">
<li class="nav-item px-3 px-md-4">
<a class="navbar-brand mx-0 menu" href="/">RADAR</a>
</li>
<li class="nav-item px-3 px-md-4">
<a class="navbar-brand mx-0 menu text-decoration-underline" href="/controller">CONTROLLER</a>
</li>
</ul>
</nav>
<div class="col-sm-12 col-md-12">
<ul class="list-unstyled text-center label">
<li class="py-1 title">Display</li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/map">Delay-Doppler map</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/maxhold">Max-hold delay Doppler map</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/detection/delay">Detections in delay over time</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/detection/doppler">Detections in Doppler over time</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/detection/delay-doppler">Detections in delay-Doppler over time</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/spectrum">Spectrum reference</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/timing">Timing display</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/falsetargets">False Target Data</a></li>
</ul>
</div>
<div class="col-sm-12 col-md-12">
<ul class="list-unstyled text-center label">
<li class="py-1 title">API</li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/map">Map data</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/detection">Detection data</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/tracker">Tracker data</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/timing">Timing data</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/iqdata">IQ metadata</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/timestamp">Latest timestamp</a></li>
</ul>
</div>
<div class="col-sm-12 col-md-12">
<ul class="list-unstyled text-center label">
<li class="py-1 title">Stash</li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/stash/map">Map data</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/stash/detection">Detection data</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/stash/iqdata">IqData metadata</a></li>
<li class="py-1"><a class="text-reset text-decoration-none" href="/stash/timing">Timing data</a></li>
</ul>
</div>
</div>
</div>
</body>
<script>
window.onload = function() {
var host = window.location.hostname;
var isLocalHost = (host === "localhost" || host === "127.0.0.1" || host === "192.168.0.112");
var anchors = document.getElementsByTagName("a");
if (isLocalHost) {
for (var i = 0; i < anchors.length; i++) {
if (anchors[i].href.includes('/api/') || anchors[i].href.includes('/stash/')) {
console.log(anchors[i].href);
anchors[i].href = anchors[i].href.split(":49152")[0] + ":3000" + anchors[i].href.split(":49152")[1];
console.log(anchors[i].href);
}
}
}
}
</script>
</html>