Skip to content

Instantly share code, notes, and snippets.

@gthomas
Created August 16, 2012 20:48
Show Gist options
  • Save gthomas/3373538 to your computer and use it in GitHub Desktop.
Save gthomas/3373538 to your computer and use it in GitHub Desktop.
$(function () {
forge.logging.log("binding");
$(".take-photo").bind("touchend", photo_button_click);
});
function photo_button_click() {
forge.file.getImage({}, function(file){
forge.file.URL(file,
function(url){
$("#image").html("<img src='"+url+"'></img>")
}, function() {});
}, function(){});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment