-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (53 loc) · 1.86 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
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en" ng-app="mymodule">
<head>
<meta charset="UTF-8">
<title>MineSweeper</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="appstyle.css" />
<style>
.ng-cloak {
display: none;
}
</style>
</head>
<body>
<div ng-if="false">
LOADING....
</div>
<div id="foo" class="container ng-cloak">
<div ng-controller="CalcController" class="place-game">
<h1>MineSweeper</h1>
<input type="number" ng-model="col" ng-init="col=6;">
<button ng-click="btnCreate(col)"ng-init="flags=col;status='Start!'">New Game</button>
<br/>
<br/>
Flags: {{flags}}
<br/>
<p id="status">{{status}}</p>
<br/><br/>
<table id="tab">
<tbody>
<tr ng-repeat="row in board">
<td class="cell btn {{cell.class}}"
ng-right-click ="btnRClick(cell)"
ng-repeat="cell in row"
ng-click="btnClick(cell);">
<i class="{{cell.value}}">{{cell.result}}</i>
</td>
</tr>
</tbody>
</table>
<!--<div id="win" class="alert alert-success collapse" role="alert">-->
<!--<button type="button" class="close" onclick="closeMessage()" >-->
<!--<span>OK</span>-->
<!--</button>-->
<!--<p align="center"><strong></strong></p>-->
<!--</div>-->
<!--</div>-->
</div>
<script src="angular.js"></script>
<script src="app.js"></script>
</body>
</html>