diff --git a/html/index.html b/html/index.html index a5a0a58..2267176 100644 --- a/html/index.html +++ b/html/index.html @@ -377,6 +377,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', 'none'); + } + 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 dd022f3..17d8db6 100644 --- a/html/js/version.js +++ b/html/js/version.js @@ -1 +1 @@ -var dashboard_version = "2021-04-25 16:46:31"; +var dashboard_version = "2021-04-25 16:58:10";