-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (28 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<title>VanillaJsShip</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<div id="container" style="width: 600px">
<div id="controls" class="table" style="margin-bottom: 20px">
<button id="newGame">New Game</button>
<button id="undo">Undo</button>
<button id="redo">Redo</button>
</div>
<div id="board" class="table"></div>
<div id="info" class="hidden">Congratulations, you win!</div>
<div id="legend" class="table">
<span id="sampleMissed" class="legend cell missed" style="color: white">Missed</span>
<span id="samplePartialHit" class="legend cell hit">Partially Hit</span>
<span id="sampleSank" class="legend cell sank">Sank</span>
</div>
</div>
<script type="module" src="src/modal/board.js"></script>
<script type="module" src="src/modal/ship.js"></script>
<script type="module" src="src/service/shipService.js"></script>
<script type="module" src="src/service/boardService.js"></script>
<script type="module" src="src/gameController.js"></script>
</body>
</html>