Advertisement
Guest User

Untitled

a guest
Jul 7th, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.33 KB | None | 0 0
  1. <!--
  2. PhoneGap is available under *either* the terms of the modified BSD license *or* the MIT License (2008).
  3. See  http://opensource.org/licenses/alphabetical for full text.
  4.  
  5. Copyright (c) 2005-2011, Nitobi Software Inc.
  6. Copyright (c) 2010-2011, IBM Corporation
  7.  
  8. website: http://phonegap.com
  9. -->
  10.  
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  12. <html>
  13.   <head>
  14.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  15.     <meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no">
  16.  
  17.     <link rel="stylesheet" href="sencha/resources/css/sencha-touch.css" type="text/css">
  18.     <script type="text/javascript" src="sencha/sencha-touch-debug.js"></script>
  19.    
  20.     <script src="json2.js" type="text/javascript"></script>
  21.     <script src="phonegap.0.9.6.min.js" type="text/javascript"></script>
  22.  
  23.     <script type="text/javascript">
  24.         // invoked when device is ready
  25.         function deviceInfo() {
  26.             alert('deviceInfo()');
  27.         }
  28.  
  29.         // register PhoneGap event listeners when DOM content loaded
  30.         function init() {
  31.             alert('init()');
  32.             document.addEventListener("deviceready", deviceInfo, true);
  33.         }
  34.     </script>
  35.   </head>
  36.   <body onload="init()">
  37.     <h3>Test</h3>
  38.   </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement