<!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>