C9Glax/tranga-website #85

This commit is contained in:
db-2001 2024-04-26 10:18:42 -04:00
parent 1aa230bce2
commit 426fd87304

View File

@ -1064,7 +1064,7 @@ function GetValidSelector(str){
return clean.join(''); return clean.join('');
} }
const stringToColour = (str) => { function stringToColour = (str) => {
let hash = 0; let hash = 0;
str.split('').forEach(char => { str.split('').forEach(char => {
hash = char.charCodeAt(0) + ((hash << 5) - hash) hash = char.charCodeAt(0) + ((hash << 5) - hash)