Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
- <meta charset="utf-8">
- <!-- iPad/iPhone specific css below, add after your main css >
- <link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
- <link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />
- -->
- <!-- 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 -->
- <script type="text/javascript" charset="utf-8" src="phonegap-1.1.0.js"></script>
- <script type="text/javascript">
- // If you want to prevent dragging, uncomment this section
- /*
- function preventBehavior(e)
- {
- e.preventDefault();
- };
- document.addEventListener("touchmove", preventBehavior, false);
- */
- /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
- see http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
- for more details -jm */
- /*
- function handleOpenURL(url)
- {
- // TODO: do something with the url passed in.
- }
- */
- function onBodyLoad()
- {
- document.addEventListener("deviceready", onDeviceReady, false);
- }
- /* When this function is called, PhoneGap has been initialized and is ready to roll */
- /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
- see http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
- for more details -jm */
- function onDeviceReady()
- {
- // do your thing!
- navigator.notification.alert("PhoneGap is working")
- }
- </script>
- </head>
- <body onload="onBodyLoad()">
- <h1>Hey, it's PhoneGap!</h1>
- <p>Don't know how to get started? Check out <em><a target="_blank" href="http://www.phonegap.com/start#ios-x4">PhoneGap Start</a></em>
- <br />
- <ol>
- <li>Check your console log for any white-list rejection errors.</li>
- <li>Add your allowed hosts in PhoneGap.plist/ExternalHosts (wildcards OK)</li>
- </ol>
- <!-- # Uncomment to test iFrame Tag -->
- <iframe width="420" height="315" src="http://www.youtube.com/embed/h5l0K62n8B4" frameborder="0" allowfullscreen>
- </iframe>
- <!-- # Uncomment to test Embed Tag -->
- <!--
- <embed src="http://www.youtube.com/watch?v=h5l0K62n8B4&feature=feedrec_grec_index"
- HEIGHT=100% WIDTH=100%/>
- -->
- <!-- Uncomment to test Object Tag -->
- <!--
- <script language="JavaScript" type="text/javascript"
- src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>
- <object id="myExperience1220504714001" class="BrightcoveExperience">
- <param name="bgcolor" value="#FFFFFF" />
- <param name="width" value="480" />
- <param name="height" value="450" />
- <param name="playerID" value="1149493366001" />
- <param name="playerKey"
- value="AQ~~,AAAA3B3x0ME~,2iTKA6g0_PuO5CmZ4Sye0ajQPrn6AeZC" />
- <param name="isVid" value="true" />
- <param name="isUI" value="true" />
- <param name="dynamicStreaming" value="true" />
- <param name="@videoPlayer" value="1220504714001" />
- </object>
- -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment