2023-12-06 14:40:34 +00:00
|
|
|
<!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">
|
2023-12-17 06:16:36 +00:00
|
|
|
<link rel="stylesheet" href="../lib/blah2.css">
|
2023-12-06 14:40:34 +00:00
|
|
|
<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>
|
2023-12-11 12:11:54 +00:00
|
|
|
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/detection/delay-doppler">Detections in delay-Doppler over time</a></li>
|
2023-12-12 14:40:52 +00:00
|
|
|
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/spectrum">Spectrum reference</a></li>
|
2023-12-17 03:53:12 +00:00
|
|
|
<li class="py-1"><a class="text-reset text-decoration-none" href="/display/timing">Timing display</a></li>
|
2023-12-06 14:40:34 +00:00
|
|
|
</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/timing">Timing data</a></li>
|
2023-12-11 12:11:54 +00:00
|
|
|
<li class="py-1"><a class="text-reset text-decoration-none" href="/api/iqdata">IQ metadata</a></li>
|
2023-12-06 14:40:34 +00:00
|
|
|
<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>
|
2023-12-12 14:40:52 +00:00
|
|
|
<li class="py-1"><a class="text-reset text-decoration-none" href="/stash/iqdata">IqData metadata</a></li>
|
2023-12-17 03:53:12 +00:00
|
|
|
<li class="py-1"><a class="text-reset text-decoration-none" href="/stash/timing">Timing data</a></li>
|
2023-12-06 14:40:34 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
2023-12-17 03:53:12 +00:00
|
|
|
<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>
|
2023-12-06 14:40:34 +00:00
|
|
|
</html>
|