color of send box is now working correctly for variable user number

This commit is contained in:
Tristan Schneider 2024-01-26 17:25:28 +01:00
parent 94dc08ee8d
commit 40fc554954

4
owe.js
View File

@ -31,8 +31,8 @@ function loadSentences(alertIfNew = false, increaseUnread = true) {
// color
var spans = document.querySelector(".sentences").getElementsByTagName("span");
// we expect this to be from the user who's turn it is now (3 users)
var histurnspan = spans[spans.length - 3];
// we expect this to be from the user who's turn it is now
var histurnspan = spans[spans.length - config_data.users.length];
//console.log(histurnspan.getAttribute("style"));
document.getElementById("wordinput").setAttribute("style", histurnspan.getAttribute("style"));