Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
cc80d071
Commit
cc80d071
authored
Sep 10, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se elimina boton de volver a paso 1 en paso 3
parent
dc625f79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
app/Resources/views/producto_final/landing_producto_generar_comparacion.html.twig
...ucto_final/landing_producto_generar_comparacion.html.twig
+11
-7
No files found.
app/Resources/views/producto_final/landing_producto_generar_comparacion.html.twig
View file @
cc80d071
...
@@ -121,8 +121,9 @@
...
@@ -121,8 +121,9 @@
var
fileUpload
=
$
(
"
#imgInp
"
);
var
fileUpload
=
$
(
"
#imgInp
"
);
function
mostrarTomarFoto
(
event
)
{
function
mostrarTomarFoto
(
event
)
{
event
.
preventDefault
();
event
.
preventDefault
();
var
fotoActual
=
$
(
"
#foto_actual
"
);
//var fotoActual = $("#tomarFotoContainer");
fotoActual
.
css
(
"
background-image
"
,
"
url('')
"
);
//fotoActual.css("background-image", "url('')");
$
(
"
#imagen_carga
"
).
attr
(
'
src
'
,
""
);
console
.
log
(
"
mostrando tomar foto...
"
);
console
.
log
(
"
mostrando tomar foto...
"
);
$
(
"
#tomarFotoContainer
"
).
show
();
$
(
"
#tomarFotoContainer
"
).
show
();
$
(
"
#cameraContainer
"
).
show
();
$
(
"
#cameraContainer
"
).
show
();
...
@@ -131,6 +132,7 @@
...
@@ -131,6 +132,7 @@
$
(
"
#output_img_inovage
"
).
hide
();
$
(
"
#output_img_inovage
"
).
hide
();
$
(
"
#imagenUsuario
"
).
attr
(
'
src
'
,
""
);
$
(
"
#imagenUsuario
"
).
attr
(
'
src
'
,
""
);
$
(
"
#imagenUsuario
"
).
hide
();
$
(
"
#imagenUsuario
"
).
hide
();
$
(
"
#imagen_carga
"
).
hide
();
imagenTomada
=
true
;
imagenTomada
=
true
;
imagenSubida
=
false
;
imagenSubida
=
false
;
}
}
...
@@ -159,6 +161,7 @@
...
@@ -159,6 +161,7 @@
var
reader
=
new
FileReader
();
var
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
reader
.
onload
=
function
(
e
)
{
$
(
'
#imagenUsuario
'
).
attr
(
'
src
'
,
e
.
target
.
result
);
$
(
'
#imagenUsuario
'
).
attr
(
'
src
'
,
e
.
target
.
result
);
$
(
'
#imagen_carga
'
).
attr
(
'
src
'
,
e
.
target
.
result
);
generateUrlBackground
(
e
.
target
.
result
,
"
data
"
);
generateUrlBackground
(
e
.
target
.
result
,
"
data
"
);
}
}
reader
.
readAsDataURL
(
input
.
files
[
0
]);
// convert to base64 string
reader
.
readAsDataURL
(
input
.
files
[
0
]);
// convert to base64 string
...
@@ -294,16 +297,17 @@
...
@@ -294,16 +297,17 @@
function
generateUrlBackground
(
source
,
type
)
{
function
generateUrlBackground
(
source
,
type
)
{
if
(
type
==
"
url
"
)
{
if
(
type
==
"
url
"
)
{
var
fotoActual
=
$
(
"
#
foto_actual
"
);
var
fotoActual
=
$
(
"
#
imagen_carga
"
);
var
img
=
new
Image
();
var
img
=
new
Image
();
img
.
src
=
source
;
img
.
src
=
source
;
fotoActual
.
attr
(
"
src
"
,
img
.
src
);
fotoActual
.
css
(
"
background-image
"
,
"
url('
"
+
img
.
src
+
"
')
"
);
fotoActual
.
show
(
);
}
else
{
}
else
{
var
fotoActual
=
$
(
"
#
foto_actual
"
);
var
fotoActual
=
$
(
"
#
imagen_carga
"
);
var
img
=
new
Image
();
var
img
=
new
Image
();
img
.
src
=
source
;
img
.
src
=
source
;
fotoActual
.
css
(
"
background-image
"
,
"
url('
"
+
img
.
src
.
replace
(
/
(\r\n
|
\n
|
\r)
/gm
,
""
)
+
"
')
"
);
fotoActual
.
css
(
"
src
"
,
img
.
src
.
replace
(
/
(\r\n
|
\n
|
\r)
/gm
,
""
));
fotoActual
.
show
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment