-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (51 loc) · 2.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script type="module" src="main.js"></script>
<title>Car Evolution</title>
<style>
</style>
</head>
<body>
<div class="settings-background">
<div class="settings">
<div class="ranges">
<label id="carPopulationLabel"></label>
<input type="range" id="carPopulation" min="1" max="1000" value="50">
<label id="carSpeedLabel"></label>
<input type="range" id="carSpeed" min="3" max="6" value="4">
<label id="hiddenNeuronsLabel"></label>
<input type="range" id="hiddenNeurons" min="1" max="10" step="1" value="3">
<label id="mutationRateLabel"></label>
<input type="range" id="mutationRate" min="0" max="1" value="0.2" step="0.01">
<label id="mutationAmountLabel"></label>
<input type="range" id="mutationAmount" min="0" max="1" step="0.01" value="0.7">
<label id="inputsLabel"></label>
<input type="range" id="inputs" min="3" max="30" step="1" value="10">
</div>
<div class="checkboxes">
<div class="checkbox">
<input type="checkbox" id="displayCarVision">
<label id="displayCarVisionLabel">Display car vision</label>
</div>
<div class="checkbox">
<input type="checkbox" id="displayMouseCoords">
<label id="displayMouseCoordsLabel">Display mouse coordinates</label>
</div>
</div>
</div>
</div>
<div class="center">
<p>(restart to apply settings)</p>
<button id="restartButton">Restart</button>
<button id="startStopButton">Stop</button>
<button id="killAllButton">Kill all</button>
<p id="generation"></p>
<canvas id="theCanvas"></canvas>
</div>
</body>
</html>