-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
109 lines (106 loc) · 4.47 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
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
<!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">
<meta name="description" content="物理 - 拋體運動 有空氣阻力">
<meta name="author" content="Been-Yan">
<link rel="stylesheet" href="css/main.css">
<script src="js/p5.min.js"></script>
<script src="js/jquery-3.6.0.min.js"></script>
<title>物理 - 拋體運動</title>
</head>
<body>
<div id="parameter" show='true'>
<div id="parameter-button"></div>
<div class="container">
<div class="main-box">
<div class="list">
<div class="pre">
<div class="title">高度</div>
<div class="value"></div>
</div>
<input id="height" type="number" min="0" value="100" pattern="^[+]?\d+(\.\d+)?$">
</div>
<div class="list">
<div class="pre">
<div class="title">初速度</div>
<div class="value"></div>
</div>
<input id="velocity" type="number" min="1" value="60" pattern="^[+]?\d+(\.\d+)?$">
</div>
<div class="list">
<div class="pre">
<div class="title">角度</div>
<div class="value">45</div>
</div>
<input id="degree" type="range" min="0" max="90" step="0.01" value="45" pattern="^[+]?\d+(\.\d+)?$">
</div>
<div class="list">
<div class="pre">
<div class="title">空氣阻力</div>
<div class="value">0.9</div>
</div>
<input id="drag" type="range" min="0" max="1" step="0.01" value="0.9" pattern="^[+]?\d+(\.\d+)?$">
</div>
<div class="list">
<div class="pre">
<div class="title">質量</div>
<div class="value">10</div>
</div>
<input id="mass" type="range" min="1" max="30" step="0.01" value="10" pattern="^[+]?\d+(\.\d+)?$">
</div>
<div class="list">
<button id="start">Start</button>
</div>
</div>
</div>
</div>
<div id="control" show='true'>
<div id="control-button"></div>
<div class="container">
<div class="main-box set-value">
<div class="list">
<div class="pre">
<div class="title">無空氣阻力最遠角度</div>
<div class="value"></div>
</div>
<input type="text" id="no-air-degree" readonly style="cursor: pointer;" value="38.822335336395575">
</div>
</div>
<div class="main-box set-value">
<div class="list">
<div class="pre">
<div class="title">有空氣阻力最遠角度</div>
<div class="value"></div>
</div>
<input type="text" id="has-air-degree" readonly style="cursor: pointer;">
</div>
</div>
<div class="main-box">
<div class="list">
<div class="pre">
<div class="title">畫布繪製</div>
<div class="value"></div>
</div>
<div class="radio-button">
<input type="radio" id="d-path" name="draw" checked value="projectile">
<div class="check-radio"></div>
<label for="d-path">拋體運動</label>
</div>
<div class="radio-button">
<input type="radio" id="d-degree" name="draw" value="degreeWithDistence">
<div class="check-radio"></div>
<label for="d-degree">角度對距離</label>
</div>
</div>
</div>
</div>
</div>
<script src="js/function.js"></script>
<script src="js/listen.js"></script>
<script src="js/class.js"></script>
<script src="js/sketch.js"></script>
</body>
</html>