Skip to content

Commit

Permalink
Fix randomColor always returning the same colour
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle0x1 committed Sep 28, 2024
1 parent 2bfda5f commit a422a45
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
7 changes: 3 additions & 4 deletions src/assets/dist/external.dist.css
100755 → 100644

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/assets/dist/external.dist.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/assets/dist/login.dist.css
100755 → 100644

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/assets/dist/login.dist.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/assets/lxdMosaic/globalFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ var toolTipsBytesCallbacks = {

var monthsNameArray = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

https://stackoverflow.com/questions/1484506/random-color-generator/32124533
// https://stackoverflow.com/questions/1484506/random-color-generator/32124533
function randomColor(format = 'hex') {
return '#2ecc71'
const rnd = Math.random().toString(16).slice(-6);
if (format === 'hex') {
return '#' + rnd;
Expand Down

0 comments on commit a422a45

Please sign in to comment.