ajuste css

Implementación Html Manuel
Sin ultimos ajustes solicitados.
parent 28c7465f
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div> <div>
<button id="subirFoto" name="subirFoto" class="subirFoto" onclick="openSeleccionadorArchivos(event)">Subir Foto <button id="subirFoto" name="subirFoto" class="subirFoto" onclick="mostrarSubirFoto(event)">Subir Foto
</button> </button>
<label class=" control-label">Sube una foto desde tu galería </br>o desde tu PC</label> <label class=" control-label">Sube una foto desde tu galería </br>o desde tu PC</label>
</div> </div>
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
var fileUpload = $("#imgInp"); var fileUpload = $("#imgInp");
function mostrarTomarFoto(event) { function mostrarTomarFoto(event) {
event.preventDefault(); event.preventDefault();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
console.log("mostrando tomar foto..."); console.log("mostrando tomar foto...");
$("#tomarFotoContainer").show(); $("#tomarFotoContainer").show();
$("#cameraContainer").show(); $("#cameraContainer").show();
...@@ -100,8 +102,6 @@ ...@@ -100,8 +102,6 @@
$("#output_img_inovage").hide(); $("#output_img_inovage").hide();
$("#imagenUsuario").attr('src', ""); $("#imagenUsuario").attr('src', "");
$("#imagenUsuario").hide(); $("#imagenUsuario").hide();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
imagenTomada = true; imagenTomada = true;
imagenSubida = false; imagenSubida = false;
} }
...@@ -114,8 +114,6 @@ ...@@ -114,8 +114,6 @@
$("#cameraContainer").hide(); $("#cameraContainer").hide();
//$("#subirFotoContainer").show(); //$("#subirFotoContainer").show();
$("#output_img_inovage").hide(); $("#output_img_inovage").hide();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
imagenTomada = false; imagenTomada = false;
imagenSubida = true; imagenSubida = true;
} }
...@@ -264,7 +262,6 @@ ...@@ -264,7 +262,6 @@
var fotoActual = $("#foto_actual"); var fotoActual = $("#foto_actual");
var img = new Image(); var img = new Image();
img.src = source; img.src = source;
fotoActual.css("background-image", "url('" + img.src + "')"); fotoActual.css("background-image", "url('" + img.src + "')");
} else { } else {
var fotoActual = $("#foto_actual"); var fotoActual = $("#foto_actual");
......
...@@ -115,6 +115,8 @@ ...@@ -115,6 +115,8 @@
var fileUpload = $("#imgInp"); var fileUpload = $("#imgInp");
function mostrarTomarFoto(event) { function mostrarTomarFoto(event) {
event.preventDefault(); event.preventDefault();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
console.log("mostrando tomar foto..."); console.log("mostrando tomar foto...");
$("#tomarFotoContainer").show(); $("#tomarFotoContainer").show();
$("#cameraContainer").show(); $("#cameraContainer").show();
...@@ -122,8 +124,6 @@ ...@@ -122,8 +124,6 @@
$("#output_img_inovage").hide(); $("#output_img_inovage").hide();
$("#imagenUsuario").attr('src', ""); $("#imagenUsuario").attr('src', "");
$("#imagenUsuario").hide(); $("#imagenUsuario").hide();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
imagenTomada = true; imagenTomada = true;
imagenSubida = false; imagenSubida = false;
} }
...@@ -136,8 +136,6 @@ ...@@ -136,8 +136,6 @@
$("#cameraContainer").hide(); $("#cameraContainer").hide();
//$("#subirFotoContainer").show(); //$("#subirFotoContainer").show();
$("#output_img_inovage").hide(); $("#output_img_inovage").hide();
var fotoActual = $("#foto_actual");
fotoActual.css("background-image", "url('')");
imagenTomada = false; imagenTomada = false;
imagenSubida = true; imagenSubida = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment