Ajout swatches pour sélection points

master
adplantade 5 years ago
parent e9f0aa2272
commit 4cbcac0791

@ -11,6 +11,7 @@ var span = document.getElementsByClassName("close")[0];
btn.onclick = function() {
modal.style.display = "block";
document.getElementById("color_pickers").style.display= (displ!="points" ? "none" : "inline");
document.getElementById("gems_picker").style.display= (displ=="points" ? "none" : "inline");
document.getElementById(getCookie("displayMode")+"_di").classList.add("selected");
}
@ -102,6 +103,8 @@ for(var cpt=1;cpt<9;cpt++)
theme: 'monolith',
default: (getCookie("color_`+cpt+`")=="" ? customColorsAvailable[cpt-1] : getCookie("color_`+cpt+`")),
useAsButton: true,
swatches:["red","yellow","green","purple","black","brown","cyan","orange"],
components: {

Loading…
Cancel
Save