-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
37 lines (36 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Minesweeper - Vue.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="minesweep.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css" rel="stylesheet">
<script src="https://npmcdn.com/[email protected]/dist/vue.js"></script>
</head>
<body>
<div class="container">
<div id="minesweep">
<div class="controls">
<button @click="newGame()">New Game</button>
</div>
<table class="minesweeper">
<tr v-for="(r,row) in tiles">
<td v-for="(c,tile) in row"
@click="openTile(r, c)"
@contextmenu.prevent="flagTile(r, c)"
:class="tile.classes">
</td>
</tr>
</table>
</div>
</div>
<footer>
<a href="https://github.com/PandaWhisperer/vue-minesweeper">
<i class="fa fa-github-square" title="View source on GitHub"></i>
</a>
</footer>
</script>
<script type="text/javascript" src="minesweep.js"></script>
</body>
</html>