-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (48 loc) · 1.27 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
<!DOCTYPE html>
<html>
<head>
<title>Parks</title>
<link rel="stylesheet" href="_inc/parks.css">
<script src="_inc/parks.js"></script>
</head>
<body>
<div class="container" ng-app="ParksApp" ng-controller="ParksController">
<div class="row">
<section class="col-xs-12 puzzle">
<table>
<caption>Puzzle No. {{puzzle.id}}</caption>
<tbody>
<tr ng-repeat="row in puzzle.rows">
<td ng-repeat="cell in row.cells"
ng-class="'color-' + cell.color"
ng-click="changeState(cell)">
<i class="fa fa-lg fa-fw" ng-class="'fa-' + actionIcons[cell.state]"></i>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="row">
<section class="col-xs-12">
<section class="action-bar">
<ul class="btn-group">
<li class="btn btn-default"
ng-repeat="action in actions"
ng-class="{active: selectedAction === action}"
ng-click="selectThisAction(action)">
<i class="fa fa-fw" ng-class="'fa-' + actionIcons[action]"></i>
</li>
</ul>
</section>
</section>
</div>
<div class="row">
<section class="col-xs-12">
<button class="btn btn-danger"
ng-click="solvePuzzle()"><i class="fa fa-key"></i> Solve</button>
</section>
</div>
</div>
</body>
</html>