This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wrap in a closure to get at the global, | |
// no matter where we are. | |
(function () { this.env = this.env || "prod" })() | |
// in production mode, be fast. | |
// in development/testing mode, add some error checking. | |
function Class (ctor, parent, proto) { | |
if (typeof parent === "object") { | |
proto = parent | |
parent = null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function getPicture() { | |
navigator.camera.getPicture(getPicture_Success, null, { quality: 10 }); | |
}; | |
function getPicture_Success(imageData) { | |
alert("getpic success"); | |
document.getElementById("test_img").src = "data:image/jpeg;base64," + imageData; | |
} | |
</script> |