forked from sacert/Genetic-Hello-World
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (65 loc) · 1.86 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
71
<!DOCTYPE html>
<html>
<head>
<title>Genetic Hello World</title>
<style>
* {
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
font-family: monospace;
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 12px;
height: 100vh;
display: flex;
flex-direction: column;
}
header, footer {
flex: none;
}
section {
flex-grow: 1;
}
header, section, footer {
padding: 1rem;
}
.gene.same {
background-color: lightgreen;
}
.gene.diff {
background-color: lightyellow;
}
</style>
</head>
<body>
<header>
<button id="start">Generate Genes</button>
<button id="toggleRunning">Run/Pause</button>
<button id="step">Step</button>
|
<input id="target" type="text" value="Hello World!" />
<button id="setTarget">Set Target</button>
</header>
<section>
<div id='table'>
<h2>Generation: 0</h2>
</div>
<div id="bestGenesContainer">
<h2>Best Genes</h2>
<table id="bestGenes">
<tr>
<th>Generation</th>
<th>Value</th>
<th>Cost</th>
</tr>
</table>
</div>
</section>
<footer>Made by <a href="https://github.com/sacert">Stephen Kang</a>. Extended by <a href="https://github.com/nzchicken">Ben Naylor</a>. Source on <a href="https://github.com/nzchicken/Genetic-Hello-World">GitHub</a></footer>
</body>
</html>