Commit 9911f9d9 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

ajout afficher/masquer panier

parent 75d4f0f2
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
</div> </div>
<div class="parametres-bottom"> <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-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>
<div class="ecritoire"> <div class="ecritoire">
......
...@@ -344,6 +344,22 @@ function mvTiroir(factor) { ...@@ -344,6 +344,22 @@ function mvTiroir(factor) {
panel.style.height = (parseInt(getComputedStyle(panel, '').height) + factor) + "px"; 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() { function toggleGrille() {
var cases = document.getElementsByClassName('case'); var cases = document.getElementsByClassName('case');
......
Supports Markdown
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