halaman-psikolog #1

Merged
Mahayoga merged 52 commits from halaman-psikolog into master 2026-07-06 12:37:30 +07:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 7f6cf7dcd6 - Show all commits

View File

@ -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 + '%');