-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (61 loc) · 2.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Tic Tac Toe</h1>
<div class="form_container">
<form id="form" class="form" action="#">
<fieldset>
<legend>Play the computer or a friend.</legend>
<div class="field">
<label for="player1_name">Player1</label>
<input type="text" id="player1_name" minlength="1" maxlength="20">
</div>
<div class="field">
<label for="player2_name">Player2</label>
<input type="text" id="player2_name" minlength="1" maxlength="20">
</div>
<div class="field">
<div class="checkbox_container">
<label for="play_computer">Play Computer?</label>
<input type="checkbox" id="play_computer" checked>
</div>
<div class="mode">
<label for="easy_mode" class="easy">Easy</label>
<input class="mode easy" type="radio" id="easy_mode" name="mode" value="" checked >
</div>
<div class="mode">
<label for="hard_mode" class="hard" value="">Hard</label>
<input class="mode" type="radio" id="hard_mode" name="mode" value="" >
</div>
</div>
<div class="field">
<input type="submit" class="button button_start" value="Start Game"></input>
</div>
</fieldset>
</form>
</div>
<div class="game_container">
<button type="button" class="button button_reset_game hidden">reset game</button>
<p class="result hidden"></p>
<div class="score_container hidden">
<p id="player1_name_display"></p>
<p id="player1_score" class="score"></p>
</div>
<div id="gameboard" class="hidden">
</div>
<div class="score_container hidden">
<p id="player2_name_display"></p>
<p id="player2_score" class="score"></p>
</div>
<button type="button" class="button button_reset hidden">play again</button>
</div>
<script src="script.js"></script>
</body>
</html>