-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (20 loc) · 1.11 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
<!DOCTYPE HTML><html><head><title>FatGuy 2</title><link rel="stylesheet" href="index.min.css" media="screen"><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="apple-mobile-web-app-status-bar-style" content="black"></head><body><div id="screen"></div><script type="text/javascript" src="lib/melonJS-0.9.10-min.js"></script><script src="js/game.min.js"></script><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>