-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (28 loc) · 1.15 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
<!doctype html>
<html ng-app="seabattle">
<head>
<title>Seabattle Awesome Game</title>
<script src="/bower_components/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="/bower_components/angular/angular.js"></script>
<script src="/bower_components/angular-route/angular-route.js"></script>
<script src="/bower_components/angular-resource/angular-resource.js"></script>
<script src="/bower_components/angular-mocks/angular-mocks.js"></script>
<link href="/public/battle.css" rel="stylesheet" type="text/css">
<script src="/public/battle.js"></script>
</head>
<body>
<h2>Seabattle</h2>
<div class="arena" ng-controller="BattleController">
<table>
<tbody>
<tr ng-repeat="row in grid track by $index">
<td ng-repeat="cell in row track by $index" id="{{$parent.$index}}x{{$index}}" ng-click="fire($parent.$index, $index, true)"></td>
</tr>
</tbody>
</table>
<div class="hide loading" id="loader">AI shooting...</div>
<div class="hide loading" id="endgame"></div>
<a ng-click="startGame()" id="startBtn" class="start">Crash them all!</a>
</div>
</body>
</html>