顏色不重複 自動randowNewColor
User JS 設定顏色不重複
function randomNewcolor() {
var remarning = [];
for (var i = 0; i < UserIdlist.length; i++) {
var newcolor = '#' + (0x1000000 + (Math.random()) * 0xffffff).toString(16).substr(1, 6);
remarning.push(newcolor);
}
remarning = $.unique(remarning)
return remarning;
}