-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (52 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Harmonic Oscillation</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Kanit:wght@400&display=swap" />
</head>
<body>
<a id="developerInfoButton" href="https://github.com/KMORaza" target="_blank">Developer Info</a>
<h1>Harmonic Oscillation</h1>
<div id="formContainer">
<div>
<label for="amplitude">Amplitude:</label>
<input type="number" id="amplitude" value="1" step="0.1" min="0.1">
</div>
<div>
<label for="frequency">Frequency (Hz):</label>
<input type="number" id="frequency" value="1" step="0.1" min="0.1">
</div>
<div>
<label for="time">Time (s):</label>
<input type="number" id="time" value="10" step="0.1" min="0.1">
</div>
<div>
<label for="damping">Damping Factor:</label>
<input type="number" id="damping" value="0" step="0.01" min="0">
</div>
<div>
<label for="springConstant">Spring Constant (N/m):</label>
<input type="number" id="springConstant" value="1" step="0.1" min="0.1">
</div>
</div>
<div id="buttonContainer">
<button id="updateButton">Update</button>
<button id="startButton">
<span class="material-symbols-outlined">play_arrow</span>
</button>
<button id="pauseButton">
<span class="material-symbols-outlined">pause</span>
</button>
</div>
<canvas id="oscillationChart" width="800" height="400"></canvas>
<canvas id="phaseSpaceChart" width="800" height="400"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjs@11.0.0/dist/math.js"></script>
<script src="script.js"></script>
</body>
</html>