-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (56 loc) · 2.34 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
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=3.0, minimum-scale=0.86">
<html>
<head>
<title>Battleship</title>
<script type="text/javascript" src="javascripts/ext/underscore.js"></script>
<script type="text/javascript" src="javascripts/ext/jquery-1.7.1.js"></script>
<script type="text/javascript" src="javascripts/ext/jshashtable-2.1.js"></script>
<script type="text/javascript" src="javascripts/ext/jquery.numeric.js"></script>
<script type="text/javascript" src="javascripts/ext/jquery.numberformatter.js"></script>
<script type="text/javascript" src="javascripts/ext/backbone.js"></script>
<script type="text/javascript" src="javascripts/ext/icanhaz.js"></script>
<script type="text/javascript" src="javascripts/app/Boat.js"></script>
<script type="text/javascript" src="javascripts/app/Cell.js"></script>
<script type="text/javascript" src="javascripts/app/Board.js"></script>
<script type="text/javascript" src="javascripts/app/Game.js"></script>
<script type="text/javascript" src="javascripts/boot.js"></script>
<link rel="stylesheet" href="stylesheets/main.css" type="text/css" media="screen" charset="utf-8">
<script id="board" type="text/html">
<td>{{ name }}</td>
</script>
</head>
<body>
<label for="shotsPerIteration">Shots per iteration: </label>
<input id="shotsPerIteration" type="number" min="1" max="20" value="20"/>
<button id="newGame">New game</button>
<br/>
<div id="container"></div>
<table id="info">
<tr>
<td id="endGameResult" colspan="2"> </td>
</tr>
<tr>
<td>Total shots remaining:</td>
<td id="totalShotsRemaining"> </td>
</tr>
<tr>
<td>Shots remaining for iteration:</td>
<td id="shotsRemainingForIteration"> </td>
</tr>
<tr>
<td>Balance:</td>
<td id="funds"> </td>
</tr>
</table>
</body>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38246571-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</html>