-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (63 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lerp Variants</title>
<link rel="stylesheet" href="settings-menu.css">
<link rel="stylesheet" href="circle.css">
<link rel="icon" type="image/png" href="favicon.png">
</head>
<body>
<div class="circle" id="circle"></div>
<div class="settings-container">
<div class="settings-section">
<div class="settings-header">
<header class="settings-title">Settings</header>
</div>
</div>
<div class="settings-content">
<div class="settings-item select-item">
<div class="settings-item-name">Select Function</div>
<div class="settings-item-control">
<select title="select" class="settings-select" id="current-function">
<option value="positionSetter">positionSetter</option>
<option value="staticVelocity">staticVelocity</option>
<option value="distanceVelocity">distanceVelocity</option>
<option value="proximityVelocity">proximityVelocity</option>
<option value="staticAcceleration">staticAcceleration</option>
</select>
</div>
</div>
<div id="baseVelocity-slider" class="settings-item slider-item is-hidden">
<div class="settings-item-name">Base velocity - 300</div>
<div class="settings-item-control">
<input title="(px per second)" class="slider" type="range" min="0" max="600" step="1">
</div>
</div>
<div id="referenceDistance-slider" class="settings-item slider-item is-hidden">
<div class="settings-item-name">Reference Distance - 300</div>
<div class="settings-item-control">
<input title="(px)" class="slider" type="range" min="0" max="600" step="1">
</div>
</div>
<div id="baseAcceleration-slider" class="settings-item slider-item is-hidden">
<div class="settings-item-name">Base acceleration - 50</div>
<div class="settings-item-control">
<input title="(px per second per second)" class="slider" type="range" min="0" max="100" step="0.5">
</div>
</div>
<div id="dragCoefficient-slider" class="settings-item slider-item is-hidden">
<div class="settings-item-name">Drag coefficient - 0.5</div>
<div class="settings-item-control">
<input title="(velocity multiplier per second)" class="slider" type="range" min="0" max="1" step="0.01">
</div>
</div>
<div class="settings-button-container">
<button class="settings-button" id="reset">Reset Simulation</button>
</div>
</div>
</div>
<script src="lerp.js"></script>
</body>
</html>