-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
27 lines (27 loc) · 1.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head>
<title>spring pendulum</title>
<link href="style.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style id="css-output"></style>
</head>
<body>
<div id="controls">
<button class="toggle-dropdown"></button>
<header draggable="true">options</header>
<ul>
<li><label for="toggle-animation" title="Shortcut: p">animation</label><input type="checkbox" id="toggle-animation" /></li>
<li><button id="reset-canvas" title="Shift click to reset parameters">reset</button></li>
<li id="output-coords">not dragging</li>
<li><label title="resolution in pixels per meter">🔍</label><input type="range" min="50" max="100" step="1" data-param="pxPerM" /><input type="number" min="50" max="100" /></li>
<li><label title="spring constant per unit mass">k</label><input type="range" min="1" max="10" step="0.1" data-param="k" /><input type="number" min="1" /></li>
<li><label title="acceleration due to gravity">g</label><input type="range" min="0" max="15" step="0.1" data-param="g" /><input type="number" min="0" /></li>
<li><label title="linear drag coefficient">c<sub>d</sub></label><input type="range" min="0" max="10" step="0.1" data-param="ldc" /><input type="number" min="0" /></li>
</ul>
</div>
<canvas id="canvas">Your browser doesn't support HTML5 Canvas :(</canvas>
<div class="about">spring pendulum v1.0</div>
<script src="script.min.js"></script>
</body>
</html>