Guest User

pg_ios_#327_1

a guest
Nov 3rd, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. <!DOCTYPE html>
  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="phonegap-1.1.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, PhoneGap 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("PhoneGap is working")
  51. }
  52.  
  53. </script>
  54. </head>
  55. <body onload="onBodyLoad()">
  56. <h1>Hey, it's PhoneGap!</h1>
  57. <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>
  58. <br />
  59. <ol>
  60. <li>Check your console log for any white-list rejection errors.</li>
  61. <li>Add your allowed hosts in PhoneGap.plist/ExternalHosts (wildcards OK)</li>
  62.  
  63. </ol>
  64. <!-- # Uncomment to test iFrame Tag -->
  65. <iframe width="420" height="315" src="http://www.youtube.com/embed/h5l0K62n8B4" frameborder="0" allowfullscreen>
  66. </iframe>
  67.  
  68. <!-- # Uncomment to test Embed Tag -->
  69. <!--
  70. <embed src="http://www.youtube.com/watch?v=h5l0K62n8B4&feature=feedrec_grec_index"
  71. HEIGHT=100% WIDTH=100%/>
  72. -->
  73.  
  74. <!-- Uncomment to test Object Tag -->
  75. <!--
  76. <script language="JavaScript" type="text/javascript"
  77. src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>
  78. <object id="myExperience1220504714001" class="BrightcoveExperience">
  79. <param name="bgcolor" value="#FFFFFF" />
  80. <param name="width" value="480" />
  81. <param name="height" value="450" />
  82. <param name="playerID" value="1149493366001" />
  83. <param name="playerKey"
  84. value="AQ~~,AAAA3B3x0ME~,2iTKA6g0_PuO5CmZ4Sye0ajQPrn6AeZC" />
  85. <param name="isVid" value="true" />
  86. <param name="isUI" value="true" />
  87. <param name="dynamicStreaming" value="true" />
  88. <param name="@videoPlayer" value="1220504714001" />
  89. </object>
  90. -->
  91.  
  92. </body>
  93. </html>
  94.  
  95.  
Advertisement
Add Comment
Please, Sign In to add comment