-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (98 loc) · 3.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!doctype html>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<head>
<title>Project</title>
<script type="text/javascript" src="js/jquery-2.2.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- <script type="text/javascript" src="js/main.js"></script> -->
<script type="text/javascript" src="js/main2.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div class="" style="height:100%;">
<a href="https://github.com/Abhishek8394/Neural-Net-Ants"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
<div class="center welcome-title"><h4>Neural Net Ants</h4></div>
<div class="">
<div class="canvas-container">
<canvas width="640px" height="640px" id="bg-canvas" class="bg-canvas"></canvas>
<canvas width="640px" height="640px" id="main-canvas" class="main-canvas"></canvas>
</div>
<div class="">
<div class="pb-controls">
<h4><strong>Generation:</strong> <span id="gen">0</span>, Best: <span id="best"></span></h4><br>
<div class="btn-pair">
<div class="controls-group">
<div class="group-title">
Start fresh / pre-trained,
Refresh page if switching modes
</div>
<div class="group-body">
<button class="btn btn-primary" onclick = "start();">Begin Untrained!</button>
<button class="btn btn-primary" onclick = "trainedstart();">Begin Trained</button>
</div>
</div>
</div>
<div class="btn-pair">
<div class="controls-group">
<div class="group-title">
Pause (and admire) or clear canvas to see new art
</div>
<div class="group-body">
<button class="btn btn-warning" onclick = "pause();">Pause</button>
<button class="btn btn-warning" onclick = "clearScreen('main-canvas');">Clear</button>
<!-- <button class="btn btn-warning">Save</button> -->
</div>
</div>
</div>
<div class="btn-pair">
<div class="controls-group">
<div class="group-title">
Spice things up, try pressing these buttons when ants are in action
</div>
<div class="group-body">
<button class="btn btn-success" onclick = "toggleTrail();">Toggle Trail</button>
<button class="btn btn-success" onclick = "toggleGlow();">Toggle Glow</button>
</div>
</div>
</div>
<div class="btn-pair">
<div class="controls-group">
<div class="group-title">
Training too slow? Hate continuity? You'll love these buttons
</div>
<div class="group-body">
<button class="btn btn-success" onclick = "clearEachGen();">Clear Screen each gen</button>
<button class="btn btn-success" onclick="toggleFast();">Fast/Slow</button>
</div>
</div>
</div>
<div class="btn-pair">
<div class="controls-group">
<div class="group-title">
Love current generation? Click this and don't let it go!
</div>
<div class="group-body">
<button class="btn btn-success" onclick="toggleGenetic();">Toggle Genetic Algo</button>
</div>
</div>
</div>
<div class="stats">
<h4><strong>Current Best Holder (was best in prev gen):<br></strong><span id="bestholder"></span></h4>
</div>
<!-- <div>
<button onclick="incl(1)">l+</button>
<input type="text" id="ls">
<button onclick="incl(-1)">l-</button>
<button onclick="incr(1)">r+</button>
<input type="text" id="rs">
<button onclick="incr(-1)">r-</button>
</div> -->
</div>
</div>
</div>
<!-- <div class="canvas-container"> -->
<!-- </div> -->
</div>
</body>
</html>