Permalink
Browse files

experiment with menu button try 1

  • Loading branch information...
1 parent b2ffefa commit b07e47cbac86f14a79327b0556b036c7ec29ef17 @Kurocon committed Feb 16, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 index.html
View
@@ -4,6 +4,12 @@
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
<title>Canisius RoosterApp</title>
<link rel="stylesheet" href="assets/css/style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ document.addEventListener("menubutton", menuKeyDown, true);
+ function menuKeyDown() {
+ setTimeout( function() {navigator.device.exitApp();}, 100 );
+ }
+ </script>
</head>
<body>
<iframe id="contentIframe" src="http://cup.kevinalberts.nl/"><p id="contentText">Uw browser ondersteunt geen iframes. <a href="http://cup.kevinalberts.nl/">Klik hier om de RoosterApp te openen.</a></p></iframe>

0 comments on commit b07e47c

Please sign in to comment.