-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (35 loc) · 947 Bytes
/
index.html
File metadata and controls
35 lines (35 loc) · 947 Bytes
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
<!doctype html>
<html>
<head>
<title>Tetris</title>
<meta charset='utf-8' />
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
canvas {
background: #CCC;
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body onload="loadPage()" onkeydown="keyDown()" onmousedown="mouseDown()" onresize="resizeCanvas()">
<canvas id='myCanvas' height='1080' width='1920'>Not support</canvas>
<script src="./js/helper.js"></script>
<script src="./js/bufferLoader.js"></script>
<script src="./js/sound.js"></script>
<script src="./js/resources.js"></script>
<script src="./js/figure.js"></script>
<script src="./js/game.js"></script>
</body>
</html>