diff --git a/docs/inappbrowser.md b/docs/inappbrowser.md index abe3b4d..3ea6f4c 100644 --- a/docs/inappbrowser.md +++ b/docs/inappbrowser.md @@ -20,7 +20,7 @@ license: Licensed to the Apache Software Foundation (ASF) under one InAppBrowser ============ -> The InAppBrowser is a web-browser that is shown in your app when you use the `window.open` call. +> The `InAppBrowser` is a web browser that displays in the app when calling `window.open`. var ref = window.open('http://apache.org', '_blank', 'location=yes'); @@ -51,32 +51,28 @@ Permissions - ### Windows Phone 7 + 8 #### config.xml - - addEventListener ================ -> Adds a listener for an event from the InAppBrowser. +> Adds a listener for an event from the `InAppBrowser`. ref.addEventListener(eventname, callback); -- __ref:__ reference to the InAppBrowser window (`InAppBrowser`) -- __eventname:__ the event to listen for (`String`) +- __ref__: reference to the `InAppBrowser` window _(InAppBrowser)_ +- __eventname__: the event to listen for _(String)_ - loadstart - event fired when the InAppBrowser starts to load a URL - loadstop - event fired when the InAppBrowser finished loading a URL - loaderror - event fired when the InAppBrowser encounters an error loading a URL - exit - event fired when the InAppBrowser window is closed + - __loadstart__: event fires when the `InAppBrowser` starts to load a URL. + - __loadstop__: event fires when the `InAppBrowser` finishes loading a URL. + - __loaderror__: event fires when the `InAppBrowser` encounters an error when loading a URL. + - __exit__: event fires when the `InAppBrowser` window is closed. -- __callback:__ the function that is called when the event is fired. -The function is passed an `InAppBrowserEvent` object. +- __callback__: the function that executes when the event fires. The function is passed an `InAppBrowserEvent` object as a parameter. Supported Platforms ------------------- @@ -102,11 +98,11 @@ Full Example + + @@ -225,6 +248,11 @@
Script File Injection (CB)
Script Literal Injection
Script Literal Injection (CB)
+

Open Hidden

+
google.com hidden
+
show hidden
+
close hidden
+
google.com not hidden

Back
diff --git a/test/inappbrowser/inject.css b/test/inappbrowser/inject.css index 8e9904d..3f6e41c 100644 --- a/test/inappbrowser/inject.css +++ b/test/inappbrowser/inject.css @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ #style-update-file { display: block !important; } diff --git a/test/inappbrowser/inject.js b/test/inappbrowser/inject.js index 982c8bd..6f25493 100644 --- a/test/inappbrowser/inject.js +++ b/test/inappbrowser/inject.js @@ -1,2 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ var d = document.getElementById("header") d.innerHTML = "Script file successfully injected";