Sha256: 2e7849d409db97eda58b5c51e97de623f7a96b8ddaa20e810a5554ee911aad52
Contents?: true
Size: 713 Bytes
Versions: 68
Compression:
Stored size: 713 Bytes
Contents
// Alternate gray/white rows in all the tables having the class "striped" function stripeTables() { if (!document.getElementsByTagName) { return false; } var tables = document.getElementsByTagName("table"); for (var i = 0; i < tables.length; i++) { if (tables[i].className == "striped") { var gray = true; var rows = tables[i].getElementsByTagName("tr"); for (var j = 0; j < rows.length; j++) { if (gray) { rows[j].style.backgroundColor = "#f0f0f0"; gray = false; } else { gray = true; } } } } }
Version data entries
68 entries across 68 versions & 4 rubygems