-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (40 loc) · 1.51 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
<html>
<head>
<title>Car Steering Physics</title>
<style>
body { margin: 0; overflow: hidden}
canvas {
border: 1px solid black;
display: inline-block;
margin: 0;
}
</style>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<img src="settings.png" id="settings-image">
<div id="settings">
<div class="slidecontainer" style="position: relative; margin-right:auto; margin-left: auto; float: center; width: 100%; height: 50%; background-color: rgba(0, 0, 0, 0.3); padding-top: 1%">
<p style="font-size: 30px;text-align: center;">Settings</p>
<div style="float: left; padding-left: 5%; width: 40%; display: inline-block;">
<input type="range" min="0" max="1" value="0" class="slider" id="statsSlider">
<span>Show Statistics</span>
<br />
<input type="range" min="0" max="1" value="1" class="slider" id="instructionsSlider">
<span>Show Instructions</span>
<br />
<input type="range" min="0" max="1" value="0" class="slider" id="controlsSlider">
<span id="controlsText">Controls: Keyboard</span>
</div>
</div>
</div>
<canvas id="canvas" width="1000" height="400"></canvas>
<script src="javascripts/math.min.js"></script>
<script src="javascripts/jquery.js"></script>
<script src="javascripts/vector.js"></script>
<script src="javascripts/helper.js"></script>
<script src="javascripts/car.js"></script>
<script src="javascripts/box.js"></script>
<script src="javascripts/index.js"></script>
</body>
</html>