-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsweeper.html
More file actions
31 lines (28 loc) · 1.11 KB
/
Copy pathsweeper.html
File metadata and controls
31 lines (28 loc) · 1.11 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Sweeper</title>
<link rel="stylesheet" href="sweeper.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<link href="http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica+SC|Permanent+Marker|Source+Sans+Pro:400,700|Droid+Sans+Mono" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Sweeper</h1>
<p>clear the field of x's</p>
<div id="menu">
<li onclick="b.rebuild();">Rebuild</li>
<li onclick="b.cheat();">Cheat</li>
<li onclick="b.resize();">Resize</li>
<li onclick="b.submit();">Submit</li>
</div>
<div id="resize" style="display: none;">
Sweeping Area : <input id="size" type="number" min="1" max="32" value="8"></input>
X's : <input id="mines" type="number" min="1" max="64" value="10"></input>
</div>
<table id="grid"></table>
<span id="result"></span>
<div>You have flagged <span id="flags">0</span> cells.</div>
<script type="text/javascript" src="sweeper.js"></script>
</body>
</html>