From 0433ad434f98e23a4e0031b3a1e1a51836984274 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Mon, 6 Sep 2021 18:39:45 +0200 Subject: [PATCH] improvements --- index.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e2c6f70..11af84c 100644 --- a/index.html +++ b/index.html @@ -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; } @@ -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){