Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
9911f9d9
Commit
9911f9d9
authored
Apr 30, 2020
by
Sylvain Coulange
Browse files
ajout afficher/masquer panier
parent
75d4f0f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
9911f9d9
...
...
@@ -28,7 +28,8 @@
</div>
<div
class=
"parametres-bottom"
>
<span
onclick=
"mvTiroir(20)"
class=
"glyphicon glyphicon-upload"
aria-hidden=
"true"
title=
"Agrandir le panier"
></span><br>
<span
onclick=
"mvTiroir(-20)"
class=
"glyphicon glyphicon-download"
aria-hidden=
"true"
title=
"Réduire le panier"
></span>
<span
onclick=
"mvTiroir(-20)"
class=
"glyphicon glyphicon-download"
aria-hidden=
"true"
title=
"Réduire le panier"
></span><br>
<span
id=
"eye"
onclick=
"toggleTirroir()"
class=
"glyphicon glyphicon-eye-close"
aria-hidden=
"true"
title=
"Masquer le panier"
></span>
</div>
<div
class=
"ecritoire"
>
...
...
public/scripts/script.js
View file @
9911f9d9
...
...
@@ -344,6 +344,22 @@ function mvTiroir(factor) {
panel
.
style
.
height
=
(
parseInt
(
getComputedStyle
(
panel
,
''
).
height
)
+
factor
)
+
"
px
"
;
}
var
boolTiroir
=
true
;
function
toggleTirroir
()
{
if
(
boolTiroir
)
{
panel
.
style
.
display
=
'
none
'
;
boolTiroir
=
false
;
document
.
getElementById
(
'
eye
'
).
classList
.
remove
(
'
glyphicon-eye-close
'
);
document
.
getElementById
(
'
eye
'
).
classList
.
add
(
'
glyphicon-eye-open
'
);
document
.
getElementById
(
'
eye
'
).
title
=
"
Afficher le panier
"
;
}
else
{
panel
.
style
.
display
=
''
;
boolTiroir
=
true
;
document
.
getElementById
(
'
eye
'
).
classList
.
remove
(
'
glyphicon-eye-open
'
);
document
.
getElementById
(
'
eye
'
).
classList
.
add
(
'
glyphicon-eye-close
'
);
document
.
getElementById
(
'
eye
'
).
title
=
"
Masquer le panier
"
;
}
}
function
toggleGrille
()
{
var
cases
=
document
.
getElementsByClassName
(
'
case
'
);
...
...
@@ -464,4 +480,4 @@ document.getElementById('hrefNewPage').href = thisURL.replace(pageId, '');
function
openInNewTab
()
{
var
URL
=
document
.
getElementById
(
"
pLien
"
).
value
;
window
.
open
(
URL
,
'
_blank
'
);
}
\ No newline at end of file
}
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