-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (33 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/lib/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/Style.js"></script>
<script type="text/javascript" src="js/SoundManager.js"></script>
<script type="text/javascript" src="js/GridBuster.js"></script>
<link rel="stylesheet" href="css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<body>
<div id="grid-buster-demo"></div>
<script type="text/javascript">
(function (){
var container = $("#grid-buster-demo"),
win = $(window),
width = win.width(),
height = win.height(),
tmpSize = Math.floor(width / 18),
blockSize = tmpSize < 32 ? 32 : tmpSize,
blocksWide = Math.floor(width / blockSize); // -100 for top bar
blockSize = Math.round(width/blocksWide);
let blocksHigh = Math.floor((height - 60) / blockSize)
new GridBuster({
element: container,
height: blocksHigh,
width: blocksWide,
blockSize: blockSize,
startLevel: 1
});
})();
</script>
</body>
</html>