-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (57 loc) · 1.65 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 lang="en">
<head>
<meta charset="UTF-8">
<title>Genetic</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<button type="button" id="run-button">run</button>
<hr>
<div class="flex">
<div class="half">
<form>
<label for="area-size">areaSize </label>
<input type="number" id="area-size"><br>
<label for="path-width">path width </label>
<input type="number" id="path-width"><br>
<label for="box-count">box count </label>
<input type="number" id="box-count"><br>
<label for="relations">relations </label>
<input type="number" id="relations"><br>
<fieldset>
<legend>start position</legend>
<label for="start-position-x">x</label>
<input id="start-position-x"><br>
<label for="start-position-y">y</label>
<input type="number" id="start-position-y">
</fieldset>
<fieldset>
<legend>end position</legend>
<label for="end-position-x">x</label>
<input type="number" id="end-position-x"><br>
<label for="end-position-y">y</label>
<input type="number" id="end-position-y">
</fieldset>
</form>
<hr>
<p>
Generation : <span id="generation"></span>
</p>
<p>Initial fitness : <span id="initial-fitness"></span></p>
<p>Solution fitness : <span id="solution-fitness"></span></p>
<p id="log"></p>
<hr>
</div>
<div class="half">
<div id="canvas-container">
<div id="start"></div>
<canvas class="box" id="canvas" width="500" height="500"></canvas>
<div id="end"></div>
</div>
</div>
</div>
<script src="node_modules/genetic-js/js/genetic-0.1.14.js"></script>
<script src="index.js"></script>
</body>
</html>