Saturday, 2023-10-21

DarkijahI think the issue is in the var place16:21
Darkijahhmm apparently had lost connection16:21
Darkijahbut just need the script to do it over and over again16:21
Darkijahafter the last color to redo it16:21
Darkijahstarting from beginning16:21
Darkijahb100dian[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.16:22
Darkijahb100dian[m]: you there?16:23
DarkijahI just need to redo the colors I would think the code is in the for var code16:23
Darkijahbut not sure, I just need to have it redo it over and over again16:24
DarkijahAt the moment I did this16:24
Darkijah<script>     var listItems = document.getElementsByClassName('color');  var colors = ["#ff0000", "#ff940d", "#e5ff00", "#00ff00", "#25c7ef", "#364aff", "#ba00ff",   "#ff0000", "#ff940d", "#e5ff00", "#00ff00", "#25c7ef", "#364aff", "#ba00ff",   "#ff0000", "#ff940d", "#e5ff00", "#00ff00", "#25c7ef", "#364aff", "#ba00ff",   "#ff0000", "#ff940d", "#e5ff00", "#00ff00", "#25c7ef", "#364aff", "#ba00ff",   "#ff0000", "#ff940d", "#e5ff00", "#00ff16:24
Darkijahover and over, it works but kinda not...16:24
Darkijahthe way it should be.16:24
DarkijahlistItems[i].style.color = colors[i % colors.length];16:27
Darkijahhmmm16:27
Darkijahokay16:27
Darkijahlike this:16:28
Darkijahvar listItems = document.getElementsByClassName('color');  var colors = ["#ff0000", "#ff940d", "#e5ff00", "#00ff00", "#25c7ef", "#364aff", "#ba00ff"];  for(var i = 0; i < colors.length; i ++) { listItems[i].style.color = colors[i % colors.length]; }16:28
Darkijahnope did not seem to work16:30
Darkijahstops at the 7 color still16:30
Darkijahwait... did it not copy paste it16:31
DarkijahlistItems[i].style.color = colors[i % colors.length16:31
DarkijahStops.... at the 7 color still b100dian[m]16:33
DarkijahI'm sure it is easy to solve, but.... I just don't know Javascript16:34
DarkijahJust be a small fixed to make it redo the 7 colors16:34
DarkijahMaybe I should go to Israel.... And just take a break from it all...16:35
Darkijahsouthen point and get some sun16:35
b100dian[m]Replace colors.length with listitems.length17:17

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!