-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (65 loc) · 2.93 KB
/
index.html
File metadata and controls
75 lines (65 loc) · 2.93 KB
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
<!doctype html>
<html lang="en">
<head>
<title>Physics Simulation</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="style.css" rel="stylesheet" />
<script defer src="script.js"></script>
</head>
<body>
<canvas id="canvas"></canvas>
<div class="container">
<div class="menu">
<input type="checkbox" id="checkbox-menu" hidden />
<label for="checkbox-menu">=</label>
</div>
<div class="buttons-container">
<p>Pilih objek:</p>
<div class="radio">
<input type="radio" class="radio-input" id="object1" name="object" value="object1" checked hidden />
<label for="object1">Objek 1</label>
<input type="radio" class="radio-input" id="object2" name="object" value="object2" hidden />
<label for="object2">Objek 2</label>
</div>
<p>Pilih simulasi:</p>
<div class="radio">
<input type="radio" class="radio-input" id="mirror" name="sim" value="1" checked hidden />
<label for="mirror">Cermin</label>
<input type="radio" class="radio-input" id="lens" name="sim" value="-1" hidden />
<label for="lens">Lensa</label>
</div>
<div class="radio">
<input type="radio" class="radio-input" id="concave" name="type" value="1" checked hidden />
<label for="concave">Cekung</label>
<input type="radio" class="radio-input" id="convex" name="type" value="-1" hidden />
<label for="convex">Cembung</label>
</div>
</div>
</div>
<div class="inputs-outer-container">
<div id="grab">:::::</div>
<div class="inputs-container">
<label for="distance-slider" id="distance-slider-label"></label>
<input type="range" min="0" step="0.01" value="5" id="distance-slider" />
</div>
<div class="inputs-container">
<label for="height-slider" id="height-slider-label"></label>
<input type="range" min="0" step="0.01" value="3" id="height-slider" />
</div>
<div class="inputs-container">
<label for="focal-slider" id="focal-slider-label"></label>
<input type="range" min="0" step="0.01" value="2" id="focal-slider" />
</div>
</div>
<button id="reset-button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path
fill-rule="evenodd"
d="M13.836 2.477a.75.75 0 0 1 .75.75v3.182a.75.75 0 0 1-.75.75h-3.182a.75.75 0 0 1 0-1.5h1.37l-.84-.841a4.5 4.5 0 0 0-7.08.932.75.75 0 0 1-1.3-.75 6 6 0 0 1 9.44-1.242l.842.84V3.227a.75.75 0 0 1 .75-.75Zm-.911 7.5A.75.75 0 0 1 13.199 11a6 6 0 0 1-9.44 1.241l-.84-.84v1.371a.75.75 0 0 1-1.5 0V9.591a.75.75 0 0 1 .75-.75H5.35a.75.75 0 0 1 0 1.5H3.98l.841.841a4.5 4.5 0 0 0 7.08-.932.75.75 0 0 1 1.025-.273Z"
clip-rule="evenodd"
/>
</svg>
</button>
</body>
</html>