Subversion Repository Public Repository

litesoft

Diff Revisions 676 vs 677 for /trunk/GWT_Sandbox/iOSphonegapHelloWorld/PhonegapHelloWorld/www/index.html

Diff revisions: vs.
  @@ -1,64 +1,20 @@
1 - <!DOCTYPE html>
1 + <!doctype html>
2 2 <html>
3 - <head>
4 - <title></title>
5 -
6 - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
7 - <meta charset="utf-8">
8 -
9 -
10 - <!-- iPad/iPhone specific css below, add after your main css >
11 - <link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
12 - <link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />
13 - -->
14 - <!-- If your application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here -->
15 - <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
16 - <script type="text/javascript">
17 -
18 -
19 - // If you want to prevent dragging, uncomment this section
20 - /*
21 - function preventBehavior(e)
22 - {
23 - e.preventDefault();
24 - };
25 - document.addEventListener("touchmove", preventBehavior, false);
26 - */
27 -
28 - /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
29 - see http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
30 - for more details -jm */
31 - /*
32 - function handleOpenURL(url)
33 - {
34 - // TODO: do something with the url passed in.
35 - }
36 - */
37 -
38 - function onBodyLoad()
39 - {
40 - document.addEventListener("deviceready", onDeviceReady, false);
41 - }
42 -
43 - /* When this function is called, Cordova has been initialized and is ready to roll */
44 - /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
45 - see http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
46 - for more details -jm */
47 - function onDeviceReady()
48 - {
49 - // do your thing!
50 - navigator.notification.alert("Cordova is working")
51 - }
52 -
53 - </script>
54 - </head>
55 - <body onload="onBodyLoad()">
56 - <h1>Hey, it's Cordova!</h1>
57 - <p>Don't know how to get started? Check out our <em><a target="_blank" href="http://docs.phonegap.com/en/edge/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS">Getting Started Guide</a></em>
58 - <br />
59 - <ol>
60 - <li>Check your console log for any white-list rejection errors.</li>
61 - <li>Add your allowed <strong>hosts</strong> in Cordova.plist/ExternalHosts (wildcards OK, don't enter the URL scheme)</li>
62 - </ol>
63 - </body>
64 - </html>
3 + <head>
4 + <meta name="viewport" content="width=device-width; height=device-height; user-scalable=no" />
5 + <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 + <title>Beer Me</title>
7 + <!--<link rel="stylesheet" href="/master.css" type="text/css" media="screen" />-->
8 + <script type="text/javascript" src="cordova-1.7.0.js"></script>
9 + <script type="text/javascript" language="javascript" src="Hello/Hello.nocache.js"></script>
10 + </head>
11 + <body bgcolor="white">
12 + <!--<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>-->
13 + <noscript>
14 + <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
15 + Your web browser must have JavaScript enabled
16 + in order for this application to display correctly.
17 + </div>
18 + </noscript>
19 + </body>
20 + </html>