Files
walkersim/index.html

65 lines
1.8 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Walker Linkage Simulator</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<main class="app">
<section class="canvas-wrap">
<canvas id="sim-canvas" width="1100" height="700"></canvas>
</section>
<aside class="panel" id="controls-panel">
<h1>Walker Sim (Kinematic)</h1>
<label class="row">
<span>Speed (rev/s)</span>
<input id="speed" type="range" min="0" max="2" step="0.01" value="0.3" />
<output id="speed-out">0.30</output>
</label>
<label class="row">
<span>Angle (deg)</span>
<input id="angle" type="range" min="0" max="360" step="0.1" value="0" />
<output id="angle-out">0.0</output>
</label>
<div class="row buttons">
<button id="play">Pause</button>
<button id="reset">Reset</button>
</div>
<label class="check">
<input id="show-near" type="checkbox" checked />
<span>Show near side</span>
</label>
<label class="check">
<input id="show-far" type="checkbox" checked />
<span>Show far side (180°)</span>
</label>
<label class="check">
<input id="show-trace" type="checkbox" checked />
<span>Show foot traces</span>
</label>
<label class="check">
<input id="show-annotations" type="checkbox" />
<span>Overlay linkage annotations</span>
</label>
<section class="diag">
<h2>Diagnostics</h2>
<pre id="diag">loading…</pre>
</section>
</aside>
</main>
<script type="module" src="./src/main.js"></script>
</body>
</html>