Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

experiment with menu button try 1

  • Loading branch information...
commit b07e47cbac86f14a79327b0556b036c7ec29ef17 1 parent b2ffefa
Kevin Alberts authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 index.html
6 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>
Please sign in to comment.
Something went wrong with that request. Please try again.