diff --git a/ui/src/Client.svelte b/ui/src/Client.svelte index 72a5696..9521564 100644 --- a/ui/src/Client.svelte +++ b/ui/src/Client.svelte @@ -6,6 +6,13 @@ let clientId = client[0]; let dev = client[1]; + + var hash = 0; + for (var i = 0; i < dev.PrivateKey.length; i++) { + hash = dev.PrivateKey.charCodeAt(i) + ((hash << 5) - hash); + } + let color = "hsl(" + (hash % 360) + ",50%,95%)"; + console.log("color", color);
-
+
edit

{dev.Name}