-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (53 loc) · 1.55 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>
True Pendulum
</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header>
<div>
<div>
<label for="g">Gravity (g):</label>
<input type="number" id="g" name="g">
<span>m / s<sup>2</sup></span>
</div>
<div>
<label for="l">Length (l):</label>
<input type="number" id="l" name="l">
<span>m</span>
</div>
<div>
<label for="scale">Scale:</label>
<input type="number" id="scale" name="scale">
<span>pixels / m</span>
</div>
</div>
<div id="center-label">
<p>Drag to add linear velocity to the pendulum bob.</p>
<h1 id="v" style="display: none;">
V = <span id="v_value">10</span> m/s
</h1>
</div>
<div>
<div>
<label for="width">Line Width:</label>
<input type="number" id="width" name="width">
</div>
<div>
<label for="stroke">Stroke Color:</label>
<input type="color" id="stroke" name="stroke">
</div>
<div>
<label for="fill">Fill Color:</label>
<input type="color" id="fill" name="fill">
</div>
</div>
</header>
<canvas id="pendulum"></canvas>
</body>
<script src="js/main.js"></script>
</html>