Commit b0e8b277 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

version1 par défaut pour l'instant

parent 5bdc6dd9
...@@ -10,24 +10,25 @@ function logg(texte) { ...@@ -10,24 +10,25 @@ function logg(texte) {
var version2 = true var version2 = true
function switchv2(){ function switchv2(){
version2 = !version2
if (version2){ if (version2){
console.log("Affichage version 2") console.log("Affichage version 2")
document.getElementById('switchv2').checked = true
document.getElementById('ecritoire').style.display = "none" document.getElementById('ecritoire').style.display = "none"
document.getElementById('panier').style.display = "none" document.getElementById('panier').style.display = "none"
document.querySelectorAll('.param-v1').forEach(div => { div.style.display = "none" }) document.querySelectorAll('.param-v1').forEach(div => { div.style.display = "none" })
document.getElementById('eraseAll').style.display = "none" document.getElementById('eraseAll').style.display = "none"
document.getElementById('multidraggable').style.display = "block" document.getElementById('multidraggable').style.display = "block"
document.getElementById('panierv2').style.display = "block" document.getElementById('panierv2').style.display = "block"
version2 = !version2
} else { } else {
console.log("Affichage version 1") console.log("Affichage version 1")
document.getElementById('switchv2').checked = false
document.getElementById('ecritoire').style.display = "block" document.getElementById('ecritoire').style.display = "block"
document.getElementById('panier').style.display = "block" document.getElementById('panier').style.display = "block"
document.querySelectorAll('.param-v1').forEach(div => { div.style.display = "block" }) document.querySelectorAll('.param-v1').forEach(div => { div.style.display = "block" })
document.getElementById('eraseAll').style.display = "block" document.getElementById('eraseAll').style.display = "block"
document.getElementById('multidraggable').style.display = "none" document.getElementById('multidraggable').style.display = "none"
document.getElementById('panierv2').style.display = "none" document.getElementById('panierv2').style.display = "none"
version2 = !version2
} }
} }
// Passer à la v2 par défaut // Passer à la v2 par défaut
...@@ -55,7 +56,7 @@ let repCases = {}; ...@@ -55,7 +56,7 @@ let repCases = {};
var pageId = thisURL.match(/id-\w+/); var pageId = thisURL.match(/id-\w+/);
if (pageId) { if (pageId) {
logg("Page ID : "+pageId); logg("Page ID : "+pageId);
switchv2() // switchv2()
} else { } else {
logg("Page vierge"); logg("Page vierge");
pageId = '0'; pageId = '0';
......
Markdown is supported
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