Changeset 512 in tmcsimulator for trunk/webapps


Ignore:
Timestamp:
11/07/2019 07:19:13 PM (6 years ago)
Author:
jdalbey
Message:

unifiedlogmonitor.html implement ticket #190: add color coding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/unifiedlogmonitor.html

    r442 r512  
    1212   color: goldenrod 
    1313} 
     14 
     15/* Color Code for unified logger */  
     16.CAD-log{ 
     17    color: #00FFFF; 
     18} 
     19.Activity-log{ 
     20    color: #32CD32; 
     21} 
     22.CMS-Activated{ 
     23    color: #FFFF00; 
     24} 
     25 
    1426/* Padding for table cells */ 
    1527td { padding-top:2px; padding-right:10px; padding-bottom:2px; padding-left:10px; } 
     
    4860        for (var singleRow = allRows.length-1; singleRow >= 0; singleRow--) 
    4961        { 
    50             table += '<tr>'; 
    5162            var rowCells = allRows[singleRow].split(','); 
     63            var msg_type = ""; 
     64 
     65            // trimming white space in the type of messages  
     66            // ingore the emtpy line  
     67            if (rowCells.length > 1) { 
     68                console.log("row cell " , rowCells[1]); 
     69                rowCells[1] = rowCells[1].trim(); 
     70            } 
     71            // Implement ticket #190  
     72            // Checking for the type of logging information  
     73            if (rowCells[1] == "CAD log") { 
     74                msg_type = "class=\"CAD-log\""; 
     75            } else if (rowCells[1] == "Activity Log.") { 
     76                msg_type = "class=\"Activity-log\""; 
     77            } else if (rowCells[1] == "CMS Activated.") { 
     78                msg_type = "class=\"CMS-Activated\""; 
     79            }  
     80            // add the message type class to that row  
     81            table += '<tr ' + msg_type + '>'; 
    5282            for (var rowCell = 0; rowCell < rowCells.length; rowCell++) 
    5383            { 
Note: See TracChangeset for help on using the changeset viewer.