Commits

chucu  committed 7a424c3 Draft

Modificado js para dejar solo ejemplo cámara y añadido mierdi README

  • Participants
  • Parent commits a1694b7

Comments (0)

Files changed (2)

             <div>
 		        <button class="button" id="capturePhotoButton">Take Photo</button>
             </div>
-            <div>
-		        <button class="button" id="capturePhotoEditButton" >Take Editable Photo</button>
-            </div>
-            <div>
-		        <button class="button" id="getPhotoFromLibraryButton">Select from Photo Library</button>
-		        <button class="button" id="getPhotoFromAlbumButton">Select from Photo Album</button>
-            </div>
+           <br />
 		    <img style="display:none;margin:0 auto; width:120px; height:120px;" id="smallImage" src="" />
         </div>
 	</body>
     cameraApp.run();
 }
 
-
-
 function cameraApp(){}
 
 cameraApp.prototype={
 	    id("capturePhotoButton").addEventListener("click", function(){
             that._capturePhoto.apply(that,arguments);
         });
-	    id("capturePhotoEditButton").addEventListener("click", function(){
-            that._capturePhotoEdit.apply(that,arguments)
-        });
-	    id("getPhotoFromLibraryButton").addEventListener("click", function(){
-            that._getPhotoFromLibrary.apply(that,arguments)
-        });
-	    id("getPhotoFromAlbumButton").addEventListener("click", function(){
-            that._getPhotoFromAlbum.apply(that,arguments);
-        });
     },
     
     _capturePhoto: function() {
         });
     },
     
-    _capturePhotoEdit: function() {
-        var that = this;
-        // Take picture using device camera, allow edit, and retrieve image as base64-encoded string. 
-        // The allowEdit property has no effect on Android devices.
-        navigator.camera.getPicture(function(){
-            that._onPhotoDataSuccess.apply(that,arguments);
-        }, function(){
-            that._onFail.apply(that,arguments);
-        }, {
-            quality: 20, allowEdit: true,
-            destinationType: cameraApp._destinationType.DATA_URL
-        });
-    },
-    
-    _getPhotoFromLibrary: function() {
-        var that= this;
-        // On Android devices, pictureSource.PHOTOLIBRARY and
-        // pictureSource.SAVEDPHOTOALBUM display the same photo album.
-        that._getPhoto(that._pictureSource.PHOTOLIBRARY);         
-    },
-    
-    _getPhotoFromAlbum: function() {
-        var that= this;
-        // On Android devices, pictureSource.PHOTOLIBRARY and
-        // pictureSource.SAVEDPHOTOALBUM display the same photo album.
-        that._getPhoto(that._pictureSource.SAVEDPHOTOALBUM)
-    },
-    
     _getPhoto: function(source) {
         var that = this;
         // Retrieve image file location from specified source.
     _onFail: function(message) {
         alert('Failed! Error: ' + message);
     }
-}
+}