diff --git a/docs/SymptomsCausedByVaccines/js/PrrByVaccineTable.js b/docs/SymptomsCausedByVaccines/js/PrrByVaccineTable.js index c2a5cbd9401..fc77d248933 100644 --- a/docs/SymptomsCausedByVaccines/js/PrrByVaccineTable.js +++ b/docs/SymptomsCausedByVaccines/js/PrrByVaccineTable.js @@ -44,10 +44,23 @@ class PrrByVaccineTable { .outerHTML, targets: [this.#getColumnIndex('Proportional Reporting Ratio')] } - ] + ], + createdRow: (row, data) => { + this.#markRowIfPrrTooHigh( + { + prr: data[this.#getColumnIndex('Proportional Reporting Ratio')], + row: row + }); + } }); } + #markRowIfPrrTooHigh({ prr, row }) { + if (prr > 1.0) { + $(row).addClass('prrTooHigh'); + } + } + #getColumnIndex(columnName) { switch (columnName) { case 'Vaccine': diff --git a/docs/gentelella/build/css/custom.css b/docs/gentelella/build/css/custom.css index a33e4918ef3..8b2e3cf183d 100644 --- a/docs/gentelella/build/css/custom.css +++ b/docs/gentelella/build/css/custom.css @@ -4922,4 +4922,8 @@ table thead .checkbox.radio { margin-top:-7px;margin-top:-21px; } .bar { height: 3px; background-color: #1a73e8; +} + +table.dataTable.display tbody tr.prrTooHigh { + background-color: rgba(255, 0, 0, 10%); } \ No newline at end of file