-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 1.81 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>
<head>
<title>Self-driving car - No libraries</title>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
</head>
<body>
<canvas id="carCanvas"></canvas>
<div id="verticalButtons">
<button onclick="save()">💾</button>
<button onclick="discard()">🗑️</button>
<div class='dropdown'>
🧬
<select name="mutationAmount" id="mutationAmount"
onchange="localStorage.setItem('mutationAmount',this.value)">
<option value="0.1">0.1</option>
<option value="0.2">0.2</option>
<option value="0.3">0.3</option>
<option value="0.4">0.4</option>
<option value="0.5" selected>0.5</option>
<option value="0.6">0.6</option>
<option value="0.7">0.7</option>
<option value="0.8">0.8</option>
<option value="0.9">0.9</option>
<option value="1.0">1.0</option>
</select>
</div>
<div class='dropdown'>
🚗
<select name="carCount" id="carCount"
onchange="localStorage.setItem('carCount',this.value)">
<option value="1" selected>1</option>
<option value="10">10</option>
<option value="100">100</option>
<option value="1000">1000</option>
</select>
</div>
</div>
<canvas id="networkCanvas"></canvas>
<script src="visualizer.js"></script>
<script src="network.js"></script>
<script src="sensor.js"></script>
<script src="utils.js"></script>
<script src="road.js"></script>
<script src="controls.js"></script>
<script src="car.js"></script>
<script src="main.js"></script>
</body>
</html>