WIP: nambah parameter normal di halaman hasil ujian
This commit is contained in:
parent
d0bcdd2949
commit
7f6cf7dcd6
|
|
@ -461,8 +461,8 @@ function renderVelocityChart(timeseries) {
|
|||
|
||||
const result = await res.json();
|
||||
if(result != null) {
|
||||
let classBg = ['text-warning', 'text-danger'];
|
||||
let textResult = ['Sedang', 'Tinggi'];
|
||||
let classBg = ['text-success', 'text-warning', 'text-danger'];
|
||||
let textResult = ['Normal', 'Sedang', 'Tinggi'];
|
||||
$('#result-model').addClass(classBg[result.hasil_prediksi]);
|
||||
$('#result-model').html(textResult[result.hasil_prediksi]);
|
||||
$('#confidence-model').html(result.confidence + '%');
|
||||
|
|
|
|||
Loading…
Reference in New Issue