|
|
|
@ -75,22 +75,42 @@ document.getElementById("both_di").style.backgroundSize=size/8+"px";
|
|
|
|
|
document.getElementById("btn_confirm").width=size/4;
|
|
|
|
|
|
|
|
|
|
if(getCookie("pause")!=1)
|
|
|
|
|
document.getElementById("no_pause").checked=true;
|
|
|
|
|
document.getElementById("no_pause").checked=true;
|
|
|
|
|
else
|
|
|
|
|
document.getElementById("yes_pause").checked=true;
|
|
|
|
|
document.getElementById("yes_pause").checked=true;
|
|
|
|
|
|
|
|
|
|
var displ=getCookie("displayMode");
|
|
|
|
|
|
|
|
|
|
function selectDisplay(e)
|
|
|
|
|
{
|
|
|
|
|
displ=e;
|
|
|
|
|
console.log(e);
|
|
|
|
|
setCookie("displayMode",e,30);
|
|
|
|
|
console.log("cookie "+getCookie("displayMode"));
|
|
|
|
|
document.getElementById("points_di").classList.remove("selected");
|
|
|
|
|
document.getElementById("gems_di").classList.remove("selected");
|
|
|
|
|
document.getElementById("both_di").classList.remove("selected");
|
|
|
|
|
document.getElementById(e+"_di").classList.add("selected");
|
|
|
|
|
backgroundBoth();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function backgroundBoth()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
for(var cpt=1;cpt<9;cpt++)
|
|
|
|
|
{
|
|
|
|
|
eval("slot"+cpt+".classList."+(displ=="both" ? "add" : "remove")+"('dot')");
|
|
|
|
|
if(displ=="both")
|
|
|
|
|
{
|
|
|
|
|
eval("slot"+cpt+".style.backgroundColor='"+gemsSelected[cpt-1]+"'");
|
|
|
|
|
eval("gem"+cpt+".width=size/8");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
eval("slot"+cpt+".style.backgroundColor=''");
|
|
|
|
|
eval("gem"+cpt+".width=size/6");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var customColorsAvailable=["#FF0000","#ffff00","#008000","#800080","#000000","#8b4513","#00ffff","#ffa500"];
|
|
|
|
@ -128,7 +148,7 @@ for(var cpt=1;cpt<9;cpt++)
|
|
|
|
|
document.getElementById("col`+cpt+`").style.background=pickr`+cpt+`.getColor().toHEXA().toString();
|
|
|
|
|
setCookie("color_`+cpt+`",pickr`+cpt+`.getColor().toHEXA().toString(),30);
|
|
|
|
|
pickr`+cpt+`.hide();
|
|
|
|
|
});`);
|
|
|
|
|
});`);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|