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
315627a9
Commit
315627a9
authored
Sep 10, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cambios
parent
f1f793f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/Resources/views/producto_final/camera_logic.html.twig
app/Resources/views/producto_final/camera_logic.html.twig
+1
-1
app/Resources/views/producto_final/landing_producto.html.twig
...Resources/views/producto_final/landing_producto.html.twig
+5
-5
No files found.
app/Resources/views/producto_final/camera_logic.html.twig
View file @
315627a9
<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=
"cameraContainer"
class=
"camera"
style=
"display: block"
>
<button
id=
"startbutton"
></button>
...
...
app/Resources/views/producto_final/landing_producto.html.twig
View file @
315627a9
...
...
@@ -100,7 +100,7 @@
event
.
preventDefault
();
//var fotoActual = $("#tomarFotoContainer");
//fotoActual.css("background-image", "url('')");
$
(
"
#imagen_carga
_video
"
).
attr
(
'
src
'
,
""
);
$
(
"
#imagen_carga
"
).
attr
(
'
src
'
,
""
);
console
.
log
(
"
mostrando tomar foto...
"
);
$
(
"
#tomarFotoContainer
"
).
show
();
$
(
"
#cameraContainer
"
).
show
();
...
...
@@ -109,7 +109,7 @@
$
(
"
#output_img_inovage
"
).
hide
();
$
(
"
#imagenUsuario
"
).
attr
(
'
src
'
,
""
);
$
(
"
#imagenUsuario
"
).
hide
();
$
(
"
#imagen_carga
_video
"
).
hide
();
$
(
"
#imagen_carga
"
).
hide
();
imagenTomada
=
true
;
imagenSubida
=
false
;
}
...
...
@@ -118,7 +118,7 @@
event
.
preventDefault
();
openSeleccionadorArchivos
(
event
);
console
.
log
(
"
mostrando subir foto...
"
);
$
(
"
#imagen_carga
_video
"
).
show
();
$
(
"
#imagen_carga
"
).
show
();
$
(
"
#tomarFotoContainer
"
).
hide
();
$
(
"
#cameraContainer
"
).
hide
();
$
(
"
#startbutton
"
).
hide
();
...
...
@@ -271,12 +271,12 @@
function
generateUrlBackground
(
source
,
type
)
{
if
(
type
==
"
url
"
)
{
var
fotoActual
=
$
(
"
#imagen_carga
_video
"
);
var
fotoActual
=
$
(
"
#imagen_carga
"
);
var
img
=
new
Image
();
img
.
src
=
source
;
fotoActual
.
attr
(
"
src
"
,
img
.
src
);
}
else
{
var
fotoActual
=
$
(
"
#imagen_carga
_video
"
);
var
fotoActual
=
$
(
"
#imagen_carga
"
);
var
img
=
new
Image
();
img
.
src
=
source
;
fotoActual
.
css
(
"
src
"
,
img
.
src
.
replace
(
/
(\r\n
|
\n
|
\r)
/gm
,
""
));
...
...
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