DmitrMakeev commited on
Commit
8690ba1
·
verified ·
1 Parent(s): a746ec0

Update nutri_call.html

Browse files
Files changed (1) hide show
  1. nutri_call.html +2 -2
nutri_call.html CHANGED
@@ -1214,11 +1214,11 @@ function calculateCationsAndAnions(data) {
1214
 
1215
  console.log(`Катионы: ${totalCations.toFixed(2)} meq/L (${cationPercent}%)`);
1216
  console.log(`Анионы: ${totalAnions.toFixed(2)} meq/L (${anionPercent}%)`);
1217
- console.log(`Дисбаланс: ${(totalCations - totalAnions).toFixed(2)} meq/L`);
1218
 
1219
  // Обновляем UI
1220
  document.getElementById("n1-value").textContent =
1221
- `Катионы: ${totalCations.toFixed(2)} meq/L | Анионы: ${totalAnions.toFixed(2)} meq/L`;
1222
 
1223
  // Обновляем индикаторы
1224
  document.getElementById("cation-indicator").style.width = `${cationPercent}%`;
 
1214
 
1215
  console.log(`Катионы: ${totalCations.toFixed(2)} meq/L (${cationPercent}%)`);
1216
  console.log(`Анионы: ${totalAnions.toFixed(2)} meq/L (${anionPercent}%)`);
1217
+ console.log(`Дисбаланс: ${(totalCations - totalAnions).toFixed(2)} mEq/L`);
1218
 
1219
  // Обновляем UI
1220
  document.getElementById("n1-value").textContent =
1221
+ `Катионы: ${totalCations.toFixed(2)} meq/L | Анионы: ${totalAnions.toFixed(2)} mEq/L`;
1222
 
1223
  // Обновляем индикаторы
1224
  document.getElementById("cation-indicator").style.width = `${cationPercent}%`;