-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Battleship</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div id="header">
<h1 id="gameTitle"><img id="titleImg" src="src/assets/images/title.png"></h1>
</div>
</header>
<section id="welcomeScreen">
<div id="greeting">
<form id="greetingForm" autocomplete="off"><label for="name">What should we call you, Admiral?</label>
<input type="text" id="name" name="name" required minlength="2" maxlength="8" size="10">
<input type="submit" value="Charge!" id="startButton" class="button" />
</form>
</div>
</section>
<section id="afterGame">
<h2 id="winnerName" class="afterGame hidden">PC lost</h2>
<div class="afterGame"><button id="restart" class="afterGame hidden">Sail again?</button></div>
</section>
<section id="gameScreen">
<div class="board">
<div id="player01Board"></div>
</div>
<div class="board">
<div id="player02Board"></div>
</div>
</section>
<script src="src/index.mjs" type="module"></script>
</body>
</html>