-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (29 loc) · 1016 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./style.css">
<title>Solar System Model</title>
</head>
<body>
<section id="controls-wrapper">
<label for="">Mass of Added Planet</label>
<select name="" id="bodies-list">
<option value="0.000003003">Earth</option>
<option value="0.0009543">Jupiter</option>
<option value="1">Sun</option>
<option value="0.1">Red Dwarf</option>
</select>
<button id="clear-bodies">Reset</button>
</section>
<canvas id="canvas"></canvas>
<!-- calculate physics of celestial bodies -->
<script src="./physics.js"></script>
<!-- draw bodies with trails on canvas -->
<script src="./drawBody.js"></script>
<!-- main script -->
<script src="./main.js"></script>
</body>
</html>