-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (24 loc) · 904 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Helicopter game</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body id="index" class="index">
<!-- Game stage -->
<div id="app">
</div>
<!-- <script type="text/javascript" src="cordova-2.7.0.js"></script> -->
<script type="text/javascript" charset="utf-8">
var appContainer = document.getElementById("app");
var APPHEIGHT = screen.height;
var APPWIDTH = screen.width;
appContainer.style.height = APPHEIGHT + "px";
appContainer.style.backgroundSize = APPWIDTH + "px " + APPHEIGHT +"px";
</script>
<script type="text/javascript" src="js/accelerometer.js"></script>
<script type="text/javascript" src="js/sprite.js"></script>
<script type="text/javascript" src="js/collision.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
</body>
</html>