-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
84 lines (77 loc) · 2.8 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Minesweeper by Monday Chen</title>
<link href='http://fonts.googleapis.com/css?family=Orbitron:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="./dist/css/app.css">
</head>
<body>
<header>
<h1>[Nuclear] mine sweeper</h1>
<nav class="menu">
<ul>
<li>
<a href="##" class="menu-popup-link">menu</a>
</li>
<li>
<a href="##" class="popup-link" data-content-id="tmpl-credits">credits</a>
</li>
<li>
<a target="_blank" href="https://github.com/mondaychen/minesweeper">github</a>
</li>
</ul>
</nav>
</header>
<div id="wrapper">
</div>
<script id="tmpl-main" type="text/template">
<div class="board"></div>
<div class="status">
<div class="mines-count">
<i class="icon icon-mine"><span class="mines">0</span></i>
</div>
<div class="timer">
<i class="icon icon-stopwatch"><span class="time">0</span></i>
</div>
</div>
</script>
<script id="tmpl-menu" type="text/template">
<div class="menu white-popup">
<h4>Choose difficulty:</h4>
<ul class="level">
<% _.each(levels, function(level, key) { %>
<li class="<%= currentLevel === key ? 'selected' : '' %>" data-level="<%= key %>">
<span class="level-name"><%= level.name %></span> (<b><%= level.rows %></b>×<b><%= level.columns %></b> with <b><%= level.mines %></b> mines)
</li>
<% }) %>
</ul>
<button class="retry">Restart game</button>
</div>
</script>
<script id="tmpl-playing-summary" type="text/template">
<div class="summary white-popup">
<% if(success) { %>
<p>Good job! You beat the level in <%= time %> second<%= time > 1 ? "s" : "" %>.</p>
<button class="retry">Another game</button>
<% } else { %>
<p>You failed.</p>
<button class="retry">Try again</button>
<% } %>
</div>
</script>
<script id="tmpl-credits" type="text/template">
<div class="credits white-popup">
<p class="copyright">
Game made by <a target="_blank" href="https://github.com/mondaychen">Mengdi Chen</a>.
</p>
<p class="fonts-credits">
Icon font generated by <a target="_blank" href="http://www.flaticon.com">flaticon.com</a>
under <a target="_blank" href="http://creativecommons.org/licenses/by/3.0/">CC BY</a>. The authors are: <a target="_blank" href="http://www.freepik.com">Freepik</a>, <a target="_blank" href="http://www.simpleicon.com">SimpleIcon</a>.
</p>
</div>
</script>
<script src="./dist/js/setup.js"></script>
</body>
</html>