-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (38 loc) · 1.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sea Battle</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/ship.js"></script>
<script type="text/javascript" src="js/player.js"></script>
<script type="text/javascript" src="js/board.js"></script>
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript">
$(function(){
$('.js-new').click(function(){
$('.js-menu').addClass('hidden');
$('.js-game').removeClass('hidden');
var game = new Game();
game.start();
});
$('.js-name').focus(function(){
$(this).val('');
})
});
</script>
</head>
<body>
<div class="new js-menu">
<div class="name">Sea Battle</div>
<button class="btn js-new">Новая игра</button>
<input type="text" class="js-name field" value="человек">
</div>
<div class="wrapper js-game hidden">
<div class="js-player stat"></div>
<div class="board js-board1"></div>
<div class="board js-board2"></div>
</div>
</body>
</html>