Spaces:
Sleeping
Sleeping
File size: 8,120 Bytes
87d1369 0dbef86 9859341 0dbef86 1278675 0dbef86 0c98d93 1278675 0c98d93 1278675 0c98d93 1278675 a71756c 1278675 a71756c 0c98d93 1278675 a71756c 1278675 a71756c 0c98d93 1278675 0c98d93 1278675 9859341 1278675 0dbef86 0c98d93 1278675 0c98d93 1278675 0c98d93 1278675 a71756c 0c98d93 a71756c 0c98d93 7015916 0c98d93 1278675 0c98d93 1278675 0c98d93 1278675 9b1491d 0c98d93 d5e2dd0 9859341 0c98d93 0dbef86 a9adc70 9b1491d 9859341 1278675 9b1491d 1278675 9859341 87d1369 9859341 87d1369 9b1491d 943eb46 1278675 7015916 1278675 7015916 1278675 7015916 1278675 7015916 1278675 7015916 1278675 7015916 1278675 943eb46 9b1491d 87d1369 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Калькулятор удобрений</title>
<style>
body {
margin: 0 auto;
width: 1000px;
padding: 1em;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
h1 {
background-color: #2e8b57;
color: white;
text-align: center;
padding: 1em;
border-radius: 10px;
margin-bottom: 20px;
}
fieldset {
border: 2px solid #2e8b57;
background-color: #eaffea;
padding: 1em;
margin-bottom: 20px;
border-radius: 8px;
}
legend {
font-weight: bold;
color: #2e8b57;
padding: 0 10px;
}
input[type=number] {
width: 80px;
padding: 3px;
border: 1px solid #ccc;
border-radius: 4px;
}
.main-container {
display: grid;
grid-template-columns: 120px repeat(8, 90px);
gap: 10px;
padding: 10px;
}
.profile-container {
display: contents;
}
.profile-element {
display: flex;
flex-direction: column;
align-items: center;
}
.profile-label {
font-weight: bold;
margin-bottom: 5px;
}
.nitrogen-container {
grid-column: 1 / -1;
display: flex;
gap: 20px;
padding-left: 120px;
margin-top: 10px;
}
.nitrogen-group {
display: flex;
align-items: center;
gap: 5px;
}
/* Стили для нижнего блока — таблица в одну строку */
.fertilisers-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.fert-header-row,
.fert-row {
display: flex;
align-items: center;
gap: 10px;
}
.fert-header {
font-weight: bold;
text-align: center;
width: 80px;
}
.fert-name {
font-weight: bold;
width: 120px;
}
.fert-cell {
width: 80px;
text-align: center;
}
.fert-input {
width: 80px;
}
</style>
</head>
<body>
<h1>Калькулятор удобрений</h1>
<fieldset>
<legend>Макропрофиль в мг/л (ppm)</legend>
<div class="main-container">
<!-- Основные элементы -->
<div class="profile-container">
<div class="profile-element" style="grid-column: 2">
<span class="profile-label">P</span>
<input id="profile_p" type="number" value="0.0" step="1.0"/>
</div>
<div class="profile-element" style="grid-column: 3">
<span class="profile-label">K</span>
<input id="profile_k" type="number" value="0.0" step="1.0"/>
</div>
<div class="profile-element" style="grid-column: 4">
<span class="profile-label">Ca</span>
<input id="profile_ca" type="number" value="0.0" step="1.0"/>
</div>
<div class="profile-element" style="grid-column: 5">
<span class="profile-label">Mg</span>
<input id="profile_mg" type="number" value="0.0" step="1.0"/>
</div>
<div class="profile-element" style="grid-column: 6">
<span class="profile-label">S</span>
<input id="profile_s" type="number" value="0.0" step="1.0"/>
</div>
<div class="profile-element" style="grid-column: 7">
<span class="profile-label">Cl</span>
<input id="profile_cl" type="number" value="0.0" step="1.0"/>
</div>
<div class="profile-element" style="grid-column: 8">
<span class="profile-label">EC</span>
<input id="profile_ec" type="number" value="0.0" step="0.001"/>
</div>
</div>
<!-- Азотные элементы -->
<div class="nitrogen-container">
<div class="nitrogen-group">
<label for="profile_no3">NO3:</label>
<input id="profile_no3" type="number" value="0.0" step="1.0"/>
</div>
<div class="nitrogen-group">
<label for="profile_nh4">NH4:</label>
<input id="profile_nh4" type="number" value="0.0" step="1.0"/>
</div>
</div>
</div>
</fieldset>
<fieldset>
<legend>Составы солей</legend>
<div class="main-container">
<!-- Заголовки -->
<span class="fert-header fert-name">Удобрение</span>
<span class="fert-header">NH4</span>
<span class="fert-header">NO3</span>
<span class="fert-header">P</span>
<span class="fert-header">K</span>
<span class="fert-header">Ca</span>
<span class="fert-header">Mg</span>
<span class="fert-header">S</span>
<span class="fert-header">грамм</span>
<!-- Строки с удобрениями -->
<span class="fert-name">CaN2O6</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_ca_no3"/>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_ca_ca"/>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_ca_gram"/>
<span class="fert-name">KNO3</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_kno3_no3"/>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_kno3_k"/>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_kno3_gram"/>
<span class="fert-name">NH4NO3</span>
<input class="fert-input" type="number" step="0.001" id="fert_nh4no3_nh4"/>
<input class="fert-input" type="number" step="0.001" id="fert_nh4no3_no3"/>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_nh4no3_gram"/>
<span class="fert-name">MgSO4</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_mgso4_mg"/>
<input class="fert-input" type="number" step="0.001" id="fert_mgso4_s"/>
<input class="fert-input" type="number" step="0.001" id="fert_mgso4_gram"/>
<span class="fert-name">KH2PO4</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_kh2po4_p"/>
<input class="fert-input" type="number" step="0.001" id="fert_kh2po4_k"/>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_kh2po4_gram"/>
<span class="fert-name">K2SO4</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_k2so4_k"/>
<span class="fert-cell">-</span>
<span class="fert-cell">-</span>
<input class="fert-input" type="number" step="0.001" id="fert_k2so4_s"/>
<input class="fert-input" type="number" step="0.001" id="fert_k2so4_gram"/>
</div>
</fieldset>
</body>
</html> |