use title on name/color

This commit is contained in:
Ryan Peters 2021-07-21 20:43:01 -04:00
parent 7643361915
commit c4c1e20526

View File

@ -86,7 +86,7 @@
let usersList = Object.values(users) let usersList = Object.values(users)
.filter(u => u.name !== '') .filter(u => u.name !== '')
.map(u => `<span style='color: ${u.color};'>${u.name}</span>`); .map(u => `<span style="color: ${u.color};" title="${u.color}">${u.name}</span>`);
$usersList.html(`<strong>${usersList.length} users online:</strong> ${usersList.join(', ')}`); $usersList.html(`<strong>${usersList.length} users online:</strong> ${usersList.join(', ')}`);