Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

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