Friday, 2023-10-20

Darkijahanyone knows Javascript?13:59
DarkijahI need a loop command.....13:59
Darkijahof some kind13:59
Darkijahvar listItems = document.getElementsByClassName('color'); var colors = ["#ff0000", "#ff940d", "#e5ff00", "#00ff00", "#25c7ef", "#364aff", "#ba00ff"14:00
Darkijah];  for(var i = 0; i < colors.length; i ++) { listItems[i].style.color = colors[i]; }14:00
DarkijahI need something that redo's the colors14:00
b100dian[m]What is the problem, indexing the listitems?17:37
direc85[m]Try something like: listItems[i].style.color = colors[i % colors.length];18:36
direc85[m]3 minutes too late, it seems :]18:37
b100dian[m]He'll get that from the logs. It's easier to discuss code, ain't it.19:30

Generated by 2.17.1 by Marius Gedminas - find it at!