improvements

This commit is contained in:
Yann Esposito (Yogsototh) 2021-09-06 18:39:45 +02:00
parent fcd3383a25
commit 0433ad434f
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -38,7 +38,7 @@
font-size: 2em;
font-weight: bold;
}
.hl { background-color: hsl(0,62%,60%); color: white; }
.hl { background-color: hsl(0,90%,80%); color: white; }
</style>
</head>
<body>
@ -82,7 +82,8 @@
],
fts: [ "SX Session",
"Bug Squashing",
"Secure Client" ],
"Secure Client",
"PTO"],
assignments: {}
};
}
@ -211,8 +212,18 @@
}
function genColor(devname) {
var h = hashcode(devname);
return "hsl(" + h + ",90%, 80%)";
var hue = hashcode(devname);
switch (devname) {
case "GE":
case "GB":
case "M":
case "Y":
hue = 0;
break;
default:
hue = hue % 200 + 56;
}
return "hsl(" + hue + ",90%, 80%)";
}
function createDev(devname){