-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (63 loc) · 2.43 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
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="style.css" rel="stylesheet">
<script src="app.js"></script>
<title>Double Pendulum</title>
</head>
<body>
<canvas id="background"></canvas>
<svg id="foreground">
<line id="arm1"/>
<line id="arm2"/>
<circle id="ball0"></circle>
<circle id="ball1"></circle>
<circle id="ball2"></circle>
</svg>
<svg id="foreground2">
<line id="arm12"/>
<line id="arm22"/>
<circle id="ball02"></circle>
<circle id="ball12"></circle>
<circle id="ball22"></circle>
</svg>
<svg id="foreground3">
<line id="arm13"/>
<line id="arm23"/>
<circle id="ball03"></circle>
<circle id="ball13"></circle>
<circle id="ball23"></circle>
</svg>
<div id="ui">
<button id="start" type="button">Start</button>
<button id="draw" type="button">Draw</button>
<input id="Theta1" placeholder="90" type"number">
<input id="Theta2" placeholder="270" type"number">
<input id="dTheta1" placeholder="0" type"number">
<input id="dTheta2" placeholder="1.000002" type"number">
<input id="Theta1-2" placeholder="90" type"number">
<input id="Theta2-2" placeholder="270" type"number">
<input id="dTheta1-2" placeholder="0" type"number">
<input id="dTheta2-2" placeholder="1.000001" type"number">
<input id="Theta1-3" placeholder="90" type"number">
<input id="Theta2-3" placeholder="270" type"number">
<input id="dTheta1-3" placeholder="0" type"number">
<input id="dTheta2-3" placeholder="1" type"number">
<text id="yp1">Yellow Pos 1 (° ccw)</text>
<text id="yp2">Yellow Pos 2 (° ccw)</text>
<text id="yv1">Yellow Vel 1 (°/s ccw)</text>
<text id="yv2">Yellow Vel 2 (°/s ccw)</text>
<text id="rp1">Red Pos 1 (° ccw)</text>
<text id="rp2">Red Pos 2 (° ccw)</text>
<text id="rv1">Red Vel 1 (°/s ccw)</text>
<text id="rv2">Red Vel 2 (°/s ccw)</text>
<text id="bp1">Blue Pos 1 (° ccw)</text>
<text id="bp2">Blue Pos 2 (° ccw)</text>
<text id="bv1">Blue Vel 1 (°/s ccw)</text>
<text id="bv2">Blue Vel 2 (°/s ccw)</text>
</div>
</body>
</html>