Skip to content

Commit

Permalink
Final Build
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek8394 committed Jan 23, 2017
0 parents commit 08874d5
Show file tree
Hide file tree
Showing 12 changed files with 1,191 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./js/misc
6 changes: 6 additions & 0 deletions css/bootstrap.min.css

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
body{
background-color: #eee;
}
.canvas-container{
position: relative;
height: 640px;
width: 1280px;
/*margin-top:0%;*/
}
canvas{
/*position: absolute;*/
top:10px;
margin:auto;
float:left;
}
.bg-canvas{
/*height: 100%;*/
/*width: 100%;*/
background-color: black;
/*border: 1px solid green;*/
z-index: 1;
border-radius:4px;
}
.main-canvas{
/*margin:2.5%;*/
/*height: 100%;*/
/*width: 100%;*/
/*background-color: rgba(0,0,0,0.9);*/
/*border-radius: 4px;*/
z-index: 10;
}
.pb-controls{
margin-top:1%;
}
Binary file added fonts/glyphicons-halflings-regular.eot
Binary file not shown.
288 changes: 288 additions & 0 deletions fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff2
Binary file not shown.
59 changes: 59 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!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="container" style="height:100%;">
<div class="center"><h4>Welcome</h4></div>
<!-- <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="pb-controls">
<div class="row">
<div class="col-md-2">
<button class="btn btn-success" onclick = "start();">Begin Untrained!</button><br>
<button class="btn btn-success" onclick = "trainedstart();">Begin Trained</button>
</div>
<div class="col-md-2">
<button class="btn btn-success" onclick = "pause();">Pause</button>
</div>
<div class="col-md-2">
<button class="btn btn-success" onclick = "toggleGlow();">Toggle Glow</button>
</div>
<div class="col-md-2">
<button class="btn btn-success" onclick = "toggleTrail();">Toggle Trail</button>
</div>
<div class="col-md-2">
<button class="btn btn-success" onclick = "clearScreen('main-canvas');">Clear</button>
<button class="btn btn-success" onclick = "clearEachGen();">Clear Screen each gen</button>
</div>
<div class="col-md-2">
<button class="btn btn-success" onclick="toggleFast();">Fast/Slow</button><br>
<button class="btn btn-success" onclick="toggleGenetic();">Toggle Genetic Algo</button><br>
<button class="btn btn-success">Save</button> <br>
<strong>Current Best Holder (was best in prev gen):<br></strong><span id="bestholder"></span>
</div>
</div>
<div>
<h3><strong>Generation:</strong> <span id="gen">0</span>, Best: <span id="best"></span></h3><br>
</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>
</body>
</html>
7 changes: 7 additions & 0 deletions js/bootstrap.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions js/jquery-2.2.2.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 08874d5

Please sign in to comment.