-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (40 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="JBomb - a Minesweeper-like game created with VanillaJS (pure JavaScript) and HTML5 Canvas.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JBomb</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="intro">
<h1>JBomb</h1>
<p>A Minesweeper-like game created with VanillaJS (pure JavaScript) and HTML5 Canvas.</p>
</div>
<div class="hasBackgroundZone" id="setting">
<div id="inputStyle">
Grid size:
<input type="radio" value="8x" id="8x" name="gridSize" checked><label for="8x">Beginner</label>
<input type="radio" value="16x" id="16x" name="gridSize"><label for="16x">Intermediate</label>
<input type="radio" value="30x" id="30x" name="gridSize"><label for="30x">Expert</label>
<button id="playBtn" class="styledButton" type="button">Play</button>
</div>
<div id="grid_size_display"></div>
<div id="result"></div>
</div>
<!-- Game clock -->
<div id="gameClock">
Your time: <span id="clock">0</span>s
</div>
<div id="game">
<canvas id="grid"></canvas>
</div>
<div class="hasBackgroundZone">
<p>Execute a <code>git clone</code> to clone this project: <code>git clone [email protected]:trhgquan/JBomb.git</code></p>
<p>View <a href="https://github.com/trhgquan/JBomb" rel="noreferrer" target="_blank">Project site</a> on GitHub.</p>
<p><a href="https://github.com/trhgquan" rel="noreferrer" target="_blank">@trhgquan</a>, <script>document.write((new Date).getFullYear());</script></p>
</div>
<script type="module" src="src/main.js"></script>
</body>
</html>