This project contains code samples of HTML5 and the 5th-element library. At the moment, the use of the following objects is shown:
window.camera window.http The Camera object lets you take pictures on iPhone and Android phones from within Safari Mobile and the Android-browser, respectively. Simply use the "capture" method:
if (window.camera) camera.capture(function(status) { alert(status); });The Http object lets you send HTTP requests without the same-origin policy restriction:
if (window.http) http.get("http://www.example.com", function(response) { alert(response); });The "get" method is sychronous on iPhone OS and asynchronous in the WebKit plugin.
You can also test the functionality in Safari. Download the WebKit plugin, copy it to "~/Library/Internet Plug-Ins" and include the following line in your HTML code:
The "version" method returns the version of the plugin:
var obj = document.getElementById("pluginID");
alert(obj.version());The current version is 0.1.
Ohloh computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has code locations but that location contains no recognizable source code for Ohloh to analyze.
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.