-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (46 loc) · 1.86 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Anti-Tetris</title>
<link rel='stylesheet' href='style.css' />
<!-- 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.2.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<header class="row">
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12 text-center">
<h1>
Anti-Tetris
</h1>
</div>
</header>
<div class="row">
<div class="board col-md-offset-4 col-md-4 col-sm-offset-3 col-sm-5 col-xs-8">
<canvas width='300' height='500'></canvas>
<div id="game-over-screen">Game Over!</div>
</div>
<div class="col-md-2 col-sm-3 col-xs-4">
<h2 class="score">Score: <span id="score-value">0</span></h2>
<div class="btn-group">
<button id="play-button" class="btn btn-success active" onclick="play"><span class="glyphicon glyphicon-play"></span></button>
<button id="pause-button" class="btn btn-success disabled" onclick="pause"><span class="glyphicon glyphicon-pause"></span></button>
<button id="stop-button" class="btn btn-success disabled" onclick="stop"><span class="glyphicon glyphicon-stop"></span></button>
<button id="repeat-button" class="btn btn-success disabled" onclick="repeat"><span class="glyphicon glyphicon-repeat"></span></button>
</div>
</div>
</div>
</div>
<footer>
<p>2017 © Alexei Șerșun. Published under MIT license.</p>
</footer>
<script src='js/tetris.js'></script>
<script src='js/render.js'></script>
<script src='js/controller.js'></script>
</body>
</html>