-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (93 loc) · 4.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Odin Curriculum Tic Tac Toe Game</title>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="wrapper">
<div class="modal" id="welcome-modal">
<div class="modal__content">
<h2 class="modal__title title ">Welcome to<br>Tic-Tac-Toe Game</h2>
<p class="modal__subtitle">Choose your settings</p>
<form class="modal__form" id="settings-form">
<div class="modal__players">
<div class="modal__player-block">
<label class="modal__label" for="player1-input-name">Name:</label>
<input class="modal__input" type="text" id="player1-input-name" name="player1-input-name"
placeholder="Player 1">
<label class="modal__label" for="player1-input-marker">Token:
<input class="modal__input" type="text" id="player1-input-marker" name="player1-input-marker"
max='1' placeholder="X"></label>
</div>
<div class="modal__player-block">
<label class="modal__label" for="player2-input-name">Name:</label>
<input class="modal__input" type="text" id="player2-input-name" name="player2-input-name"
placeholder="Player 2">
<label class="modal__label" for="player2-input-marker">Token:
<input class="modal__input" type="text" id="player2-input-marker" name="player2-input-marker"
max='1' placeholder="O"></label>
</div>
</div>
<div class="modal__settings">
<label class="modal__settings-block" for="board-size">Board Size:
<select id="board-size" name="board-size">
<option value="3">3x3 Easy</option>
<option value="4">4x4 Fun</option>
<option value="5">5x5 Interesting</option>
<option value="15">15x15 Hardcore</option>
</select>
</label>
<label class="modal__settings-block" for="time-input-wins">Play up to
<select name="time-input-wins" id="time-input-wins">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
wins
</label>
</div>
<button class="btn" type="submit">Start Game</button>
</form>
</div>
</div>
<div class="page">
<div class="page__container">
<header class="page__header">
<h1 class="page__player-turn title"></h1>
</header>
<main class="page__board board" id="gameboard" translate="no">
</main>
<aside class="page__aside aside-page">
<div class="aside-page__players">
<span class="aside-page__player">
<span class="" id="player1-name">Player 1</span>
<span class="" id="player1-marker">X</span>
</span>
<span>vs</span>
<span class="aside-page__player">
<span class="" id="player2-name">Player 2</span>
<span class="" id="player2-marker">O</span>
</span>
</div>
<div class="aside-page__results title">
<span class="aside-page__result" id="player1-score">0</span>
<span>:</span>
<span class="aside-page__result" id="player2-score">0</span>
</div>
<div class="aside-page__wins">Playing up to <span>3</span> wins</div>
<div class="aside-page__buttons">
<button class="aside-page__button btn" id="continue-button">Continue</button>
<button class="aside-page__button btn" id="restart-button">Restart</button>
</div>
</aside>
</div>
</div>
</div>
<script type="module" src="./js/app.js"></script>
</body>
</html>