generated from Israel-Laguan/HTML-LESS-JS-no-webpack-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (60 loc) · 1.9 KB
/
index.html
File metadata and controls
63 lines (60 loc) · 1.9 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>My Great Page!</title>
<!-- LESS -->
<link href="https://fonts.googleapis.com/css?family=Muli&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/css/main.css">
</head>
<body>
<div id="landing-container">
<h1>Tic-Tac-Toe</h1>
<form id="players-form">
<div class="player-names">
<div class="player-1">
<label>
x<input
name="p1"
placeholder="Player 1"
minlength="2"
maxlength="25"
id="p1"
>
</label>
</div>
<div class="player-2">
<label>
o<input
name="p2"
minlength="2"
maxlength="25"
placeholder="Player 2" id="p2"
>
</label>
</div>
</div>
<button class="play-button" type="submit">Play</button>
</form>
</div>
<div style="display: none" id="game-container">
<h2 id="players-name"></h2>
<div class="gameboard-grid">
<div id="cell-1" class="block"></div>
<div id="cell-2" class="block"></div>
<div id="cell-3" class="block"></div>
<div id="cell-4" class="block"></div>
<div id="cell-5" class="block"></div>
<div id="cell-6" class="block"></div>
<div id="cell-7" class="block"></div>
<div id="cell-8" class="block"></div>
<div id="cell-9" class="block"></div>
</div>
<h2 id="winner"></h2>
<button class="play-button" id="reset-button" hidden>Play Again</button>
</div>
<script src="src/js/main.js" type="module"></script>
</body>
</html>