-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
59 lines (46 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Evolution Simulator</title>
<link rel="stylesheet" href="assets/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<div class='row'>
<div id="mainCanvas"></div>
<div id="simulationConfigs"></div>
<div id="bestHumanConfigs"></div>
<div class='row' id="controllers">
<span>
<p style="display: inline;"><strong>Simulation Speed</p>
<input id="simulationSlider" style="display: inline;" type="range" value="1" min="0" max="5" step="1">
</span>
<textarea id="userGenomeInput" placeholder="Upload Genome" cols="50" rows="2"></textarea>
<br />
<br />
<button class="button1" onclick="UIController.downloadBestGenome()">Download Best Genome</button>
<button class="button2" onclick="UIController.uploadCustomGenome()">Upload Genome</button>
</div>
</div> <!-- First Row -->
<canvas id="chart"></canvas>
<div id="stats">
<table id="humanstats"></table>
</div>
<!-- Second Row -->
</div> <!-- Wrapper -->
<!-- Libraries -->
<script src="lib/chart.js"></script>
<script src="lib/p5.js"></script>
<script src="lib/p5.dom.min.js"></script>
<script src="lib/box2d-min.js"></script>
<script src="src/ga.js"></script>
<script src="src/ui.js"></script>
<script src="src/floor.js"></script>
<script src="src/human.js"></script>
<script src="src/sketch.js"></script>
</body>
</html>