|
|
@ -84,13 +84,33 @@ var displ=getCookie("displayMode");
|
|
|
|
function selectDisplay(e)
|
|
|
|
function selectDisplay(e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
displ=e;
|
|
|
|
displ=e;
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
setCookie("displayMode",e,30);
|
|
|
|
setCookie("displayMode",e,30);
|
|
|
|
console.log("cookie "+getCookie("displayMode"));
|
|
|
|
console.log("cookie "+getCookie("displayMode"));
|
|
|
|
document.getElementById("points_di").classList.remove("selected");
|
|
|
|
document.getElementById("points_di").classList.remove("selected");
|
|
|
|
document.getElementById("gems_di").classList.remove("selected");
|
|
|
|
document.getElementById("gems_di").classList.remove("selected");
|
|
|
|
document.getElementById("both_di").classList.remove("selected");
|
|
|
|
document.getElementById("both_di").classList.remove("selected");
|
|
|
|
document.getElementById(e+"_di").classList.add("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"];
|
|
|
|
var customColorsAvailable=["#FF0000","#ffff00","#008000","#800080","#000000","#8b4513","#00ffff","#ffa500"];
|
|
|
|