DmitrMakeev commited on
Commit
227bb37
·
verified ·
1 Parent(s): de01180

Update nutri_call.html

Browse files
Files changed (1) hide show
  1. nutri_call.html +9 -9
nutri_call.html CHANGED
@@ -196,11 +196,11 @@
196
  </div>
197
  <div class="profile-element" style="grid-column: 6">
198
  <span class="profile-label">Mg</span>
199
- <input id="profile_s" type="number" value="24.000" step="0.001"/>
200
  </div>
201
  <div class="profile-element" style="grid-column: 7">
202
  <span class="profile-label">S</span>
203
- <input id="profile_cl" type="number" value="56.439" step="0.001"/>
204
  </div>
205
  <div class="profile-element" style="grid-column: 8">
206
  <span class="profile-label">EC</span>
@@ -366,13 +366,13 @@ document.getElementById('calculate-btn').addEventListener('click', function() {
366
  }
367
  },
368
  profileSettings: {
369
- 'P': getValue('profile_k'),
370
- 'K': getValue('profile_ca'),
371
- 'Mg': getValue('profile_s'),
372
- 'Ca': getValue('profile_mg'),
373
- 'S': getValue('profile_cl'),
374
- 'N (NO3-)': getValue('profile_no3'),
375
- 'N (NH4+)': getValue('profile_nh4'),
376
  'liters': parseInt(document.getElementById('liters-input').value) || 1
377
  }
378
  };
 
196
  </div>
197
  <div class="profile-element" style="grid-column: 6">
198
  <span class="profile-label">Mg</span>
199
+ <input id="profile_mg" type="number" value="24.000" step="0.001"/>
200
  </div>
201
  <div class="profile-element" style="grid-column: 7">
202
  <span class="profile-label">S</span>
203
+ <input id="profile_s" type="number" value="56.439" step="0.001"/>
204
  </div>
205
  <div class="profile-element" style="grid-column: 8">
206
  <span class="profile-label">EC</span>
 
366
  }
367
  },
368
  profileSettings: {
369
+ 'P': getValue('profile_p'),
370
+ 'K': getValue('profile_k'),
371
+ 'Mg': getValue('profile_mg'),
372
+ 'Ca': getValue('profile_ca'),
373
+ 'S': getValue('profile_s'),
374
+ 'NO3_RAT': getValue('profile_no3'),
375
+ 'N (NH4+)': getValue('profile_p'),
376
  'liters': parseInt(document.getElementById('liters-input').value) || 1
377
  }
378
  };