Last active
August 20, 2017 19:43
-
-
Save kavdev/7ad219727dab50f2f136f49ad0393bdb to your computer and use it in GitHub Desktop.
Revisions
-
kavdev revised this gist
Aug 20, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,4 @@ badgeColors = [ "#4cd39f", "#599bfc", "#4eea95", "#ea47a8", "#c46f55", "#2588bf", "#6d6457", "#7e649e" ] backgroundColor = badgeColors[("{{ user.last_name|index:0|title }}".charCodeAt() - 65) % 26] -
kavdev created this gist
Aug 20, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ badgeColors = [ "#f28920", "#49b75e", "#33ccb6", "#d13b7f", "#733aef", "#c8d60b", "#598ece", "#ea537a", "#dd9c4e", "#6da877", "#b4f741", "#7775cc", "#8ca579", "#2c57f4", "#dd9c5b", "#e8e862", "#d11c4b", "#d3b34a", "#4cd39f", "#599bfc", "#4eea95", "#ea47a8", "#c46f55", "#2588bf", "#6d6457", "#7e649e" ] backgroundColor = badgeColors[("{{ user.last_name|index:0|uppercase }}".charCodeAt() - 65) % 26]