-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
67 lines (63 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
67
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sokoban</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase.js"></script>
<script type="text/javascript">
var config = {
apiKey: "AIzaSyB94OhZhhVtOkdo9JoKQVCboHgnRQbe1bY",
authDomain: "sokoban-ea225.firebaseapp.com",
databaseURL: "https://sokoban-ea225.firebaseio.com",
storageBucket: "",
};
if (typeof firebase !== 'undefined')
firebase.initializeApp(config);
</script>
<script type="text/javascript" src = "js/levels.js"></script>
<script type="text/javascript" src = "js/model.js"></script>
<script type="text/javascript" src = "js/view.js"></script>
<script type="text/javascript" src = "js/controller.js"></script>
<script type="text/javascript" src = "js/generator.js"></script>
<script type="text/javascript" src = "js/scoreboard.js"></script>
<script type="text/javascript" src = "js/sokoban.js"></script>
<script type="text/javascript" src = "js/solver.js"></script>
</head>
<body>
<h1 id = "title" class = "title_shadow">Sokoban</h1>
<h1 id = "win_text" class = "title_shadow">Победа!</h1>
<div id = "game">
<div class = "left boxshadow">
Ник:<br> <input type="text" name="nickname" id = "nickname"><br>
Выберите уровень:<br>
<select id = "selectLevel"></select><br>
<a href = "#" id = "startBtn" class = "button">Начать</a>
<a href = "#" id = "restartBtn" class = "button">Заново</a>
<a href = "#" id = "back" class = "button">Шаг назад</a>
<br><br>
Размер уровня:<br>
<select id = "sizeLevel">
<option value = "7">7</option>
<option value = "10">10</option>
<option value = "13">13</option>
<option value = "16">16</option>
<option value = "19">19</option>
</select><br>
<a href = "#" id = "genLevel" class = "button">Сгенерировать уровень</a>
<a href = "#" id = "solveLevel" class = "button">Решить</a>
</div>
<div class = "center">
<canvas id = "level"></canvas>
</div>
<div class = "right boxshadow">
Кол-во ходов: <label id = "stepsCount"></label><hr>
Таблица результатов<br>
<div id = "scoreboard" class = "scroll">
<table id = "scoreboard_table"></table>
</div>
<div class = "clear"></div>
</div>
</div>
</body>
</html>