cambios

parent f1f793f3
<img id="imagen_carga_video" src="{{asset('manuel/images/selfie-p.jpg')}}" /> <img id="imagen_carga" src="{{asset('manuel/images/selfie-p.jpg')}}" />
<div id="tomarFotoContainer" style="display:none;"> <div id="tomarFotoContainer" style="display:none;">
<div id="cameraContainer" class="camera" style="display: block"> <div id="cameraContainer" class="camera" style="display: block">
<button id="startbutton"></button> <button id="startbutton"></button>
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
event.preventDefault(); event.preventDefault();
//var fotoActual = $("#tomarFotoContainer"); //var fotoActual = $("#tomarFotoContainer");
//fotoActual.css("background-image", "url('')"); //fotoActual.css("background-image", "url('')");
$("#imagen_carga_video").attr('src', ""); $("#imagen_carga").attr('src', "");
console.log("mostrando tomar foto..."); console.log("mostrando tomar foto...");
$("#tomarFotoContainer").show(); $("#tomarFotoContainer").show();
$("#cameraContainer").show(); $("#cameraContainer").show();
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
$("#output_img_inovage").hide(); $("#output_img_inovage").hide();
$("#imagenUsuario").attr('src', ""); $("#imagenUsuario").attr('src', "");
$("#imagenUsuario").hide(); $("#imagenUsuario").hide();
$("#imagen_carga_video").hide(); $("#imagen_carga").hide();
imagenTomada = true; imagenTomada = true;
imagenSubida = false; imagenSubida = false;
} }
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
event.preventDefault(); event.preventDefault();
openSeleccionadorArchivos(event); openSeleccionadorArchivos(event);
console.log("mostrando subir foto..."); console.log("mostrando subir foto...");
$("#imagen_carga_video").show(); $("#imagen_carga").show();
$("#tomarFotoContainer").hide(); $("#tomarFotoContainer").hide();
$("#cameraContainer").hide(); $("#cameraContainer").hide();
$("#startbutton").hide(); $("#startbutton").hide();
...@@ -271,12 +271,12 @@ ...@@ -271,12 +271,12 @@
function generateUrlBackground(source, type) { function generateUrlBackground(source, type) {
if (type == "url") { if (type == "url") {
var fotoActual = $("#imagen_carga_video"); var fotoActual = $("#imagen_carga");
var img = new Image(); var img = new Image();
img.src = source; img.src = source;
fotoActual.attr("src", img.src); fotoActual.attr("src", img.src);
} else { } else {
var fotoActual = $("#imagen_carga_video"); var fotoActual = $("#imagen_carga");
var img = new Image(); var img = new Image();
img.src = source; img.src = source;
fotoActual.css("src", img.src.replace(/(\r\n|\n|\r)/gm, "")); fotoActual.css("src", img.src.replace(/(\r\n|\n|\r)/gm, ""));
......
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