-
Notifications
You must be signed in to change notification settings - Fork 0
/
circular-shm.html
139 lines (103 loc) · 4.31 KB
/
circular-shm.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="js/raphael.js"></script>
<script src="js/jquery-1.11.2.js"></script>
<script src="js/scale.js"></script>
<script src="js/circular-shm.js"></script>
<script src="js/placeholders.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/nav.css">
</head>
<body>
<div id="navbar">
<ul>
<li><a href="index.html">Index</a></li>
<li><a href="linearmotion.html">Linear motion</a><li>
<li><a href="projectiles.html">Projectiles</a><li>
<li><a href="relative.html">Relative velocity</a></li>
<li><a href="connected.html">Connected particles</a></li>
<li><a style="color:black; background-color:#A0A0A0;" href="circular-shm.html">Circular and SHM</a></li>
<li><a href="collisions.html">Collisions</a></li>
</ul>
</div>
<div id="navselect">
<select id="navselectmenu" onchange="location = this.options[this.selectedIndex].value;">
<option value="circular-shm.html">Circular and SHM</option>
<option value="linearmotion.html">Linear Motion</option>
<option value="projectiles.html">Projectiles</option>
<option value="relative.html">Relative Velocity</option>
<option value="connected.html">Connected Particles</option>
<option value="collisions.html">Collisions</option>
<option value="index.html">Index</option>
</select>
</div>
<div style="position:absolute; width:165px;top:70px;">
<!-- DROPDOWN MENU -->
<div>Select scenario:</div>
<div style="height:10px;"></div>
<select id="typeSelect" onchange="typeChange()" autocomplete="off">
<option id="horizontal">Horizontal circle</option>
<option id="basic">Basic SHM</option>
</select>
<div style="height:5px;"></div>
<hr style = "float:left; width:85%;">
</br>
<!-- SHOWN WHEN "HORIZONTAL CIRCLE" IS SELECTED -->
<div id = "horizontal-div">
<input id="horizontal-r" type="text" placeholder="Radius > 0" style = "float:left;width:87.5%;" autocomplete="off"/> </br>
<div style="height:5px;"></div>
<input id="horizontal-m" type="text" placeholder="Mass >0" style = "float:left;width:87.5%;" autocomplete="off"/> </br>
<div style="height:5px;"></div>
<input id="horizontal-vr" type="text" placeholder="Angular velocity ω > 0" style = "float:left;width:87.5%;" autocomplete="off"/> </br>
<div style="height:5px;"></div>
<hr style = "float:left; width:85%;">
</br>
</div>
<!-- SHOWN WHEN "BASIC SHM" IS SELECTED -->
<div id = "basic-div" style="display:none;">
<input id="basic-vr" type="text" placeholder="Angular velocity ω > 0" style = "float:left;width:87.5%;" autocomplete="off"> </br>
<div style="height:5px;"></div>
<input id="basic-a" type="text" placeholder="Amplitude A > 0" style = "float:left;width:87.5%;" autocomplete="off"> </br>
<div style="height:5px;"></div>
<hr style = "float:left; width:85%;">
</br>
</div>
<!-- RUN BUTTON -->
<button onclick="run()" type="button">Run simulation</button>
<div style="height:5px;"></div>
<!-- STOP BUTTON -->
<button onclick="stopSimulation()" type="button">Stop simulation</button>
<div style="height:5px;"></div>
<!-- CLEAR INPUT BUTTON -->
<button onclick="clearInput()" type="button">Clear input</button>
<div style="height:5px;"></div>
<!-- HELP BUTTON -->
<button onclick="showHelp()" type="button">Help</button>
<div style="height:5px;"></div>
</div>
<!-- space for the graphics panel -->
<div id="graphics_panel" style="position:absolute; left:165px;width:600px;top:70px;"></div>
<!-- real time info relevant to the simulation -->
<div id ="info_pane" style="position:absolute;left:770px;width:250px;top:65px;height:345px;">
<div id="horizontal-info" style="display:none;">
<div id="horizontal-force-value"></div>
<div id="horizontal-radius-value"></div>
<div id="horizontal-mass-value"></div>
<div id="horizontal-vm-value"></div>
<div id="horizontal-vr-value"></div>
</div>
<div id="basic-info" style="display:none;">
<div id="basic-amplitude-value"></div>
<div id="basic-vr-value"></div>
<div id="basic-maxa-value"></div>
<div id="basic-maxv-value"></div>
<div id="basic-cura-value"></div>
<div id="basic-curv-value"></div>
<div id="basic-curx-value"></div>
</div>
<div id="scale"></div>
<div id="time"></div>
</div>
</body>
</html>