-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (45 loc) · 2.36 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
<!DOCTYPE html>
<html lang="en" ng-app="CellAutApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cellular Automaton</title>
<link href="node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
<link href="app/css/app.css" rel="stylesheet">
</head>
<body ng-controller="CellAutController as vm">
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">CellAut</a>
</div>
<div class="navbar-collapse collapse">
<p class="navbar-text">Rule: {{vm.cellaut.rule}}</p>
<ul class="nav navbar-nav">
<li><button type="button" class="btn btn-default navbar-btn" ng-click="vm.start()" ng-show="!vm.isRunning"><span class="glyphicon glyphicon-play"></span></button></li>
<li><button type="button" class="btn btn-default navbar-btn" ng-click="vm.stop()" ng-show="vm.isRunning"><span class="glyphicon glyphicon-pause"></span></button></li>
<li><button type="button" class="btn btn-default navbar-btn" ng-click="vm.cellaut.randomize()"><span class="glyphicon glyphicon-refresh"></span></button></li>
</ul>
<p class="navbar-text"><span class="badge">{{vm.cellaut.generation}}</span></p>
</div>
<!--/.nav-collapse -->
</div>
</div>
<div class="container fill">
<canvas cellaut model="vm.cellaut"></canvas>
</div>
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
<script src="app/app.js"></script>
<script src="app/cellaut-service.js"></script>
<script src="app/cellaut-controller.js"></script>
<script src="app/cellaut-directive.js"></script>
</body>
</html>