-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (110 loc) · 4.28 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!doctype html>
<html>
<head>
<title>mysweeper</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/jquery.hammer-full.js"></script>
<script type="text/javascript" src="dist/mysweeper.min.js"></script>
<link rel="stylesheet" type="text/css" href="dist/mysweeper.min.css" />
</head>
<body>
<section id="options-card" class="card">
<div id='validation-warnings'></div>
<form>
<div id="preset-container" class="container">
<ul class="preset">
<li class="game-type-choice">
<label for="preset-mode"><input type="radio" id="preset-mode" name="mode-select" value="P" checked />
Choose a preset difficulty level (vintage mode)
</label>
</li>
<li>
<p><strong>Select a difficulty level:</strong></p>
<ol>
<li>
<label for="level-beginner">
<input type="radio" id="level-beginner" name="preset-level" value="B" />
Beginner <span class="advice"></span>
</label>
</li>
<li>
<label for="level-intermediate">
<input type="radio" id="level-intermediate" name="preset-level" value="I" checked />
Intermediate <span class="advice"></span>
</label>
</li>
<li>
<label for="level-expert">
<input type="radio" id="level-expert" name="preset-level" value="E" />
Expert <span class="advice"></span>
</label>
</li>
</ol>
</li>
</ul>
</div>
<div id="custom-container" class="container">
<ul class="custom">
<li class="game-type-choice">
<label for="custom-mode"><input type="radio" id="custom-mode" name="mode-select" value="C" />
Create a customized game...
</label>
</li>
<li>
<p><strong>Choose your desired board dimensions:</strong></p>
<input type="text" id="dimensions" placeholder="9" />
<strong> x </strong>
<input type="text" id="dimensions-mirror" placeholder="9" disabled />
<span class="advice">Please do not exceed <span>.</span>
</li>
<li>
<p><strong>How many mines? </strong></p>
<input id="mine-count" name="mine-count" placeholder="1" />
<span class="advice">Max. mines possible: <span></span></span>
</li>
<li>
<p><strong>Color theme: </strong></p>
<select id="color-theme" name="color-theme">
<option value="LIGHT" selected>light</option>
<option value="DARK">dark</option>
</select>
</li>
</ul>
</div>
<input id="submit" type="submit" value="Let's Play!" />
</form>
</section>
<section id="board-card" class="card">
<!-- HEADER MENU -->
<header>
<!-- DISPLAYED MINE COUNT -->
<span id="mines-display">Mines:
<span class="minecounter">0</span>
<span class="minecounter">0</span>
<span class="minecounter">0</span>
</span>
<!-- SCOREBOARD -->
<span id="score-display">Score:
<span id="sc1" class="scores">0</span>
<span id="sc2" class="scores">0</span>
<span id="sc3" class="scores">0</span>
</span>
<!-- CENTER/LOGO -->
<h1 class="banner"><i>Ä</i><span>my</span>sweeper</h1><span class="version"></span>
<!-- CLOCK -->
<span id="countdown">
<span id="m1" class="timer minutes">0</span>
<span id="m2" class="timer minutes">0</span>
<span class="colon">:</span>
<span id="s1" class="timer seconds">0</span>
<span id="s2" class="timer seconds">0</span>
</span>
</header>
<!-- FLASH MESSAGE PANEL -->
<div id="flash"></div>
<!-- GAMEBOARD -->
<table id="board"></table>
</section>
</body>
</html>