Add support for making the "info" lines blue

For R525-028
This commit is contained in:
Nicolas Setton
2018-06-18 14:23:18 -04:00
parent 38166ae13a
commit e3b31ba99f
2 changed files with 22 additions and 1 deletions

View File

@@ -30,6 +30,17 @@ div.output_msg:hover{
background-color:#fdd;
}
div.output_msg_info{
color: #449;
padding-left:15px;
padding-right:3px;
}
div.output_msg_info:hover{
background-color:#ddf;
}
div.output_info{
color: #222;
padding-left:3px;

View File

@@ -21,7 +21,17 @@ function process_check_output(editors, output_area, output, status, completed, m
// Look for lines that contain an error message
var match_found = l.match(/^([a-zA-Z._0-9-]+):(\d+):(\d+):(.+)$/)
var klass = match_found ? "output_msg" : "output_line"
if (match_found) {
if (match_found[4].startsWith(" info:")) {
var klass = "output_msg_info"
}
else {
var klass = "output_msg"
}
}
else {
var klass = "output_line"
}
// Print the line in the output area
var div = $('<div class="' + klass + '">')