-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (43 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mișcarea gravitațională</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@1,400;1,700;1,900&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="assets/styles/style.css" />
<script
src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"
integrity="sha512-N4kV7GkNv7QR7RX9YF/olywyIgIwNvfEe2nZtfyj73HdjCUkAfOBDbcuJ/cTaN04JKRnw1YG1wnUyNKMsNgg3g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script type="module" src="src/main.js"></script>
</head>
<body id="app">
<main>
<h1>Vizualiator mișcare în câmp gravitațional</h1>
<div class="controls">
<div class="input">
<label for="velocity">Viteza inițială (m/s)</label>
<input type="number" value="0" min="0" step="any" id="velocity" name="velocity" />
</div>
<div class="input">
<label for="height">Înălțimea inițială (m)</label>
<input type="number" value="1" min="0" step="any" id="height" name="height" />
</div>
<div class="input">
<label for="gravity">Accelerație gravitațională (m/s<sup>2</sup>)</label>
<input type="number" value="9.80665" min="0" step="any" id="gravity" name="gravity" />
</div>
<div class="input">
<label for="speed">Viteză derulare grafic</label>
<input type="range" min="0" max="1" value="0.42" step="any" id="speed" name="speed" />
</div>
</div>
<p>Atinge graficul, dă click pe el sau apasă SPACE pentru a-l reseta.</p>
</main>
</body>
</html>