-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
224 lines (208 loc) · 7.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet">
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
<script src="bs.js" type="text/javascript"></script>
<title>Epic Battleship</title>
</head>
<body>
<style type="text/css">
body {
background-color: #003333;
text-align: center;
font-family: 'Audiowide', cursive;
color: #A7DFDF;
}
h1 {
font-family: 'Audiowide', cursive;
font-size: 68px;
color: #A7DFDF;
}
td {
height: 60px;
width: 60px;
border: 1px solid grey;
}
table {
border-size: 1px;
border-style: solid;
border-color: black;
background-color: #B2E0E0;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
}
#display #display2 {
font-family: 'Audiowide', cursive;
font-size: 50px;
color: #A7DFDF;
}
.statusHead {
height:28px;
border: none;
}
.col1 {
height: 25px;
width: 150px;
border: none;
}
.tinyLifeStatusCell {
height: 30px;
width: 35px;
border: none;
}
.full {
background-image: url("http://orig04.deviantart.net/943c/f/2012/165/c/5/pixel_heart_by_roxy80-d53j2pp.png");
background-size: cover;
background-repeat: no-repeat;
}
.shipStatus {
font-family: 'Audiowide', cursive;
background-image: none;
background-color: #000F0F;
color: white;
font-size: 14px;
margin-top: 80px;
margin-right: auto;
margin-left: auto;
}
.tableContainer {
text-align: center;
}
.miss {
background-image:url("http://4.bp.blogspot.com/-_hPtN6OSUlI/UofVgda6szI/AAAAAAAAGSM/hx7TmrmEc98/s1600/1-01.jpg");
background-size: 45px 45px;
background-repeat: no-repeat;
background-position: center;
}
.destroyed {
background-image: url("https://media.giphy.com/media/HhTXt43pk1I1W/giphy.gif");
background-size: 60px 60px;
background-position: center;
}
.showShip {
background-image: url("http://images.freeimages.com/images/premium/previews/3674/36746882-cartoon-cruise-ship.jpg");
background-size: 80px 60px;
background-position: center;
}
.showSubmarine {
background-image: url("http://www.drawingnow.com/file/videos/image/how-to-draw-a-submarine.jpg");
background-size: 80px 60px;
background-position: center;
}
.container {
display: flex;
justify-content: space-around;
}
.counter {
margin: auto;
margin-top: 130px;
margin-bottom: 50px;
border: 1px solid white;
width: 160px;
height: 110px;
background-color: #001313;
padding: 10px;
}
</style>
<h1>Epic Battleship</h1>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-2">
<div class="counter">
<p id="display"></p>
<p id="display2"></p>
</div>
<div>
<input type="button" value="Show Ships" id="show" class="btn btn-danger"/>
</div>
</div>
<table id="viewBoard" class="col-xs-12 col-sm-12 col-md-6">
</table>
<div class="col-xs-12 col-sm-12 col-md-4">
<table class="shipStatus" id="table2">
<thead>
<td class="statusHead">Ship</td>
<td class="statusHead" colspan="5">Life</td>
</thead>
<tbody>
<tr>
<td class="col1">Aircraft Carrier</td>
<td class="tinyLifeStatusCell full five0"></td>
<td class="tinyLifeStatusCell full five1"></td>
<td class="tinyLifeStatusCell full five2"></td>
<td class="tinyLifeStatusCell full five3"></td>
<td class="tinyLifeStatusCell full five4"></td>
</tr>
<tr>
<td class="col1">Frigate</td>
<td class="tinyLifeStatusCell full four10"></td>
<td class="tinyLifeStatusCell full four11"></td>
<td class="tinyLifeStatusCell full four12"></td>
<td class="tinyLifeStatusCell full four13"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
<tr>
<td class="col1">Corvette</td>
<td class="tinyLifeStatusCell full four20"></td>
<td class="tinyLifeStatusCell full four21"></td>
<td class="tinyLifeStatusCell full four22"></td>
<td class="tinyLifeStatusCell full four23"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
<tr>
<td class="col1">Destroyer</td>
<td class="tinyLifeStatusCell full three10"></td>
<td class="tinyLifeStatusCell full three11"></td>
<td class="tinyLifeStatusCell full three12"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
<tr>
<td class="col1">Marvin</td>
<td class="tinyLifeStatusCell full three20"></td>
<td class="tinyLifeStatusCell full three21"></td>
<td class="tinyLifeStatusCell full three22"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
<tr>
<td class="col1">Raptor</td>
<td class="tinyLifeStatusCell full two10"></td>
<td class="tinyLifeStatusCell full two11"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
<tr>
<td class="col1">Tugboat</td>
<td class="tinyLifeStatusCell full two20"></td>
<td class="tinyLifeStatusCell full two21"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
<tr>
<td class="col1">Submarine</td>
<td class="tinyLifeStatusCell full one0"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
<td class="tinyLifeStatusCell"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>