You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
var FormeSelect = [];
|
|
var ListeCouleur = ["colorbase","colorcarre","colorone","colortwo","colorthree"]
|
|
var ListeClassForme = ["rond","carre","triangle","losange","croix","penta","hexa","hocto"]
|
|
|
|
//3 modes : 0 = couleurs // 1 = formes // 2 = personnaliser les cartes
|
|
var mode = 0;
|
|
var valRange;
|
|
|
|
function settingOpen(){
|
|
var elements = document.getElementsByClassName("pcr-button");
|
|
for (var i = 0; i < elements.length; i++) {
|
|
elements[i].classList.add(ListeClassForme[i]);
|
|
}
|
|
}
|
|
|
|
function disableCache(formName){
|
|
cacheName = "cache"+formName;
|
|
document.getElementById(cacheName).style.display = "none";
|
|
FormeSelect.push(form);
|
|
|
|
//document.getElementById("SettingName").innerHTML = FormeSelect.length;
|
|
}
|
|
|
|
function changeContour(value){
|
|
var newvalue = value * 0.055 + 1;
|
|
document.documentElement.style.setProperty('--z', newvalue+'vw');
|
|
//document.getElementById("SettingName").innerHTML = newvalue;
|
|
}
|
|
|
|
function ableCache(formName){
|
|
cacheName = "cache"+formName;
|
|
const pos = FormeSelect.indexOf(formName);
|
|
if (pos > -1) {
|
|
FormeSelect.splice(pos, 1);
|
|
}
|
|
document.getElementById(cacheName).style.display = "block";
|
|
}
|
|
|
|
function getVarColor(color){
|
|
var getvar = color;
|
|
getvar = getvar.substring(6,getvar.length-1);
|
|
|
|
return getvar;
|
|
}
|
|
|
|
function varColorToHex(color){
|
|
hex = getComputedStyle(document.documentElement).getPropertyValue(color);
|
|
hex = hex.substring(1,hex.length);
|
|
return hex;
|
|
}
|
|
function myFunction() {
|
|
/* Get the text field */
|
|
var copyText = document.getElementById("myInput");
|
|
|
|
/* Select the text field */
|
|
copyText.select();
|
|
copyText.setSelectionRange(0, 99999); /* For mobile devices */
|
|
|
|
/* Copy the text inside the text field */
|
|
document.execCommand("copy");
|
|
}
|
|
|