-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (64 loc) · 2.33 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
<!DOCTYPE html>
<html>
<head>
<title>Battle Ships</title>
<meta charset="utf-8" />
<link href="styles/reset.css" rel="stylesheet" />
<link href="styles/styles.css" rel="stylesheet" />
</head>
<body class="unselectable">
<div class="app" id="app">
<header class="header">
<span class="app-title">Battle Ships v0.7</span>
</header>
<section class="fields-section">
<div class="players-field-wrapper"
id="playersField"
ondrop="MYAPP.dragNDrop.drop(event)"
ondragover="MYAPP.dragNDrop.allowDrop(event)">
</div>
<div class="computer-field-wrapper"
id="computerField"></div>
<div class="actions-wrapper">
<button type="button"
value="Start"
class="start-button"
id="startButton">Start</button>
<button type="button"
value="Reset"
class="reset-button"
id="resetButton">Reset</button>
<button type="button"
value="Random"
class="random-button"
id="randomButton">Random</button>
</div>
</section>
<section class="extended-section"
id="extendedSection">
<div class="ships-wrapper"
id="shipsWrapper">
<h3>
Drag and drop a single ship on the left field or press the "Random" button!
</h3>
<div class="horizontal-ships"
id="horizontalShips"></div>
<div class="vertical-ships"
id="verticalShips"></div>
</div>
<div class="info-wrapper">
<span>Messages</span>
<div class="message-wrapper"
id="messageWrapper">
</div>
</div>
</section>
</div>
<script src="scripts/app.js"></script>
<script src="scripts/helpers.js"></script>
<script src="scripts/models.js"></script>
<script src="scripts/dragAndDrop.js"></script>
<script src="scripts/game.js"></script>
<script src="scripts/init.js"></script>
</body>
</html>