מדיה ויקי:Gadget-FlowDeluxeLocal.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 16: | שורה 16: | ||
function indentPostWithColors() { | function indentPostWithColors() { | ||
var posts = $('.flow-post-main'); | var posts = $('.flow-post-main'); | ||
var | // var color; | ||
var colored = false; | |||
for(var i=0, len=posts.length; i<len; i++) { | for(var i=0, len=posts.length; i<len; i++) { | ||
color = switchColor(color); | if (colored) | ||
posts[[i]].addClass('flow-color-indent'); | |||
else | |||
posts[[i]].removeClass('flow-color-indent'); | |||
colored = !colored; | |||
// color = switchColor(color); | |||
// posts[[i]].style.backgroundColor = color; | |||
} | } | ||
} | } | ||