Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Wait for Cordova to connect with the device
- document.addEventListener("deviceready",onDeviceReady3,false);
- // Cordova is ready to be used!
- function onDeviceReady3() {
- pictureSource3=navigator.camera.PictureSourceType;
- destinationType3=navigator.camera.DestinationType;
- }
- // button will call these functions, get picture from camera
- function capturePhoto3() {
- // Take picture
- navigator.camera.getPicture(onPhotoTakenSuccess3, onFail, {
- quality: 50,
- saveToPhotoAlbum: true,
- destinationType3: destinationType3.FILE_URI
- });
- }
- function onPhotoTakenSuccess3(imageURI) {
- //displayPhoto(imageURI);
- capturedPhoto ++;
- document.getElementById('part' + capturedPhoto).src = imageURI;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement