-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (58 loc) · 2.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>N body problem</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
</head>
<body>
<div class="simulation-controls">
<div class="center-buttons">
<button id="stop" disabled>
<span class="material-symbols-outlined">pause</span>
</button>
<button id="start">
<span class="material-symbols-outlined">play_arrow</span>
</button>
</div>
</div>
<div id="menu">
<div class="dropdown">
<button id="menuButton">
<span class="material-symbols-outlined">arrow_drop_down</span>
</button>
<div class="dropdown-content">
<div id="options" style="display: none">
<button id="addBody">Add Body</button>
<form id="addBodyForm" class="form-group" style="display: none">
<label for="mass">Mass:</label>
<input type="number" id="mass" value="1" min="0" required>
<label for="radius">Radius:</label>
<input type="number" id="radius" value="0.2" min="0.000001" step="0.000001" required>
<button id="confirm" type="submit">Create</button>
</form>
<button id="settings">Settings</button>
<form id="settingsForm" class="form-group" style="display: none">
<label for="simulationAria">Simulation Area:</label>
<input type="number" id="simulationAria" value="10" min="1" required onkeydown="if(event.key === 'Enter'){event.preventDefault();}">
<label for="elastic">
coefficient of restitution:</label>
<input type="number" id="elastic" value="1.5" min="0" required onkeydown="if(event.key === 'Enter'){event.preventDefault();}">
<label for="showGrid">Show grid:</label>
<input type="checkbox" id="showGrid">
<br>
<label for="showAxis">Show axis:</label>
<input type="checkbox" id="showAxis">
</form>
<button id="reset">Reset</button>
</div>
</div>
</div>
</div>
<script type="module" src="/target/renderer.js"></script>
<script type="module" src="/target/domHandler.js"></script>
</body>
</html>