Spaces:
Sleeping
Sleeping
Update nutri_call.html
Browse files- nutri_call.html +0 -152
nutri_call.html
CHANGED
@@ -325,159 +325,7 @@
|
|
325 |
|
326 |
|
327 |
<script>
|
328 |
-
<fieldset>
|
329 |
-
<legend>Макропрофиль в мг/л (ppm)</legend>
|
330 |
-
<div class="main-container">
|
331 |
-
<!-- Основные элементы -->
|
332 |
-
<div class="profile-container">
|
333 |
-
<div class="profile-element" style="grid-column: 2">
|
334 |
-
<span class="profile-label">N</span>
|
335 |
-
<input id="profile_n" type="number" value="125.000" step="0.001"/>
|
336 |
-
</div>
|
337 |
-
<div class="profile-element" style="grid-column: 3">
|
338 |
-
<span class="profile-label">P</span>
|
339 |
-
<input id="profile_p" type="number" value="31.000" step="0.001"/>
|
340 |
-
</div>
|
341 |
-
<div class="profile-element" style="grid-column: 4">
|
342 |
-
<span class="profile-label">K</span>
|
343 |
-
<input id="profile_k" type="number" value="210.000" step="0.001"/>
|
344 |
-
</div>
|
345 |
-
<div class="profile-element" style="grid-column: 5">
|
346 |
-
<span class="profile-label">Ca</span>
|
347 |
-
<input id="profile_ca" type="number" value="84.000" step="0.001"/>
|
348 |
-
</div>
|
349 |
-
<div class="profile-element" style="grid-column: 6">
|
350 |
-
<span class="profile-label">Mg</span>
|
351 |
-
<input id="profile_mg" type="number" value="24.000" step="0.001"/>
|
352 |
-
</div>
|
353 |
-
<div class="profile-element" style="grid-column: 7">
|
354 |
-
<span class="profile-label">S</span>
|
355 |
-
<input id="profile_s" type="number" value="56.439" step="0.001"/>
|
356 |
-
</div>
|
357 |
-
<div class="profile-element" style="grid-column: 8">
|
358 |
-
<span class="profile-label">EC</span>
|
359 |
-
<input id="profile_ec" type="number" value="0.0" step="0.001" readonly/>
|
360 |
-
</div>
|
361 |
-
</div>
|
362 |
-
|
363 |
-
<!-- Азотные элементы -->
|
364 |
-
<div class="nitrogen-container">
|
365 |
-
<div class="nitrogen-group">
|
366 |
-
<label for="profile_nh4">NH4:</label>
|
367 |
-
<input id="profile_nh4" type="number" value="1.0" step="1.0" readonly style="background-color: #f0f0f0; border: 1px solid #ccc; color: #666;">
|
368 |
-
</div>
|
369 |
-
<div class="nitrogen-group">
|
370 |
-
<label for="profile_no3">NO3:</label>
|
371 |
-
<input id="profile_no3" type="number" value="10.0" step="0.01" min="5" max="10.001"/>
|
372 |
-
</div>
|
373 |
-
</div>
|
374 |
-
</div>
|
375 |
-
</fieldset>
|
376 |
|
377 |
-
<fieldset>
|
378 |
-
<legend>Составы солей</legend>
|
379 |
-
<div class="fertilisers-container">
|
380 |
-
<!-- Заголовки -->
|
381 |
-
<div class="fert-row">
|
382 |
-
<span class="fert-name">Удобрение</span>
|
383 |
-
<span class="fert-header">NH4</span>
|
384 |
-
<span class="fert-header">NO3</span>
|
385 |
-
<span class="fert-header">P</span>
|
386 |
-
<span class="fert-header">K</span>
|
387 |
-
<span class="fert-header">Ca</span>
|
388 |
-
<span class="fert-header">Mg</span>
|
389 |
-
<span class="fert-header">S</span>
|
390 |
-
<span class="fert-header">Грамм</span>
|
391 |
-
</div>
|
392 |
-
|
393 |
-
<!-- Строки с удобрениями -->
|
394 |
-
<div class="fert-row">
|
395 |
-
<span class="fert-name">CaN2O6</span>
|
396 |
-
<span class="fert-cell">-</span>
|
397 |
-
<input class="fert-input" type="number" value="11.863" step="0.001" id="fert_ca_no3"/>
|
398 |
-
<span class="fert-cell">-</span>
|
399 |
-
<span class="fert-cell">-</span>
|
400 |
-
<input class="fert-input" type="number" value="16.972" step="0.001" id="fert_ca_ca"/>
|
401 |
-
<span class="fert-cell">-</span>
|
402 |
-
<span class="fert-cell">-</span>
|
403 |
-
<input class="fert-input" type="number" step="0.001" id="calcium_nitrate" readonly/>
|
404 |
-
</div>
|
405 |
-
|
406 |
-
<div class="fert-row">
|
407 |
-
<span class="fert-name">KNO3</span>
|
408 |
-
<span class="fert-cell">-</span>
|
409 |
-
<input class="fert-input" type="number" value="13.854" step="0.001" id="fert_kno3_no3"/>
|
410 |
-
<span class="fert-cell">-</span>
|
411 |
-
<input class="fert-input" type="number" value="36.672" step="0.001" id="fert_kno3_k"/>
|
412 |
-
<span class="fert-cell">-</span>
|
413 |
-
<span class="fert-cell">-</span>
|
414 |
-
<span class="fert-cell">-</span>
|
415 |
-
<input class="fert-input" type="number" step="0.001" id="potassium_nitrate" readonly/>
|
416 |
-
</div>
|
417 |
-
|
418 |
-
<div class="fert-row">
|
419 |
-
<span class="fert-name">NH4NO3</span>
|
420 |
-
<input class="fert-input" type="number" value="17.499" step="0.001" id="fert_nh4no3_nh4"/>
|
421 |
-
<input class="fert-input" type="number" value="17.499" step="0.001" id="fert_nh4no3_no3"/>
|
422 |
-
<span class="fert-cell">-</span>
|
423 |
-
<span class="fert-cell">-</span>
|
424 |
-
<span class="fert-cell">-</span>
|
425 |
-
<span class="fert-cell">-</span>
|
426 |
-
<span class="fert-cell">-</span>
|
427 |
-
<input class="fert-input" type="number" step="0.001" id="ammonium_nitrate" readonly/>
|
428 |
-
</div>
|
429 |
-
|
430 |
-
<div class="fert-row">
|
431 |
-
<span class="fert-name">MgSO4</span>
|
432 |
-
<span class="fert-cell">-</span>
|
433 |
-
<span class="fert-cell">-</span>
|
434 |
-
<span class="fert-cell">-</span>
|
435 |
-
<span class="fert-cell">-</span>
|
436 |
-
<span class="fert-cell">-</span>
|
437 |
-
<input class="fert-input" type="number" value="10.22" step="0.001" id="fert_mgso4_mg"/>
|
438 |
-
<input class="fert-input" type="number" value="13.483" step="0.001" id="fert_mgso4_s"/>
|
439 |
-
<input class="fert-input" type="number" step="0.001" id="magnesium_sulfate" readonly/>
|
440 |
-
</div>
|
441 |
-
|
442 |
-
<div class="fert-row">
|
443 |
-
<span class="fert-name">KH2PO4</span>
|
444 |
-
<span class="fert-cell">-</span>
|
445 |
-
<span class="fert-cell">-</span>
|
446 |
-
<input class="fert-input" type="number" value="22.761" step="0.001" id="fert_kh2po4_p"/>
|
447 |
-
<input class="fert-input" type="number" value="28.731" step="0.001" id="fert_kh2po4_k"/>
|
448 |
-
<span class="fert-cell">-</span>
|
449 |
-
<span class="fert-cell">-</span>
|
450 |
-
<span class="fert-cell">-</span>
|
451 |
-
<input class="fert-input" type="number" step="0.001" id="monopotassium_phosphate" readonly/>
|
452 |
-
</div>
|
453 |
-
|
454 |
-
<div class="fert-row">
|
455 |
-
<span class="fert-name">K2SO4</span>
|
456 |
-
<span class="fert-cell">-</span>
|
457 |
-
<span class="fert-cell">-</span>
|
458 |
-
<span class="fert-cell">-</span>
|
459 |
-
<input class="fert-input" type="number" value="44.874" step="0.001" id="fert_k2so4_k"/>
|
460 |
-
<span class="fert-cell">-</span>
|
461 |
-
<span class="fert-cell">-</span>
|
462 |
-
<input class="fert-input" type="number" value="18.401" step="0.001" id="fert_k2so4_s"/>
|
463 |
-
<input class="fert-input" type="number" step="0.001" id="potassium_sulfate" readonly/>
|
464 |
-
</div>
|
465 |
-
</div>
|
466 |
-
</fieldset>
|
467 |
-
|
468 |
-
<fieldset class="calculation-box">
|
469 |
-
<legend>Расчёт удобрений</legend>
|
470 |
-
<div class="calculation-container">
|
471 |
-
<div class="calculation-label">Литры:</div>
|
472 |
-
<input type="number" id="liters-input" value="100" min="1" step="1">
|
473 |
-
<button id="calculate-btn">Рассчитать</button>
|
474 |
-
</div>
|
475 |
-
</fieldset>
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
<script>
|
481 |
@app.route('/calculation', methods=['POST'])
|
482 |
def handle_calculation():
|
483 |
try:
|
|
|
325 |
|
326 |
|
327 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
@app.route('/calculation', methods=['POST'])
|
330 |
def handle_calculation():
|
331 |
try:
|