Sha256: 9fc85b283cabc0f609e3e61e2a2ca6186d6c4caf18ff41c191ad44738e0b1e54
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
// highlight "passed", "failed", or "check" in any table // It will also set the background-color attribute of <td> elements of tables containing // "passed", "failed", or "check" with green, red, or yellow respectively $(document).ready(function() { $("td").each(function(i) { var current = $(this); if (!(current.html().match(/^passed$/i) === null)) { current.attr("style", "background-color:#19D119;"); //green } else if (!(current.html().match(/^failed$/i) === null)) { current.attr("style", "background-color:#FF4719;"); //red } else if (!(current.html().match(/^check$/i) === null)) { current.attr("style", "background-color:#FFFF00;"); //yellow } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xhtml_report_generator-4.0.3 | resource/passfail_bgcolor.js |