-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (72 loc) · 2.71 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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
#canvas-container {
width: 100%;
display: flex;
justify-content: center;
}
canvas {
outline: 5px solid black;
}
</style>
</head>
<body class="container my-4">
<div class="d-flex align-items-start">
<!-- Canvas on the left -->
<div id="canvas-container" class="me-4">
<canvas id="canvas" height="800" width="800"></canvas>
</div>
<!-- Controls on the right -->
<div>
<!-- World settings card -->
<div class="card mb-4" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">World</h5>
<hr>
<button id="restart_button" class="btn btn-primary mb-3">Restart</button>
<div class="mb-3">
<label for="world_preset" class="form-label">Select a preset:</label>
<select id="world_preset" class="form-select">
<option value="collision">Collision</option>
<option value="universal">Universal gravitation</option>
</select>
</div>
<div class="form-check">
<input type="checkbox" id="pause" class="form-check-input"/>
<label for="pause" class="form-check-label">Pause</label>
</div>
</div>
</div>
<!-- View settings card -->
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">View settings</h5>
<hr>
<div class="form-check mb-3">
<input type="checkbox" id="follow" class="form-check-input"/>
<label for="follow" class="form-check-label">Follow</label>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
<input type="checkbox" id="vectors" class="form-check-input"/>
<label for="vectors" class="form-check-label">Vectors</label>
</h5>
<hr>
<div class="form-check mb-3">
<input type="checkbox" id="vectors_values" class="form-check-input"/>
<label for="vectors_values" class="form-check-label">Display values</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>