diff --git a/html/index.html b/html/index.html index b49020a..9791532 100644 --- a/html/index.html +++ b/html/index.html @@ -338,6 +338,18 @@ "columnDefs": [ { className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 6 ] } ], + 'rowCallback': function(row, data, index){ + // Calculating BER + if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) <= 0.5){ + $(row).find('td:eq(6)').css('color', 'black'); + } + if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) > 0.5){ + $(row).find('td:eq(6)').css('color', 'orange'); + } + if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) > 2){ + $(row).find('td:eq(6)').css('color', 'red'); + } + }, "autoWidth": false } ); diff --git a/html/js/version.js b/html/js/version.js index 3de6a82..45a2cf8 100644 --- a/html/js/version.js +++ b/html/js/version.js @@ -1 +1 @@ -var dashboard_version = "2021-02-06 13:21:13"; +var dashboard_version = "2021-02-06 13:28:10";