From 2a3e9383d2c450a3e15a81532cfcda2dd84067a7 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Sat, 6 Feb 2021 13:28:10 +0000 Subject: [PATCH] Also colorizing ALLHeard-BER --- html/index.html | 12 ++++++++++++ html/js/version.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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";