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
05ea22ff
Commit
05ea22ff
authored
Sep 08, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajuste css
Implementación Html Manuel Sin ultimos ajustes solicitados.
parent
28c7465f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
app/Resources/views/producto_final/landing_producto.html.twig
...Resources/views/producto_final/landing_producto.html.twig
+5
-8
app/Resources/views/producto_final/landing_producto_generar_comparacion.html.twig
...ucto_final/landing_producto_generar_comparacion.html.twig
+2
-4
No files found.
app/Resources/views/producto_final/landing_producto.html.twig
View file @
05ea22ff
...
@@ -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>
...
@@ -70,9 +70,9 @@
...
@@ -70,9 +70,9 @@
</div>
</div>
</div>
</div>
{#MENSAJES EXITO ERROR#}
{#MENSAJES EXITO ERROR#}
{{
include
(
'producto_final/mensaje-exito-error.html.twig'
)
}}
{{
include
(
'producto_final/mensaje-exito-error.html.twig'
)
}}
{#MENSAJES EXITO ERROR#}
{#MENSAJES EXITO ERROR#}
</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
"
);
...
...
app/Resources/views/producto_final/landing_producto_generar_comparacion.html.twig
View file @
05ea22ff
...
@@ -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
;
}
}
...
...
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