Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0D2C18075 for ; Wed, 30 Sep 2015 18:13:06 +0000 (UTC) Received: (qmail 21655 invoked by uid 500); 30 Sep 2015 18:13:06 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 21630 invoked by uid 500); 30 Sep 2015 18:13:06 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 21621 invoked by uid 99); 30 Sep 2015 18:13:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2015 18:13:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A1ECDE00B2; Wed, 30 Sep 2015 18:13:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: dblotsky@apache.org To: commits@cordova.apache.org Date: Wed, 30 Sep 2015 18:13:05 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] docs commit: Fixing whitespace in a bunch of places: replacing tabs with spaces. Repository: cordova-docs Updated Branches: refs/heads/cordova-website 426bbfb16 -> 9c9e2c2e6 Fixing whitespace in a bunch of places: replacing tabs with spaces. Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/e541a99b Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/e541a99b Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/e541a99b Branch: refs/heads/cordova-website Commit: e541a99baa7b749ac55efc310116e1c4aacd9476 Parents: 426bbfb Author: Dmitry Blotsky Authored: Wed Sep 30 10:54:34 2015 -0700 Committer: Dmitry Blotsky Committed: Wed Sep 30 10:54:34 2015 -0700 ---------------------------------------------------------------------- ...015-04-21-plugins-release-and-move-to-npm.md | 6 +- www/_posts/2015-07-21-cordova-android-4.1.0.md | 14 +- .../guide/getting-started/android/index.md | 22 +- .../1.5.0/guide/upgrading/blackberry/index.md | 8 +- .../accelerometer/accelerometer.clearWatch.md | 20 +- .../phonegap/camera/parameter/cameraOptions.md | 26 +- .../phonegap/connection/connection.type.md | 60 ++-- .../1.5.0/phonegap/contacts/Contact/contact.md | 118 +++--- .../1.5.0/phonegap/contacts/contacts.create.md | 8 +- .../en/1.5.0/phonegap/contacts/contacts.find.md | 30 +- .../guide/getting-started/android/index.md | 48 +-- www/infra/doap_Cordova.rdf | 12 +- www/static/css-src/_home.scss | 358 +++++++++---------- www/static/css-src/_plugins.scss | 192 +++++----- www/static/css-src/main.scss | 48 +-- 15 files changed, 485 insertions(+), 485 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md b/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md index 2c868cb..a1044f4 100644 --- a/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md +++ b/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md @@ -36,13 +36,13 @@ We encourage all third party plugin developers to add `ecosystem:cordova` as a k 1. We integrate that module into the **Cordova CLI** to warn users to use the new `id` when adding plugins to their projects. 1. Add a `package.json` to your plugins, - * **Note**: To keep things simple, please make sure your `id` in `plugin.xml` is the same as your `package-name` in `package.json`. + * **Note**: To keep things simple, please make sure your `id` in `plugin.xml` is the same as your `package-name` in `package.json`. * Use `plugman createpackagejson [PLUGIN DIRECTORY]` to create `package.json`. * This will create defaults based on existing values in your `plugin.xml`. * It will also automatically add the keyword `ecosystem:cordova` to your newly generated `package.json` file. * In addition, a **cordova** key will be added to your `package.json` which we plan to use in future updates of the tooling. * View the `package.json` of [cordova-plugin-device](https://github.com/apache/cordova-plugin-device/blob/master/package.json) to see an example of what your `package.json` should look like after running `plugman createpackagejson [PLUGIN DIRECTORY]` command. - * Plugins still require a `plugin.xml` to be installed into **Cordova** projects. + * Plugins still require a `plugin.xml` to be installed into **Cordova** projects. 1. Publish your plugin to **npm** using the `npm publish [PLUGIN DIRECTORY]`. @@ -83,7 +83,7 @@ The following plugins were updated today: To update your existing plugins, you need to update your version of `Cordova CLI` to version 5.0.0. E.g. To update your cli: - + `npm install -g cordova@5.0.0` Then remove your old plugin and re-add it using the new ID. http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/_posts/2015-07-21-cordova-android-4.1.0.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-07-21-cordova-android-4.1.0.md b/www/_posts/2015-07-21-cordova-android-4.1.0.md index c357aeb..c92b4c9 100644 --- a/www/_posts/2015-07-21-cordova-android-4.1.0.md +++ b/www/_posts/2015-07-21-cordova-android-4.1.0.md @@ -11,13 +11,13 @@ We are happy to announce that `Cordova Android 4.1.0` has been released. With this release, there is now support for checking system requirements for Android platform: - $>cordova requirements android - - Requirements check results for android: - Java JDK: installed 1.7.0 - Android SDK: installed - Android target: installed android-19,android-21,android-22,Google Inc.:Google APIs:19,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:21 - Gradle: installed 1.12 + $>cordova requirements android + + Requirements check results for android: + Java JDK: installed 1.7.0 + Android SDK: installed + Android target: installed android-19,android-21,android-22,Google Inc.:Google APIs:19,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:21 + Gradle: installed 1.12 Apart from a number of bug fixes, mininumSdkTarget has also been switched to 14 from 7. The minimum supported Android OS for Cordova is now Ice Cream Sandwich. http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/guide/getting-started/android/index.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/guide/getting-started/android/index.md b/www/docs/en/1.5.0/guide/getting-started/android/index.md index 056f4ea..53677eb 100644 --- a/www/docs/en/1.5.0/guide/getting-started/android/index.md +++ b/www/docs/en/1.5.0/guide/getting-started/android/index.md @@ -54,18 +54,18 @@ There is also a [Terminal](http://wiki.phonegap.com/w/page/30864168/phonegap-and ![](img/guide/platforms/android/new_android_project.jpeg) - In the root directory of the project, create two new directories: - - **/libs** - - **assets/www** + - **/libs** + - **assets/www** - Copy **cordova-1.5.0.js** from your PhoneGap download earlier to **assets/www** - Copy **cordova-1.5.0.jar** from your PhoneGap download earlier to **/libs** - Copy **xml** folder from your PhoneGap download earlier to **/res** - Make a few adjustments too the project's main Java file found in the **src** folder in Eclipse: (view image below) - - Change the class's extend from **Activity** to **DroidGap** - - Replace the **setContentView()** line with **super.loadUrl("file:///android_asset/www/index.html");** - - Add **import com.phonegap.*;** - - Remove **import android.app.Activity;** + - Change the class's extend from **Activity** to **DroidGap** + - Replace the **setContentView()** line with **super.loadUrl("file:///android_asset/www/index.html");** + - Add **import com.phonegap.*;** + - Remove **import android.app.Activity;** - ![](img/guide/platforms/android/javaSrc.jpg) + ![](img/guide/platforms/android/javaSrc.jpg) - You might experience an error here, where Eclipse can't find cordova-1.5.0.jar. In this case, right click on the /libs folder and go to Build Paths/ > Configure Build Paths. Then, in the Libraries tab, add cordova-1.5.0.jar to the Project. If Eclipse is being temperamental, you might need to refresh (F5) the project once again. - Right click on AndroidManifest.xml and select **Open With > Text Editor** - Paste the following permissions under versionName: (view image below) @@ -89,15 +89,15 @@ There is also a [Terminal](http://wiki.phonegap.com/w/page/30864168/phonegap-and - Add `android:configChanges="orientation|keyboardHidden"` to the activity tag in AndroidManifest. (view image below) - Add a second activity under you application tag in AndroidManifest. (view image below) - - - ![](img/guide/platforms/android/manifest.jpg) + + + ![](img/guide/platforms/android/manifest.jpg) 4. Hello World --------------- +-------------- Now create and open a new file named **index.html** in the **assets/www** directory. Paste the following code: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/guide/upgrading/blackberry/index.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/guide/upgrading/blackberry/index.md b/www/docs/en/1.5.0/guide/upgrading/blackberry/index.md index a742fbc..a01aa6f 100644 --- a/www/docs/en/1.5.0/guide/upgrading/blackberry/index.md +++ b/www/docs/en/1.5.0/guide/upgrading/blackberry/index.md @@ -41,10 +41,10 @@ Updating just the www folder: 5. Update your HTML to use the new `cordova-1.5.0.js` file. 6. Update your www/plugins.xml file - remember all of the references to PhoneGap need to be changed to Cordova: -From: +From: - + @@ -81,10 +81,10 @@ Updating the sample folder (ie, updating using the ant tools): 8. Open the `www/` folder and update your HTML to use the new `cordova-1.5.0.js` file. 9. Update your www/plugins.xml file - remember all of the references to PhoneGap need to be changed to Cordova: -From: +From: - + http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/phonegap/accelerometer/accelerometer.clearWatch.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/accelerometer/accelerometer.clearWatch.md b/www/docs/en/1.5.0/phonegap/accelerometer/accelerometer.clearWatch.md index cd9f26c..531855e 100644 --- a/www/docs/en/1.5.0/phonegap/accelerometer/accelerometer.clearWatch.md +++ b/www/docs/en/1.5.0/phonegap/accelerometer/accelerometer.clearWatch.md @@ -40,11 +40,11 @@ Quick Example ------------- var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); - + // ... later on ... - + navigator.accelerometer.clearWatch(watchID); - + Full Example ------------ @@ -58,7 +58,7 @@ Full Example // The watch id references the current `watchAcceleration` var watchID = null; - + // Wait for PhoneGap to load // document.addEventListener("deviceready", onDeviceReady, false); @@ -72,13 +72,13 @@ Full Example // Start watching the acceleration // function startWatch() { - + // Update acceleration every 3 seconds var options = { frequency: 3000 }; - + watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); } - + // Stop watching the acceleration // function stopWatch() { @@ -87,14 +87,14 @@ Full Example watchID = null; } } - + // onSuccess: Get a snapshot of the current acceleration // function onSuccess(acceleration) { var element = document.getElementById('accelerometer'); element.innerHTML = 'Acceleration X: ' + acceleration.x + '
' + 'Acceleration Y: ' + acceleration.y + '
' + - 'Acceleration Z: ' + acceleration.z + '
' + + 'Acceleration Z: ' + acceleration.z + '
' + 'Timestamp: ' + acceleration.timestamp + '
'; } @@ -108,6 +108,6 @@ Full Example
Waiting for accelerometer...
- + http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/phonegap/camera/parameter/cameraOptions.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/camera/parameter/cameraOptions.md b/www/docs/en/1.5.0/phonegap/camera/parameter/cameraOptions.md index 70d8f99..53b3d0c 100644 --- a/www/docs/en/1.5.0/phonegap/camera/parameter/cameraOptions.md +++ b/www/docs/en/1.5.0/phonegap/camera/parameter/cameraOptions.md @@ -25,9 +25,9 @@ cameraOptions Optional parameters to customize the camera settings. - { quality : 75, - destinationType : Camera.DestinationType.DATA_URL, - sourceType : Camera.PictureSourceType.CAMERA, + { quality : 75, + destinationType : Camera.DestinationType.DATA_URL, + sourceType : Camera.PictureSourceType.CAMERA, allowEdit : true, encodingType: Camera.EncodingType.JPEG, targetWidth: 100, @@ -39,14 +39,14 @@ Options - __quality:__ Quality of saved image. Range is [0, 100]. (`Number`) - __destinationType:__ Choose the format of the return value. Defined in navigator.camera.DestinationType (`Number`) - + Camera.DestinationType = { DATA_URL : 0, // Return image as base64 encoded string FILE_URI : 1 // Return image file URI }; - __sourceType:__ Set the source of the picture. Defined in nagivator.camera.PictureSourceType (`Number`) - + Camera.PictureSourceType = { PHOTOLIBRARY : 0, CAMERA : 1, @@ -54,9 +54,9 @@ Options }; - __allowEdit:__ Allow simple editing of image before selection. (`Boolean`) - + - __EncodingType:__ Choose the encoding of the returned image file. Defined in navigator.camera.EncodingType (`Number`) - + Camera.EncodingType = { JPEG : 0, // Return JPEG encoded image PNG : 1 // Return PNG encoded image @@ -66,13 +66,13 @@ Options - __targetHeight:__ Height in pixels to scale image. Must be used with targetWidth. Aspect ratio is maintained. (`Number`) - __MediaType:__ Set the type of media to select from. Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in nagivator.camera.MediaType (`Number`) - - Camera.MediaType = { - PICTURE: 0, // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType - VIDEO: 1, // allow selection of video only, WILL ALWAYS RETURN FILE_URI - ALLMEDIA : 2 // allow selection from all media types + + Camera.MediaType = { + PICTURE: 0, // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType + VIDEO: 1, // allow selection of video only, WILL ALWAYS RETURN FILE_URI + ALLMEDIA : 2 // allow selection from all media types }; - + Android Quirks -------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/phonegap/connection/connection.type.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/connection/connection.type.md b/www/docs/en/1.5.0/phonegap/connection/connection.type.md index d5c7bc6..c7c54b2 100644 --- a/www/docs/en/1.5.0/phonegap/connection/connection.type.md +++ b/www/docs/en/1.5.0/phonegap/connection/connection.type.md @@ -44,19 +44,19 @@ Quick Example function checkConnection() { var networkState = navigator.network.connection.type; - + var states = {}; - states[Connection.UNKNOWN] = 'Unknown connection'; - states[Connection.ETHERNET] = 'Ethernet connection'; - states[Connection.WIFI] = 'WiFi connection'; - states[Connection.CELL_2G] = 'Cell 2G connection'; - states[Connection.CELL_3G] = 'Cell 3G connection'; - states[Connection.CELL_4G] = 'Cell 4G connection'; - states[Connection.NONE] = 'No network connection'; - + states[Connection.UNKNOWN] = 'Unknown connection'; + states[Connection.ETHERNET] = 'Ethernet connection'; + states[Connection.WIFI] = 'WiFi connection'; + states[Connection.CELL_2G] = 'Cell 2G connection'; + states[Connection.CELL_3G] = 'Cell 3G connection'; + states[Connection.CELL_4G] = 'Cell 4G connection'; + states[Connection.NONE] = 'No network connection'; + alert('Connection type: ' + states[networkState]); } - + checkConnection(); @@ -67,35 +67,35 @@ Full Example navigator.network.connection.type Example - + http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/phonegap/contacts/Contact/contact.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/contacts/Contact/contact.md b/www/docs/en/1.5.0/phonegap/contacts/Contact/contact.md index 9aaebae..452b294 100644 --- a/www/docs/en/1.5.0/phonegap/contacts/Contact/contact.md +++ b/www/docs/en/1.5.0/phonegap/contacts/Contact/contact.md @@ -46,7 +46,7 @@ Properties Methods ------- -- __clone__: Returns a new Contact object that is a deep copy of the calling object, with the id property set to `null`. +- __clone__: Returns a new Contact object that is a deep copy of the calling object, with the id property set to `null`. - __remove__: Removes the contact from the device contacts database. An error callback is called with a `ContactError` object if the removal is unsuccessful. - __save__: Saves a new contact to the device contacts database, or updates an existing contact if a contact with the same __id__ already exists. @@ -68,36 +68,36 @@ Supported Platforms Save Quick Example ------------------ - function onSuccess(contact) { - alert("Save Success"); - }; + function onSuccess(contact) { + alert("Save Success"); + }; - function onError(contactError) { - alert("Error = " + contactError.code); - }; + function onError(contactError) { + alert("Error = " + contactError.code); + }; - // create a new contact object + // create a new contact object var contact = navigator.contacts.create(); - contact.displayName = "Plumber"; - contact.nickname = "Plumber"; //specify both to support all devices - - // populate some fields - var name = new ContactName(); - name.givenName = "Jane"; - name.familyName = "Doe"; - contact.name = name; - - // save to device - contact.save(onSuccess,onError); + contact.displayName = "Plumber"; + contact.nickname = "Plumber"; //specify both to support all devices + + // populate some fields + var name = new ContactName(); + name.givenName = "Jane"; + name.familyName = "Doe"; + contact.name = name; + + // save to device + contact.save(onSuccess,onError); Clone Quick Example ------------------- - // clone the contact object - var clone = contact.clone(); - clone.name.givenName = "John"; - console.log("Original contact name = " + contact.name.givenName); - console.log("Cloned contact name = " + clone.name.givenName); + // clone the contact object + var clone = contact.clone(); + clone.name.givenName = "John"; + console.log("Original contact name = " + contact.name.givenName); + console.log("Cloned contact name = " + clone.name.givenName); Remove Quick Example -------------------- @@ -110,8 +110,8 @@ Remove Quick Example alert("Error = " + contactError.code); }; - // remove the contact from the device - contact.remove(onSuccess,onError); + // remove the contact from the device + contact.remove(onSuccess,onError); Full Example ------------ @@ -131,50 +131,50 @@ Full Example // PhoneGap is ready // function onDeviceReady() { - // create - var contact = navigator.contacts.create(); - contact.displayName = "Plumber"; - contact.nickname = "Plumber"; //specify both to support all devices - var name = new ContactName(); - name.givenName = "Jane"; - name.familyName = "Doe"; - contact.name = name; - - // save - contact.save(onSaveSuccess,onSaveError); - - // clone - var clone = contact.clone(); - clone.name.givenName = "John"; - console.log("Original contact name = " + contact.name.givenName); - console.log("Cloned contact name = " + clone.name.givenName); - - // remove - contact.remove(onRemoveSuccess,onRemoveError); + // create + var contact = navigator.contacts.create(); + contact.displayName = "Plumber"; + contact.nickname = "Plumber"; //specify both to support all devices + var name = new ContactName(); + name.givenName = "Jane"; + name.familyName = "Doe"; + contact.name = name; + + // save + contact.save(onSaveSuccess,onSaveError); + + // clone + var clone = contact.clone(); + clone.name.givenName = "John"; + console.log("Original contact name = " + contact.name.givenName); + console.log("Cloned contact name = " + clone.name.givenName); + + // remove + contact.remove(onRemoveSuccess,onRemoveError); } - + // onSaveSuccess: Get a snapshot of the current contacts // function onSaveSuccess(contact) { - alert("Save Success"); + alert("Save Success"); } - + // onSaveError: Failed to get the contacts // function onSaveError(contactError) { - alert("Error = " + contactError.code); + alert("Error = " + contactError.code); } - + // onRemoveSuccess: Get a snapshot of the current contacts // function onRemoveSuccess(contacts) { - alert("Removal Success"); + alert("Removal Success"); } - + // onRemoveError: Failed to get the contacts // function onRemoveError(contactError) { - alert("Error = " + contactError.code); + alert("Error = " + contactError.code); } @@ -206,19 +206,19 @@ BlackBerry WebWorks (OS 5.0 and higher) Quirks - __id:__ Supported. Assigned by device when contact is saved. - __displayName:__ Supported. Stored in BlackBerry __user1__ field. -- __nickname:__ This property is not supported, and will always be returned as `null`. +- __nickname:__ This property is not supported, and will always be returned as `null`. - __phoneNumbers:__ Partially supported. Phone numbers will be stored in BlackBerry fields __homePhone1__ and __homePhone2__ if _type_ is 'home', __workPhone1__ and __workPhone2__ if _type_ is 'work', __mobilePhone__ if _type_ is 'mobile', __faxPhone__ if _type_ is 'fax', __pagerPhone__ if _type_ is 'pager', and __otherPhone__ if _type_ is none of the above. - __emails:__ Partially supported. The first three email addresses will be stored in the BlackBerry __email1__, __email2__, and __email3__ fields, respectively. - __addresses:__ Partially supported. The first and second addresses will be stored in the BlackBerry __homeAddress__ and __workAddress__ fields, respectively. -- __ims:__ This property is not supported, and will always be returned as `null`. +- __ims:__ This property is not supported, and will always be returned as `null`. - __organizations:__ Partially supported. The __name__ and __title__ of the first organization are stored in the BlackBerry __company__ and __title__ fields, respectively. - __photos:__ - Partially supported. A single thumbnail-sized photo is supported. To set a contact's photo, pass in a either a Base64 encoded image, or a URL pointing to the image. The image will be scaled down before saving to the BlackBerry contacts database. The contact photo is returned as a Base64 encoded image. -- __categories:__ Partially supported. Only 'Business' and 'Personal' categories are supported. +- __categories:__ Partially supported. Only 'Business' and 'Personal' categories are supported. - __urls:__ Partially supported. The first url is stored in BlackBerry __webpage__ field. iOS Quirks ---------- -- __displayName:__ This property is not supported by iOS and will be returned as `null` unless there is no ContactName specified. If there is no ContactName, then composite name, __nickname__ or "" is returned for __displayName__, respectively. +- __displayName:__ This property is not supported by iOS and will be returned as `null` unless there is no ContactName specified. If there is no ContactName, then composite name, __nickname__ or "" is returned for __displayName__, respectively. - __birthday:__ For input, this property must be provided as a JavaScript Date object. It is returned as a JavaScript Date object. -- __photos:__ Returned Photo is stored in the application's temporary directory and a File URL to photo is returned. Contents of temporary folder is deleted when application exits. +- __photos:__ Returned Photo is stored in the application's temporary directory and a File URL to photo is returned. Contents of temporary folder is deleted when application exits. - __categories:__ This property is not currently supported and will always be returned as `null`. http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/phonegap/contacts/contacts.create.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/contacts/contacts.create.md b/www/docs/en/1.5.0/phonegap/contacts/contacts.create.md index 23f8674..c39f89d 100644 --- a/www/docs/en/1.5.0/phonegap/contacts/contacts.create.md +++ b/www/docs/en/1.5.0/phonegap/contacts/contacts.create.md @@ -64,11 +64,11 @@ Full Example // PhoneGap is ready // function onDeviceReady() { - var myContact = navigator.contacts.create({"displayName": "Test User"}); - myContact.gender = "male"; - console.log("The contact, " + myContact.displayName + ", is of the " + myContact.gender + " gender"); + var myContact = navigator.contacts.create({"displayName": "Test User"}); + myContact.gender = "male"; + console.log("The contact, " + myContact.displayName + ", is of the " + myContact.gender + " gender"); } - + http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/docs/en/1.5.0/phonegap/contacts/contacts.find.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/contacts/contacts.find.md b/www/docs/en/1.5.0/phonegap/contacts/contacts.find.md index c574502..ecf65d9 100644 --- a/www/docs/en/1.5.0/phonegap/contacts/contacts.find.md +++ b/www/docs/en/1.5.0/phonegap/contacts/contacts.find.md @@ -30,9 +30,9 @@ Queries the device contacts database and returns one or more `Contact` objects, Description ----------- -contacts.find is an asynchronous function that queries the device contacts database and returns an array of `Contact` objects. The resulting objects are passed to the `contactSuccess` callback function specified by the __contactSuccess__ parameter. +contacts.find is an asynchronous function that queries the device contacts database and returns an array of `Contact` objects. The resulting objects are passed to the `contactSuccess` callback function specified by the __contactSuccess__ parameter. -Users must specify the contact fields to be used as a search qualifier in the __contactFields__ parameter. Only the fields specified in the __contactFields__ parameter will be returned as properties of the `Contact` objects that are passed to the __contactSuccess__ callback function. A zero-length __contactFields__ parameter will result in an array of `Contact` objects with only the `id` property populated. A __contactFields__ value of ["*"] will return all contact fields. +Users must specify the contact fields to be used as a search qualifier in the __contactFields__ parameter. Only the fields specified in the __contactFields__ parameter will be returned as properties of the `Contact` objects that are passed to the __contactSuccess__ callback function. A zero-length __contactFields__ parameter will result in an array of `Contact` objects with only the `id` property populated. A __contactFields__ value of ["*"] will return all contact fields. The __contactFindOptions.filter__ string can be used as a search filter when querying the contacts database. If provided, a case-insensitive, partial value match is applied to each field specified in the __contactFields__ parameter. If a match is found in a comparison with _any_ of the specified fields, the contact is returned. @@ -64,8 +64,8 @@ Quick Example // find all contacts with 'Bob' in any name field var options = new ContactFindOptions(); - options.filter="Bob"; - var fields = ["displayName", "name"]; + options.filter="Bob"; + var fields = ["displayName", "name"]; navigator.contacts.find(fields, onSuccess, onError, options); Full Example @@ -86,21 +86,21 @@ Full Example // PhoneGap is ready // function onDeviceReady() { - // find all contacts with 'Bob' in any name field - var options = new ContactFindOptions(); - options.filter="Bob"; - var fields = ["displayName", "name"]; - navigator.contacts.find(fields, onSuccess, onError, options); + // find all contacts with 'Bob' in any name field + var options = new ContactFindOptions(); + options.filter="Bob"; + var fields = ["displayName", "name"]; + navigator.contacts.find(fields, onSuccess, onError, options); } - + // onSuccess: Get a snapshot of the current contacts // function onSuccess(contacts) { - for (var i=0; i @@ -92,10 +92,10 @@ Getting Started with Android - + -* 어플리케이션 권한의 담요 목록을 추가하였음에 주의하자. Google play에 커밋하기 전에 사용하지 않는 권한은 삭제해주어야 한다. +* 어플리케이션 권한의 담요 목록을 추가하였음에 주의하자. Google play에 커밋하기 전에 사용하지 않는 권한은 삭제해주어야 한다. - **<activity>** 태그안에 아래의 구문을 붙여넣기 함으로써 orientation 변화를 사용할 수 있다. android:configChanges="orientation|keyboardHidden" @@ -106,7 +106,7 @@ Getting Started with Android 4. Hello World --------------- +-------------- - **assets/www** 디렉토리에서 **index.html** 을 생성하고 아래의 코드를 붙여넣자: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/infra/doap_Cordova.rdf ---------------------------------------------------------------------- diff --git a/www/infra/doap_Cordova.rdf b/www/infra/doap_Cordova.rdf index cb679b6..0b47f88 100644 --- a/www/infra/doap_Cordova.rdf +++ b/www/infra/doap_Cordova.rdf @@ -1,8 +1,8 @@ http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/static/css-src/_home.scss ---------------------------------------------------------------------- diff --git a/www/static/css-src/_home.scss b/www/static/css-src/_home.scss index 44a305e..510b29e 100644 --- a/www/static/css-src/_home.scss +++ b/www/static/css-src/_home.scss @@ -2,69 +2,69 @@ body { - height: 100%; + height: 100%; } html { - height: 100%; + height: 100%; } #hero { - min-height: 500px; + min-height: 500px; height: 70%; - background-color: $gray-transparent; + background-color: $gray-transparent; background-image: url("{{ site.baseurl }}/static/img/wisplight.jpg"); background-size: cover; - position:relative; - color:white; + position:relative; + color:white; - .row { - margin-left: 0px; - margin-right: 0px; - } + .row { + margin-left: 0px; + margin-right: 0px; + } - #hero_section { - width:80%; - max-width:730px; - font-size:18px; - > div { - display: inline-block; - } - .cordova-bot { + #hero_section { + width:80%; + max-width:730px; + font-size:18px; + > div { + display: inline-block; + } + .cordova-bot { text-align: center; img { - max-width: 275px; + max-width: 275px; width: 100%; } - } + } - .hero_content { - div { - padding-bottom:20px; - } - .hero_supported_platforms { - img { - margin-right: 15px; - } - .platforms_more { - font-size: 12px; - font-weight: bold; - white-space: nowrap; - display: inline-block; - margin-top: 10px; - padding-left: 5px; - } - } - } + .hero_content { + div { + padding-bottom:20px; + } + .hero_supported_platforms { + img { + margin-right: 15px; + } + .platforms_more { + font-size: 12px; + font-weight: bold; + white-space: nowrap; + display: inline-block; + margin-top: 10px; + padding-left: 5px; + } + } + } .btn { margin-bottom: 3px; } - } - .hero_logo { - width:100%; - padding-top:40px; - padding-bottom:20px; - } + } + .hero_logo { + width:100%; + padding-top:40px; + padding-bottom:20px; + } } @media (min-width: $screen-sm-min) { @@ -77,7 +77,7 @@ html { @media (max-width: $screen-xs-max) { #hero { - min-height: 620px; + min-height: 620px; height: 100%; .hero_content p { margin-bottom: 20px; @@ -96,59 +96,59 @@ html { width: 100%; margin: 0; - .container { - padding-top:30px; - padding-bottom:30px; - font-size: 18px; - } - .sprite_img { - position:relative; - left: 0px; - margin: 0; - padding: 0; - top:0; - width: 85px; - height: 85px; - background-repeat: no-repeat; - background-size: 255px 85px; - } + .container { + padding-top:30px; + padding-bottom:30px; + font-size: 18px; + } + .sprite_img { + position:relative; + left: 0px; + margin: 0; + padding: 0; + top:0; + width: 85px; + height: 85px; + background-repeat: no-repeat; + background-size: 255px 85px; + } } .value_prop { - max-width: 146px; - height: 4em; - p { - top:50%; - position: relative; - transform: translateY(-50%); + max-width: 146px; + height: 4em; + p { + top:50%; + position: relative; + transform: translateY(-50%); padding-left: 10px; - } + } } @media (max-width: 767px) { - #hero #hero_section .hero_content { width:100%; } - #hero_bottom_strip { - min-height: initial; - .container { - padding-top: 15px; - padding-bottom: 30px; - font-size: 1em; - text-align: center; - } - } - .sprite_img { display:inline-block } - .value_prop { max-width:initial } + #hero #hero_section .hero_content { width:100%; } + #hero_bottom_strip { + min-height: initial; + .container { + padding-top: 15px; + padding-bottom: 30px; + font-size: 1em; + text-align: center; + } + } + .sprite_img { display:inline-block } + .value_prop { max-width:initial } } @media (max-width: 550px) { /* Scrunch the icons even smaller on very small devices */ - .sprite_img { - width:45px; - height:45px; - background-size:135px 45px; - } + .sprite_img { + width:45px; + height:45px; + background-size:135px 45px; + } } @mixin sprite-img($a, $b) { - background: url("{{ site.baseurl }}/static/img/value-prop-sprite.svg") $a $b; + background: url("{{ site.baseurl }}/static/img/value-prop-sprite.svg") $a $b; } #sprite_shared_code { @include sprite-img(0px, 0) } @@ -156,47 +156,47 @@ html { #sprite_apis { @include sprite-img(100%, 0) } .navbar-brand { - padding:0; - position: absolute; + padding:0; + position: absolute; } img#logo_top { - width:190px; - padding:5px; + width:190px; + padding:5px; } @media (min-width: 767px) { /* Center the navs when not collapsed */ - .nav_bar_center { - text-align:center; - height:50px; - } - .nav_bar_center > ul { - display: inline-block; - float:none; - } + .nav_bar_center { + text-align:center; + height:50px; + } + .nav_bar_center > ul { + display: inline-block; + float:none; + } } .vertical-center-parent { - position: relative; - width:100%; - height:100%; - .vertical-center-child { - position:absolute; - top:50%; - left:50%; - @include vendor-prefix(transform, translate(-50%,-50%)); - } + position: relative; + width:100%; + height:100%; + .vertical-center-child { + position:absolute; + top:50%; + left:50%; + @include vendor-prefix(transform, translate(-50%,-50%)); + } } /* ********* Getting Started *********** */ .get-started-section { - margin-bottom:20px; + margin-bottom:20px; } .number_circle { display: inline-block; width: 50px; - height:50px; + height:50px; padding: 8px; font-size: 24px; color: #ffffff; @@ -205,35 +205,35 @@ img#logo_top { text-align: center; background-color: $brand-primary-darker; border-radius: 50%; - margin-top: 20px; + margin-top: 20px; } .well_code { - @extend .well; - padding-bottom:19px + 50px; - position:relative; - background-color: $gray-10; - margin-top:25px; - div { - @extend .well_code; - position: absolute; - top: 100%; - @include vendor-prefix(transform, translateY(-100%)); - padding: 0; - margin:0; - background-color: $gray-20; - width: 100%; - margin-left:-19px; - button { - background-color: $brand-primary; - margin:5px; - } - } - .copy-text { - width:0px; - height:0px; - overflow:hidden; - } + @extend .well; + padding-bottom:19px + 50px; + position:relative; + background-color: $gray-10; + margin-top:25px; + div { + @extend .well_code; + position: absolute; + top: 100%; + @include vendor-prefix(transform, translateY(-100%)); + padding: 0; + margin:0; + background-color: $gray-20; + width: 100%; + margin-left:-19px; + button { + background-color: $brand-primary; + margin:5px; + } + } + .copy-text { + width:0px; + height:0px; + overflow:hidden; + } } @@ -242,68 +242,68 @@ img#logo_top { */ .dark { - background-color: $gray-90; + background-color: $gray-90; } .dark, .dark .container-fluid { /* Fixes an overflow problem in the showcase sections */ - margin-left:0; - margin-right:0; - padding-left:0; - padding-right:0; + margin-left:0; + margin-right:0; + padding-left:0; + padding-right:0; } .showcase_section_intro { margin: auto; - float:none; + float:none; max-width: 700px; - h1 { color: $brand-gold; padding-bottom:0; } - h2 { color: white; font-size: 18px; font-weight:normal; padding:0; margin-top:0 } - p, span { color: $gray-40; text-align: left; } + h1 { color: $brand-gold; padding-bottom:0; } + h2 { color: white; font-size: 18px; font-weight:normal; padding:0; margin-top:0 } + p, span { color: $gray-40; text-align: left; } padding-top: 4px; - padding-bottom: 35px; + padding-bottom: 35px; } .supported_platforms { - background-color: darken(white, 85%); + background-color: darken(white, 85%); margin-left: -15px; margin-right: -15px; - margin-bottom: 40px; + margin-bottom: 40px; } .platform_logos { - list-style-type: none; - padding-left:0; + list-style-type: none; + padding-left:0; padding-top: 20px; padding-bottom: 20px; } .card_gallery { - color:white; - .card { - padding:8px; - .card_title { - color: $brand-primary; - font-weight: bold; - } - .card_inner { - background-color:darken(white, 85%); - padding: 32px 16px 32px 16px; - img { - height:50px; - padding-bottom:10px; - } + color:white; + .card { + padding:8px; + .card_title { + color: $brand-primary; + font-weight: bold; + } + .card_inner { + background-color:darken(white, 85%); + padding: 32px 16px 32px 16px; + img { + height:50px; + padding-bottom:10px; + } &.tool .text { height: 250px; } &.app .text { height: 100px; } - } - .showcase_app_thumb { + } + .showcase_app_thumb { width: 100%; height: 100px; img { - height: 100%; - border-radius:22px; + height: 100%; + border-radius:22px; } - } - } + } + } } /* make cards smaller on smaller screens */ @media (max-width: $screen-lg-min) { @@ -327,23 +327,23 @@ img#logo_top { } } .add_seemore_links { - margin: 15px 0; - a { padding-left:30px; } + margin: 15px 0; + a { padding-left:30px; } } .not-found-container { - height: 60%; - margin: auto; - width: 75%; + height: 60%; + margin: auto; + width: 75%; } .not-found-header { - padding-top: 15%; - text-align: center; + padding-top: 15%; + text-align: center; } .not-found-redirect { - margin-bottom: 20px; - text-align: center; - display: none; + margin-bottom: 20px; + text-align: center; + display: none; } http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/static/css-src/_plugins.scss ---------------------------------------------------------------------- diff --git a/www/static/css-src/_plugins.scss b/www/static/css-src/_plugins.scss index 4344b28..1144391 100644 --- a/www/static/css-src/_plugins.scss +++ b/www/static/css-src/_plugins.scss @@ -1,149 +1,149 @@ .plugins_search_container { - max-width:405px; - margin:auto; - .input-group { - width:100%; - } + max-width:405px; + margin:auto; + .input-group { + width:100%; + } } .whatisplugin_box { - margin-top:20px; - img { - float:left; - padding-right: 20px; - padding-bottom: 20px; - width: 84px; - } + margin-top:20px; + img { + float:left; + padding-right: 20px; + padding-bottom: 20px; + width: 84px; + } } .plugins_links { - max-width: 405px; - margin:auto; + max-width: 405px; + margin:auto; } .progress { - width:12%; - margin:0; + width:12%; + margin:0; } .featured-list-header{ - margin-top:0; + margin-top:0; } .well.featured-list { - padding:0; - h2 { text-align: center; } - ul { - list-style: none; - padding-left:0; - div { display:inline-block; } - li { - padding-left:19px; - padding-right:19px; - padding-top:5px; - height:33px; - } - li:nth-child(odd) { - background-color:$gray-20; - } - } + padding:0; + h2 { text-align: center; } + ul { + list-style: none; + padding-left:0; + div { display:inline-block; } + li { + padding-left:19px; + padding-right:19px; + padding-top:5px; + height:33px; + } + li:nth-child(odd) { + background-color:$gray-20; + } + } } .plugin { - position:absolute; - left:126px; + position:absolute; + left:126px; } .plugin-stats { - position: absolute; - right:0; - width:100px; + position: absolute; + right:0; + width:100px; } .filter-by-platforms { - margin-top:40px; - margin-bottom:10px; + margin-top:40px; + margin-bottom:10px; } .filter-by-platform-label { - line-height:40px; - vertical-align: top; + line-height:40px; + vertical-align: top; } .filter-by-platform-filters { - display: inline-block; - button.btn { - margin-bottom: 2px; - margin-right: 2px; - width: 120px; - - &.btn-primary { - background-color: $brand-primary; - } - &.btn-default { - background-color: $gray-10; - &:hover { - background-color: $brand-primary; - } - } - } + display: inline-block; + button.btn { + margin-bottom: 2px; + margin-right: 2px; + width: 120px; + + &.btn-primary { + background-color: $brand-primary; + } + &.btn-default { + background-color: $gray-10; + &:hover { + background-color: $brand-primary; + } + } + } } .nav-pills > li > a { - background-color:$gray-5; + background-color:$gray-5; } .nav > li > a:hover { - background-color:$gray-10; + background-color:$gray-10; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { - background-color:$brand-primary; - color:black; + background-color:$brand-primary; + color:black; } .plugins-sort-dropdown { - height:40px; + height:40px; } /*** -**** Plugins Results +**** Plugins Results **** */ .plugins-results-container { - margin-bottom:20px; - padding:0; + margin-bottom:20px; + padding:0; } .plugin-results-number { - line-height:40px; - vertical-align: top; - text-align: center; + line-height:40px; + vertical-align: top; + text-align: center; } .plugin-results-result { - margin-bottom:20px; - background-color:$gray-5; - position: relative; + margin-bottom:20px; + background-color:$gray-5; + position: relative; } .plugin-results-show-more { - text-align: center; - cursor:pointer; - padding: 10px; - background-color: $brand-primary; - color: #000; + text-align: center; + cursor:pointer; + padding: 10px; + background-color: $brand-primary; + color: #000; } .plugin-results-show-more:hover { - color: #000; + color: #000; } .version_and_author { - display: inline-block; + display: inline-block; } .plugins-copy-to-clipboard { - width:15px; - position:absolute; - right:0; - top:20px; - margin-right:10px; - cursor:pointer; + width:15px; + position:absolute; + right:0; + top:20px; + margin-right:10px; + cursor:pointer; } .plugins-featured { @@ -154,26 +154,26 @@ } .plugin-search-credit { - margin-left: 0px; - margin-bottom: 5px; + margin-left: 0px; + margin-bottom: 5px; } @media (min-width: 767px) { - .version_and_author { - float:right; - margin-top:20px; - } - h2 { display: inline-block } + .version_and_author { + float:right; + margin-top:20px; + } + h2 { display: inline-block } } .license { font-weight: bold } hr.results-divider-line { - border-color:$gray-20; + border-color:$gray-20; } .cordova-add-command { - width: 1px; - height: 1px; - overflow: hidden; + width: 1px; + height: 1px; + overflow: hidden; } .results-supported-platforms { http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e541a99b/www/static/css-src/main.scss ---------------------------------------------------------------------- diff --git a/www/static/css-src/main.scss b/www/static/css-src/main.scss index 7aa7ec2..ea2410e 100644 --- a/www/static/css-src/main.scss +++ b/www/static/css-src/main.scss @@ -57,12 +57,12 @@ $screen-md-max: $screen-lg - 1; footer { background-color: $gray-5; position: relative; - strong { color:inherit; } - h1 { - font-size:2.5em; - color:$brand-primary-darker; - } - h2 { + strong { color:inherit; } + h1 { + font-size:2.5em; + color:$brand-primary-darker; + } + h2 { text-transform: uppercase; color:$gray-50; font-size: 1em; @@ -70,11 +70,11 @@ footer { } } footer ul.nav li > a { - font-size:1em; - margin-left: -15px; + font-size:1em; + margin-left: -15px; } footer ul.nav li > a:hover { - background-color: $gray-20; + background-color: $gray-20; } footer .copyright_text { margin-top: 25px; @@ -94,35 +94,35 @@ footer .copyright_text { */ button.btn, a.btn { border-radius: 0; - background-color:$brand-primary; - color:black; - border:0; + background-color:$brand-primary; + color:black; + border:0; } button.btn:hover, a.btn { - color:black; + color:black; } h1 { - color: $brand-gold-darker; - font-weight: normal; + color: $brand-gold-darker; + font-weight: normal; } h2 { - color: $gray-50; - font-size: 18px; + color: $gray-50; + font-size: 18px; } .badge { - font-size:12px; - margin-top:-14px; - padding: 1px 5px; + font-size:12px; + margin-top:-14px; + padding: 1px 5px; } .contribute-content { - padding-top: 15px; + padding-top: 15px; } .blue-divider { - width:100%; - height:4px; - background-color: $brand-primary; + width:100%; + height:4px; + background-color: $brand-primary; } /* fixing prettyprint formatting */ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org