color of send box is now working correctly for variable user number
This commit is contained in:
parent
94dc08ee8d
commit
40fc554954
4
owe.js
4
owe.js
@ -31,8 +31,8 @@ function loadSentences(alertIfNew = false, increaseUnread = true) {
|
|||||||
|
|
||||||
// color
|
// color
|
||||||
var spans = document.querySelector(".sentences").getElementsByTagName("span");
|
var spans = document.querySelector(".sentences").getElementsByTagName("span");
|
||||||
// we expect this to be from the user who's turn it is now (3 users)
|
// we expect this to be from the user who's turn it is now
|
||||||
var histurnspan = spans[spans.length - 3];
|
var histurnspan = spans[spans.length - config_data.users.length];
|
||||||
//console.log(histurnspan.getAttribute("style"));
|
//console.log(histurnspan.getAttribute("style"));
|
||||||
document.getElementById("wordinput").setAttribute("style", histurnspan.getAttribute("style"));
|
document.getElementById("wordinput").setAttribute("style", histurnspan.getAttribute("style"));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user