User:Proteins/unindent.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
m need iterator
Proteins (talk | contribs)
color to track which DD's are which
Line 25:
 
// Colors to help sighted people after the unindenting
var colorsDD_background_colors = ["black", "red", "blue", "green", "magenta", "cyan", "orange", "purple", "darkgreen", "brown"];
 
 
Line 61:
} // closes loop climbing up the document tree
 
temp_DD_element.style.cssText = "background-color:" + DD_background_colors[indent_level];
diagnostic_string += "DD element " + DD_element_index + " is indented to level " + indent_level + ".\n";
if (indent_level > 0) { num_unindented_DD_elements++; }