-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgravity.html
More file actions
26 lines (25 loc) · 795 Bytes
/
gravity.html
File metadata and controls
26 lines (25 loc) · 795 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
}
</style>
</head>
<body>
<!-- Add this inside the body, before the canvas -->
<div style="position: fixed; top: 20px; left: 20px; z-index: 100; background: rgba(255,255,255,0.8); padding: 10px; border-radius: 5px;">
<label for="ballCount">Number of Balls: <span id="ballValue">100</span></label>
<input type="range" id="ballCount" min="10" max="300" value="100">
</div>
<canvas class="canvas"></canvas>
<script src="./gravity.js"></script>
</body>
</html>