-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
79 lines (69 loc) · 3.2 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
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML>
<html>
<head>
<title>WG-Held by inBrain</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="icons/touch-icon-iphone-60x60.png">
<link rel="apple-touch-icon" sizes="76x76" href="icons/touch-icon-ipad-76x76.png">
<link rel="apple-touch-icon" sizes="120x120" href="icons/touch-icon-iphone-retina-120x120.png">
<link rel="apple-touch-icon" sizes="152x152" href="icons/touch-icon-ipad-retina-152x152.png">
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- Canvas placeholder -->
<div id="screen"></div>
<!-- melonJS Library -->
<!-- build:js js/app.min.js -->
<script type="text/javascript" src="lib/melonJS-2.0.2.js"></script>
<!-- Plugin(s) -->
<script type="text/javascript" src="lib/plugins/debug/debugPanel.js"></script>
<!-- Game Scripts -->
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="build/js/resources.js"></script>
<script type="text/javascript" src="js/screens/loadingScreen.js"></script>
<script type="text/javascript" src="js/screens/intro.js"></script>
<script type="text/javascript" src="js/screens/outro.js"></script>
<script type="text/javascript" src="js/entities/entities.js"></script>
<script type="text/javascript" src="js/entities/entities_CG.js"></script>
<script type="text/javascript" src="js/entities/entities_JR.js"></script>
<script type="text/javascript" src="js/entities/HUD.js"></script>
<script type="text/javascript" src="js/screens/title.js"></script>
<script type="text/javascript" src="js/screens/title_recipes.js"></script>
<script type="text/javascript" src="js/screens/title_CG.js"></script>
<script type="text/javascript" src="js/screens/title_JR.js"></script>
<script type="text/javascript" src="js/screens/title_WG_musiker.js"></script>
<script type="text/javascript" src="js/screens/play.js"></script>
<script type="text/javascript" src="js/screens/play_CG.js"></script>
<script type="text/javascript" src="js/screens/play_JR.js"></script>
<script type="text/javascript" src="js/screens/play_WG_musiker.js"></script>
<!-- /build -->
<!-- Bootstrap & Mobile optimization tricks -->
<script type="text/javascript">
window.onReady(function onReady() {
game.onload();
// Mobile browser hacks
if (me.device.isMobile && !navigator.isCocoonJS) {
// Prevent the webview from moving on a swipe
window.document.addEventListener("touchmove", function (e) {
e.preventDefault();
window.scroll(0, 0);
return false;
}, false);
// Scroll away mobile GUI
(function () {
window.scrollTo(0, 1);
me.video.onresize(null);
}).defer();
me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) {
window.scrollTo(0, 1);
});
}
});
</script>
</body>
</html>