mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
feat: add PTP UI and switch to default styling for Hachi-TimeTransformer
Co-authored-by: aider (openai/gpt-5) <aider@aider.chat>
This commit is contained in:
parent
8eb4c6f2da
commit
646e927e46
2 changed files with 113 additions and 3 deletions
|
|
@ -3,13 +3,13 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Fetch | Hachi</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Hachi-TimeTransformer</title>
|
||||
<!-- Using default browser styles -->
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<img src="assets/header.png" alt="NTP Timeturner" class="header-logo">
|
||||
<h1>Hachi-TimeTransformer</h1>
|
||||
|
||||
<!-- Mock Data Controls (hidden by default) -->
|
||||
<div id="mock-controls" class="card full-width" style="display: none;">
|
||||
|
|
@ -55,6 +55,15 @@
|
|||
<p id="interfaces">--</p>
|
||||
</div>
|
||||
|
||||
<!-- PTP -->
|
||||
<div class="card">
|
||||
<h2>PTP</h2>
|
||||
<p><strong>Supported:</strong> <span id="ptp-supported">unknown</span></p>
|
||||
<p><strong>Interface:</strong> <span id="ptp-interface">--</span></p>
|
||||
<p><strong>Daemon:</strong> <span id="ptp-daemon">--</span></p>
|
||||
<p><strong>Offset (ns):</strong> <span id="ptp-offset">--</span></p>
|
||||
</div>
|
||||
|
||||
<!-- Controls -->
|
||||
<div class="card full-width collapsible-card">
|
||||
<div class="toggle-header" id="controls-toggle">
|
||||
|
|
@ -107,6 +116,23 @@
|
|||
<button id="nudge-up">+</button>
|
||||
<span id="nudge-message"></span>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="ptp-interface">PTP Interface:</label>
|
||||
<input type="text" id="ptp-interface-input" placeholder="e.g., eth0">
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="ptp-phc-index">PHC Index (optional):</label>
|
||||
<input type="number" id="ptp-phc-index" min="0">
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="ptp-extra-args">Extra statime args (optional):</label>
|
||||
<input type="text" id="ptp-extra-args" placeholder="--debug --announce-interval 1">
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<button id="start-ptp">Start PTP</button>
|
||||
<button id="stop-ptp">Stop PTP</button>
|
||||
<span id="ptp-message"></span>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="date-input">Set System Date:</label>
|
||||
<input type="text" id="date-input" placeholder="YYYY-MM-DD" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}">
|
||||
|
|
@ -137,5 +163,6 @@
|
|||
<script src="icon-map.js"></script>
|
||||
<script src="mock-data.js"></script>
|
||||
<script src="script.js"></script>
|
||||
<script src="ptp.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue