You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/05/04 02:05:38 UTC
[5/7] Updated bin folder for Cordova 1.7.0
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/ce742b8c/bin/templates/project/www/index.html
----------------------------------------------------------------------
diff --git a/bin/templates/project/www/index.html b/bin/templates/project/www/index.html
old mode 100755
new mode 100644
index 6c76917..9f9982e
--- a/bin/templates/project/www/index.html
+++ b/bin/templates/project/www/index.html
@@ -1,17 +1,19 @@
<!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">
- <meta http-equiv="Content-type" content="text/html; 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.0.0.js"></script>
- <script type="text/javascript" charset="utf-8">
+ <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+ <script type="text/javascript">
// If you want to prevent dragging, uncomment this section
@@ -35,23 +37,28 @@
function onBodyLoad()
{
- document.addEventListener("deviceready",onDeviceReady,false);
+ document.addEventListener("deviceready", onDeviceReady, false);
}
- /* When this function is called, PhoneGap has been initialized and is ready to roll */
+ /* When this function is called, Cordova 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")
+ navigator.notification.alert("Cordova 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 href="http://github.com/phonegap/phonegap-start">PhoneGap Start</a></em>
+ <h1>Hey, it's Cordova!</h1>
+ <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>
+ <br />
+ <ol>
+ <li>Check your console log for any white-list rejection errors.</li>
+ <li>Add your allowed <strong>hosts</strong> in Cordova.plist/ExternalHosts (wildcards OK, don't enter the URL scheme)</li>
+ </ol>
</body>
</html>