Spaces:
Running
Running
Update nutri_call.html
Browse files- nutri_call.html +277 -259
nutri_call.html
CHANGED
@@ -4,7 +4,6 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<title>Калькулятор удобрений</title>
|
6 |
<style>
|
7 |
-
/* Основной контейнер */
|
8 |
/* Общие стили для всех рамок */
|
9 |
fieldset, .calculation-box {
|
10 |
border: 2px solid #2e8b57;
|
@@ -12,385 +11,404 @@ fieldset, .calculation-box {
|
|
12 |
padding: 1em;
|
13 |
margin-bottom: 20px;
|
14 |
border-radius: 8px;
|
15 |
-
width: 1000px; /* Фиксированная ширина как у верхних блоков */
|
16 |
-
}
|
17 |
-
/* Стили для основной рамки с кнопкой */
|
18 |
-
.calculation-box {
|
19 |
-
width: 1000px; /* Такая же ширина как у верхних блоков */
|
20 |
-
}
|
21 |
-
/* Контейнер для элементов управления */
|
22 |
-
.main-controls {
|
23 |
-
display: flex;
|
24 |
-
flex-direction: column;
|
25 |
-
gap: 15px;
|
26 |
-
min-width: 200px;
|
27 |
-
}
|
28 |
-
/* Стили для группы усиления */
|
29 |
-
.enhancement-block {
|
30 |
-
display: flex;
|
31 |
-
flex-direction: column;
|
32 |
-
gap: 10px;
|
33 |
-
}
|
34 |
-
/* Стили для строк ввода */
|
35 |
-
.enhancement-input {
|
36 |
-
display: flex;
|
37 |
-
align-items: center;
|
38 |
-
gap: 15px; /* Увеличил отступ между надписью и полем ввода */
|
39 |
-
margin-bottom: 8px;
|
40 |
-
}
|
41 |
-
.enhancement-input label {
|
42 |
-
min-width: 120px; /* Фиксированная ширина для всех надписей */
|
43 |
-
text-align: right;
|
44 |
-
padding-right: 10px;
|
45 |
-
}
|
46 |
-
.enhancement-input input[type="number"] {
|
47 |
-
width: 80px;
|
48 |
-
flex-shrink: 0; /* Запрещаем уменьшение ширины поля ввода */
|
49 |
-
}
|
50 |
-
/* Остальные стили остаются без изменений */
|
51 |
-
body {
|
52 |
-
margin: 0 auto;
|
53 |
width: 1000px;
|
54 |
-
|
55 |
-
background-color: #f0f0f0;
|
56 |
-
font-family: Arial, sans-serif;
|
57 |
}
|
|
|
|
|
58 |
h1 {
|
59 |
background-color: #2e8b57;
|
60 |
color: white;
|
61 |
text-align: center;
|
62 |
padding: 1em;
|
63 |
border-radius: 10px;
|
64 |
-
margin
|
65 |
-
width: 1000px;
|
66 |
box-sizing: border-box;
|
67 |
}
|
|
|
68 |
legend {
|
69 |
font-weight: bold;
|
70 |
color: #2e8b57;
|
71 |
padding: 0 10px;
|
72 |
}
|
|
|
|
|
73 |
.main-container {
|
74 |
display: grid;
|
75 |
-
grid-template-columns: 120px repeat(8,
|
76 |
-
gap:
|
77 |
padding: 10px;
|
78 |
}
|
|
|
79 |
.profile-container {
|
80 |
display: contents;
|
81 |
}
|
|
|
82 |
.profile-element {
|
83 |
display: flex;
|
84 |
flex-direction: column;
|
85 |
align-items: center;
|
|
|
86 |
}
|
|
|
87 |
.profile-label {
|
88 |
font-weight: bold;
|
89 |
-
margin-bottom: 5px;
|
90 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
.nitrogen-container {
|
92 |
grid-column: 1 / -1;
|
93 |
display: flex;
|
94 |
-
gap:
|
95 |
padding-left: 120px;
|
96 |
-
margin-top:
|
97 |
}
|
|
|
98 |
.nitrogen-group {
|
99 |
display: flex;
|
100 |
align-items: center;
|
101 |
-
gap:
|
|
|
|
|
|
|
|
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
.fertilisers-container {
|
104 |
display: flex;
|
105 |
flex-direction: column;
|
|
|
106 |
}
|
|
|
107 |
.fert-row {
|
108 |
display: flex;
|
109 |
align-items: center;
|
110 |
-
|
111 |
}
|
|
|
112 |
.fert-header {
|
113 |
font-weight: bold;
|
114 |
text-align: center;
|
115 |
-
|
116 |
padding: 5px;
|
117 |
}
|
|
|
118 |
.fert-name {
|
119 |
font-weight: bold;
|
120 |
-
|
121 |
text-align: left;
|
122 |
-
padding-right: 10px;
|
123 |
}
|
|
|
124 |
.fert-cell {
|
125 |
text-align: center;
|
126 |
-
|
127 |
padding: 5px;
|
128 |
}
|
|
|
129 |
.fert-input {
|
130 |
-
width:
|
131 |
-
|
|
|
|
|
|
|
132 |
}
|
|
|
|
|
133 |
.calculation-container {
|
134 |
display: flex;
|
135 |
-
gap:
|
136 |
align-items: flex-start;
|
137 |
}
|
138 |
-
|
139 |
-
font-weight: bold;
|
140 |
-
color: #2e8b57;
|
141 |
-
margin-bottom: 5px;
|
142 |
-
}
|
143 |
-
.enhancement-controls {
|
144 |
-
display: flex;
|
145 |
-
flex-direction: column;
|
146 |
-
gap: 8px;
|
147 |
-
}
|
148 |
-
#calculate-btn {
|
149 |
-
background-color: #2e8b57;
|
150 |
-
color: white;
|
151 |
-
border: none;
|
152 |
-
padding: 8px 16px;
|
153 |
-
font-size: 16px;
|
154 |
-
border-radius: 5px;
|
155 |
-
cursor: pointer;
|
156 |
-
transition: background-color 0.3s;
|
157 |
-
margin-bottom: 5px;
|
158 |
-
}
|
159 |
-
#calculate-btn:hover {
|
160 |
-
background-color: #3cb371;
|
161 |
-
}
|
162 |
.compensation-section {
|
163 |
display: flex;
|
164 |
flex-direction: column;
|
165 |
-
gap:
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
}
|
|
|
167 |
.compensation-weights {
|
168 |
display: flex;
|
169 |
flex-direction: column;
|
170 |
-
gap:
|
171 |
}
|
|
|
172 |
.weight-input-group {
|
173 |
display: flex;
|
174 |
align-items: center;
|
175 |
-
gap:
|
176 |
}
|
|
|
177 |
.weight-input-group label {
|
178 |
-
|
179 |
text-align: right;
|
|
|
180 |
}
|
|
|
181 |
.weight-input-group input {
|
182 |
-
width:
|
183 |
-
padding:
|
184 |
border: 1px solid #ccc;
|
185 |
border-radius: 4px;
|
186 |
}
|
|
|
187 |
.input-column {
|
188 |
display: flex;
|
189 |
flex-direction: column;
|
190 |
-
gap:
|
|
|
191 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
.input-group {
|
193 |
display: flex;
|
194 |
align-items: center;
|
195 |
-
gap:
|
196 |
}
|
|
|
197 |
.input-group label {
|
198 |
-
|
199 |
text-align: right;
|
|
|
200 |
}
|
|
|
201 |
.input-group input {
|
202 |
-
width:
|
203 |
-
padding:
|
204 |
border: 1px solid #ccc;
|
205 |
border-radius: 4px;
|
206 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
</style>
|
208 |
-
</head>
|
209 |
|
210 |
<body>
|
211 |
-
|
212 |
<h1>Калькулятор удобрений</h1>
|
213 |
|
214 |
-
|
215 |
-
<
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
</div>
|
224 |
-
|
225 |
-
|
226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
</div>
|
228 |
-
|
229 |
-
|
230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
</div>
|
232 |
-
|
233 |
-
|
234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
</div>
|
236 |
-
|
237 |
-
|
238 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
</div>
|
240 |
-
|
241 |
-
|
242 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
</div>
|
244 |
-
|
245 |
-
|
246 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
</div>
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
<
|
254 |
-
|
|
|
|
|
|
|
|
|
255 |
</div>
|
256 |
-
|
257 |
-
|
258 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
</div>
|
260 |
</div>
|
261 |
-
</
|
262 |
-
</fieldset>
|
263 |
-
|
264 |
-
<fieldset>
|
265 |
-
<legend>Составы солей</legend>
|
266 |
-
<div class="fertilisers-container">
|
267 |
-
<!-- Заголовки -->
|
268 |
-
<div class="fert-row">
|
269 |
-
<span class="fert-name">Удобрение</span>
|
270 |
-
<span class="fert-header">NH4</span>
|
271 |
-
<span class="fert-header">NO3</span>
|
272 |
-
<span class="fert-header">P</span>
|
273 |
-
<span class="fert-header">K</span>
|
274 |
-
<span class="fert-header">Ca</span>
|
275 |
-
<span class="fert-header">Mg</span>
|
276 |
-
<span class="fert-header">S</span>
|
277 |
-
<span class="fert-header">Грамм</span>
|
278 |
-
</div>
|
279 |
-
|
280 |
-
<!-- Строки с удобрениями -->
|
281 |
-
<div class="fert-row">
|
282 |
-
<span class="fert-name">CaN2O6</span>
|
283 |
-
<span class="fert-cell">-</span>
|
284 |
-
<input class="fert-input" type="number" value="11.863" step="0.001" id="fert_ca_no3"/>
|
285 |
-
<span class="fert-cell">-</span>
|
286 |
-
<span class="fert-cell">-</span>
|
287 |
-
<input class="fert-input" type="number" value="16.972" step="0.001" id="fert_ca_ca"/>
|
288 |
-
<span class="fert-cell">-</span>
|
289 |
-
<span class="fert-cell">-</span>
|
290 |
-
<input class="fert-input" type="number" step="0.001" id="calcium_nitrate"/>
|
291 |
-
</div>
|
292 |
-
|
293 |
-
<div class="fert-row">
|
294 |
-
<span class="fert-name">KNO3</span>
|
295 |
-
<span class="fert-cell">-</span>
|
296 |
-
<input class="fert-input" type="number" value="13.854" step="0.001" id="fert_kno3_no3"/>
|
297 |
-
<span class="fert-cell">-</span>
|
298 |
-
<input class="fert-input" type="number" value="36.672" step="0.001" id="fert_kno3_k"/>
|
299 |
-
<span class="fert-cell">-</span>
|
300 |
-
<span class="fert-cell">-</span>
|
301 |
-
<span class="fert-cell">-</span>
|
302 |
-
<input class="fert-input" type="number" step="0.001" id="potassium_nitrate"/>
|
303 |
-
</div>
|
304 |
-
|
305 |
-
<div class="fert-row">
|
306 |
-
<span class="fert-name">NH4NO3</span>
|
307 |
-
<input class="fert-input" type="number" value="17.499" step="0.001" id="fert_nh4no3_nh4"/>
|
308 |
-
<input class="fert-input" type="number" value="17.499" step="0.001" id="fert_nh4no3_no3"/>
|
309 |
-
<span class="fert-cell">-</span>
|
310 |
-
<span class="fert-cell">-</span>
|
311 |
-
<span class="fert-cell">-</span>
|
312 |
-
<span class="fert-cell">-</span>
|
313 |
-
<span class="fert-cell">-</span>
|
314 |
-
<input class="fert-input" type="number" step="0.001" id="ammonium_nitrate"/>
|
315 |
-
</div>
|
316 |
-
|
317 |
-
<div class="fert-row">
|
318 |
-
<span class="fert-name">MgSO4</span>
|
319 |
-
<span class="fert-cell">-</span>
|
320 |
-
<span class="fert-cell">-</span>
|
321 |
-
<span class="fert-cell">-</span>
|
322 |
-
<span class="fert-cell">-</span>
|
323 |
-
<span class="fert-cell">-</span>
|
324 |
-
<input class="fert-input" type="number" value="10.22" step="0.001" id="fert_mgso4_mg"/>
|
325 |
-
<input class="fert-input" type="number" value="13.483" step="0.001" id="fert_mgso4_s"/>
|
326 |
-
<input class="fert-input" type="number" step="0.001" id="magnesium_sulfate"/>
|
327 |
-
</div>
|
328 |
-
|
329 |
-
<div class="fert-row">
|
330 |
-
<span class="fert-name">KH2PO4</span>
|
331 |
-
<span class="fert-cell">-</span>
|
332 |
-
<span class="fert-cell">-</span>
|
333 |
-
<input class="fert-input" type="number" value="22.761" step="0.001" id="fert_kh2po4_p"/>
|
334 |
-
<input class="fert-input" type="number" value="28.731" step="0.001" id="fert_kh2po4_k"/>
|
335 |
-
<span class="fert-cell">-</span>
|
336 |
-
<span class="fert-cell">-</span>
|
337 |
-
<span class="fert-cell">-</span>
|
338 |
-
<input class="fert-input" type="number" step="0.001" id="monopotassium_phosphate"/>
|
339 |
-
</div>
|
340 |
-
|
341 |
-
<div class="fert-row">
|
342 |
-
<span class="fert-name">K2SO4</span>
|
343 |
-
<span class="fert-cell">-</span>
|
344 |
-
<span class="fert-cell">-</span>
|
345 |
-
<span class="fert-cell">-</span>
|
346 |
-
<input class="fert-input" type="number" value="44.874" step="0.001" id="fert_k2so4_k"/>
|
347 |
-
<span class="fert-cell">-</span>
|
348 |
-
<span class="fert-cell">-</span>
|
349 |
-
<input class="fert-input" type="number" value="18.401" step="0.001" id="fert_k2so4_s"/>
|
350 |
-
<input class="fert-input" type="number"" value="0.0000000" step="0.001" id="potassium_sulfate"/>
|
351 |
-
</div>
|
352 |
-
</div>
|
353 |
-
</fieldset>
|
354 |
|
355 |
-
|
356 |
-
<
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
</div>
|
369 |
-
|
370 |
-
|
371 |
-
|
|
|
|
|
|
|
|
|
372 |
</div>
|
373 |
-
<div class="
|
374 |
-
<label for="
|
375 |
-
<input type="number" id="
|
376 |
</div>
|
377 |
</div>
|
378 |
</div>
|
379 |
-
|
380 |
-
<div class="input-column">
|
381 |
-
<button id="calculate-btn">Рассчитать</button>
|
382 |
-
<div class="input-group">
|
383 |
-
<label for="liters-input">Литры:</label>
|
384 |
-
<input type="number" id="liters-input" value="100" min="1" step="1">
|
385 |
-
</div>
|
386 |
-
<div class="input-group">
|
387 |
-
<label for="rounding-precision">Точность:</label>
|
388 |
-
<input type="number" id="rounding-precision" value="3" min="0" max="3" step="1">
|
389 |
-
</div>
|
390 |
-
</div>
|
391 |
-
</div>
|
392 |
-
</fieldset>
|
393 |
-
|
394 |
|
395 |
|
396 |
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<title>Калькулятор удобрений</title>
|
6 |
<style>
|
|
|
7 |
/* Общие стили для всех рамок */
|
8 |
fieldset, .calculation-box {
|
9 |
border: 2px solid #2e8b57;
|
|
|
11 |
padding: 1em;
|
12 |
margin-bottom: 20px;
|
13 |
border-radius: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
width: 1000px;
|
15 |
+
box-sizing: border-box;
|
|
|
|
|
16 |
}
|
17 |
+
|
18 |
+
/* Стили для заголовка */
|
19 |
h1 {
|
20 |
background-color: #2e8b57;
|
21 |
color: white;
|
22 |
text-align: center;
|
23 |
padding: 1em;
|
24 |
border-radius: 10px;
|
25 |
+
margin: 0 auto 20px;
|
26 |
+
width: 1000px;
|
27 |
box-sizing: border-box;
|
28 |
}
|
29 |
+
|
30 |
legend {
|
31 |
font-weight: bold;
|
32 |
color: #2e8b57;
|
33 |
padding: 0 10px;
|
34 |
}
|
35 |
+
|
36 |
+
/* Стили для основного контейнера профиля */
|
37 |
.main-container {
|
38 |
display: grid;
|
39 |
+
grid-template-columns: 120px repeat(8, 110px);
|
40 |
+
gap: 15px;
|
41 |
padding: 10px;
|
42 |
}
|
43 |
+
|
44 |
.profile-container {
|
45 |
display: contents;
|
46 |
}
|
47 |
+
|
48 |
.profile-element {
|
49 |
display: flex;
|
50 |
flex-direction: column;
|
51 |
align-items: center;
|
52 |
+
gap: 8px;
|
53 |
}
|
54 |
+
|
55 |
.profile-label {
|
56 |
font-weight: bold;
|
|
|
57 |
}
|
58 |
+
|
59 |
+
.profile-element input {
|
60 |
+
width: 100%;
|
61 |
+
padding: 8px;
|
62 |
+
border: 1px solid #ccc;
|
63 |
+
border-radius: 4px;
|
64 |
+
text-align: center;
|
65 |
+
}
|
66 |
+
|
67 |
+
/* Стили для азотных элементов */
|
68 |
.nitrogen-container {
|
69 |
grid-column: 1 / -1;
|
70 |
display: flex;
|
71 |
+
gap: 30px;
|
72 |
padding-left: 120px;
|
73 |
+
margin-top: 15px;
|
74 |
}
|
75 |
+
|
76 |
.nitrogen-group {
|
77 |
display: flex;
|
78 |
align-items: center;
|
79 |
+
gap: 10px;
|
80 |
+
}
|
81 |
+
|
82 |
+
.nitrogen-group label {
|
83 |
+
font-weight: bold;
|
84 |
}
|
85 |
+
|
86 |
+
.nitrogen-group input {
|
87 |
+
width: 80px;
|
88 |
+
padding: 8px;
|
89 |
+
border: 1px solid #ccc;
|
90 |
+
border-radius: 4px;
|
91 |
+
}
|
92 |
+
|
93 |
+
/* Стили для таблицы удобрений */
|
94 |
.fertilisers-container {
|
95 |
display: flex;
|
96 |
flex-direction: column;
|
97 |
+
gap: 10px;
|
98 |
}
|
99 |
+
|
100 |
.fert-row {
|
101 |
display: flex;
|
102 |
align-items: center;
|
103 |
+
gap: 10px;
|
104 |
}
|
105 |
+
|
106 |
.fert-header {
|
107 |
font-weight: bold;
|
108 |
text-align: center;
|
109 |
+
width: 110px;
|
110 |
padding: 5px;
|
111 |
}
|
112 |
+
|
113 |
.fert-name {
|
114 |
font-weight: bold;
|
115 |
+
width: 120px;
|
116 |
text-align: left;
|
|
|
117 |
}
|
118 |
+
|
119 |
.fert-cell {
|
120 |
text-align: center;
|
121 |
+
width: 110px;
|
122 |
padding: 5px;
|
123 |
}
|
124 |
+
|
125 |
.fert-input {
|
126 |
+
width: 100px;
|
127 |
+
padding: 8px;
|
128 |
+
border: 1px solid #ccc;
|
129 |
+
border-radius: 4px;
|
130 |
+
text-align: center;
|
131 |
}
|
132 |
+
|
133 |
+
/* Стили для блока расчета */
|
134 |
.calculation-container {
|
135 |
display: flex;
|
136 |
+
gap: 50px;
|
137 |
align-items: flex-start;
|
138 |
}
|
139 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
.compensation-section {
|
141 |
display: flex;
|
142 |
flex-direction: column;
|
143 |
+
gap: 15px;
|
144 |
+
}
|
145 |
+
|
146 |
+
.enhancement-title {
|
147 |
+
font-weight: bold;
|
148 |
+
color: #2e8b57;
|
149 |
+
font-size: 1.1em;
|
150 |
}
|
151 |
+
|
152 |
.compensation-weights {
|
153 |
display: flex;
|
154 |
flex-direction: column;
|
155 |
+
gap: 12px;
|
156 |
}
|
157 |
+
|
158 |
.weight-input-group {
|
159 |
display: flex;
|
160 |
align-items: center;
|
161 |
+
gap: 15px;
|
162 |
}
|
163 |
+
|
164 |
.weight-input-group label {
|
165 |
+
width: 100px;
|
166 |
text-align: right;
|
167 |
+
font-weight: bold;
|
168 |
}
|
169 |
+
|
170 |
.weight-input-group input {
|
171 |
+
width: 100px;
|
172 |
+
padding: 8px;
|
173 |
border: 1px solid #ccc;
|
174 |
border-radius: 4px;
|
175 |
}
|
176 |
+
|
177 |
.input-column {
|
178 |
display: flex;
|
179 |
flex-direction: column;
|
180 |
+
gap: 15px;
|
181 |
+
margin-top: 10px;
|
182 |
}
|
183 |
+
|
184 |
+
#calculate-btn {
|
185 |
+
background-color: #2e8b57;
|
186 |
+
color: white;
|
187 |
+
border: none;
|
188 |
+
padding: 10px 20px;
|
189 |
+
font-size: 16px;
|
190 |
+
border-radius: 5px;
|
191 |
+
cursor: pointer;
|
192 |
+
transition: background-color 0.3s;
|
193 |
+
font-weight: bold;
|
194 |
+
}
|
195 |
+
|
196 |
+
#calculate-btn:hover {
|
197 |
+
background-color: #3cb371;
|
198 |
+
}
|
199 |
+
|
200 |
.input-group {
|
201 |
display: flex;
|
202 |
align-items: center;
|
203 |
+
gap: 15px;
|
204 |
}
|
205 |
+
|
206 |
.input-group label {
|
207 |
+
width: 100px;
|
208 |
text-align: right;
|
209 |
+
font-weight: bold;
|
210 |
}
|
211 |
+
|
212 |
.input-group input {
|
213 |
+
width: 100px;
|
214 |
+
padding: 8px;
|
215 |
border: 1px solid #ccc;
|
216 |
border-radius: 4px;
|
217 |
}
|
218 |
+
|
219 |
+
/* Общие стили страницы */
|
220 |
+
body {
|
221 |
+
margin: 0 auto;
|
222 |
+
width: 1000px;
|
223 |
+
padding: 1em;
|
224 |
+
background-color: #f0f0f0;
|
225 |
+
font-family: Arial, sans-serif;
|
226 |
+
display: flex;
|
227 |
+
flex-direction: column;
|
228 |
+
align-items: center;
|
229 |
+
}
|
230 |
</style>
|
|
|
231 |
|
232 |
<body>
|
|
|
233 |
<h1>Калькулятор удобрений</h1>
|
234 |
|
235 |
+
<fieldset>
|
236 |
+
<legend>Макропрофиль в мг/л (ppm)</legend>
|
237 |
+
<div class="main-container">
|
238 |
+
<!-- Основные элементы -->
|
239 |
+
<div class="profile-container">
|
240 |
+
<div class="profile-element" style="grid-column: 2">
|
241 |
+
<span class="profile-label">N</span>
|
242 |
+
<input id="profile_n" type="number" value="125.000" step="0.001"/>
|
243 |
+
</div>
|
244 |
+
<div class="profile-element" style="grid-column: 3">
|
245 |
+
<span class="profile-label">P</span>
|
246 |
+
<input id="profile_p" type="number" value="31.000" step="0.001"/>
|
247 |
+
</div>
|
248 |
+
<div class="profile-element" style="grid-column: 4">
|
249 |
+
<span class="profile-label">K</span>
|
250 |
+
<input id="profile_k" type="number" value="210.000" step="0.001"/>
|
251 |
+
</div>
|
252 |
+
<div class="profile-element" style="grid-column: 5">
|
253 |
+
<span class="profile-label">Ca</span>
|
254 |
+
<input id="profile_ca" type="number" value="84.000" step="0.001"/>
|
255 |
+
</div>
|
256 |
+
<div class="profile-element" style="grid-column: 6">
|
257 |
+
<span class="profile-label">Mg</span>
|
258 |
+
<input id="profile_mg" type="number" value="24.000" step="0.001"/>
|
259 |
+
</div>
|
260 |
+
<div class="profile-element" style="grid-column: 7">
|
261 |
+
<span class="profile-label">S</span>
|
262 |
+
<input id="profile_s" type="number" value="56.439" step="0.001"/>
|
263 |
+
</div>
|
264 |
+
<div class="profile-element" style="grid-column: 8">
|
265 |
+
<span class="profile-label">EC</span>
|
266 |
+
<input id="profile_ec" type="number" value="0.0" step="0.001"/>
|
267 |
+
</div>
|
268 |
</div>
|
269 |
+
|
270 |
+
<!-- Азотные элементы -->
|
271 |
+
<div class="nitrogen-container">
|
272 |
+
<div class="nitrogen-group">
|
273 |
+
<label for="profile_nh4">NH4:</label>
|
274 |
+
<input id="profile_nh4" type="number" value="1.0" step="1.0" readonly style="background-color: #f0f0f0; color: #666;">
|
275 |
+
</div>
|
276 |
+
<div class="nitrogen-group">
|
277 |
+
<label for="profile_no3">NO3:</label>
|
278 |
+
<input id="profile_no3" type="number" value="10.0" step="0.01" min="5" max="10.001"/>
|
279 |
+
</div>
|
280 |
</div>
|
281 |
+
</div>
|
282 |
+
</fieldset>
|
283 |
+
|
284 |
+
<fieldset>
|
285 |
+
<legend>Составы солей</legend>
|
286 |
+
<div class="fertilisers-container">
|
287 |
+
<!-- Заголовки -->
|
288 |
+
<div class="fert-row">
|
289 |
+
<span class="fert-name">Удобрение</span>
|
290 |
+
<span class="fert-header">NH4</span>
|
291 |
+
<span class="fert-header">NO3</span>
|
292 |
+
<span class="fert-header">P</span>
|
293 |
+
<span class="fert-header">K</span>
|
294 |
+
<span class="fert-header">Ca</span>
|
295 |
+
<span class="fert-header">Mg</span>
|
296 |
+
<span class="fert-header">S</span>
|
297 |
+
<span class="fert-header">Грамм</span>
|
298 |
</div>
|
299 |
+
|
300 |
+
<!-- Строки с удобрениями -->
|
301 |
+
<div class="fert-row">
|
302 |
+
<span class="fert-name">CaN2O6</span>
|
303 |
+
<span class="fert-cell">-</span>
|
304 |
+
<input class="fert-input" type="number" value="11.863" step="0.001" id="fert_ca_no3"/>
|
305 |
+
<span class="fert-cell">-</span>
|
306 |
+
<span class="fert-cell">-</span>
|
307 |
+
<input class="fert-input" type="number" value="16.972" step="0.001" id="fert_ca_ca"/>
|
308 |
+
<span class="fert-cell">-</span>
|
309 |
+
<span class="fert-cell">-</span>
|
310 |
+
<input class="fert-input" type="number" step="0.001" id="calcium_nitrate"/>
|
311 |
</div>
|
312 |
+
|
313 |
+
<div class="fert-row">
|
314 |
+
<span class="fert-name">KNO3</span>
|
315 |
+
<span class="fert-cell">-</span>
|
316 |
+
<input class="fert-input" type="number" value="13.854" step="0.001" id="fert_kno3_no3"/>
|
317 |
+
<span class="fert-cell">-</span>
|
318 |
+
<input class="fert-input" type="number" value="36.672" step="0.001" id="fert_kno3_k"/>
|
319 |
+
<span class="fert-cell">-</span>
|
320 |
+
<span class="fert-cell">-</span>
|
321 |
+
<span class="fert-cell">-</span>
|
322 |
+
<input class="fert-input" type="number" step="0.001" id="potassium_nitrate"/>
|
323 |
</div>
|
324 |
+
|
325 |
+
<div class="fert-row">
|
326 |
+
<span class="fert-name">NH4NO3</span>
|
327 |
+
<input class="fert-input" type="number" value="17.499" step="0.001" id="fert_nh4no3_nh4"/>
|
328 |
+
<input class="fert-input" type="number" value="17.499" step="0.001" id="fert_nh4no3_no3"/>
|
329 |
+
<span class="fert-cell">-</span>
|
330 |
+
<span class="fert-cell">-</span>
|
331 |
+
<span class="fert-cell">-</span>
|
332 |
+
<span class="fert-cell">-</span>
|
333 |
+
<span class="fert-cell">-</span>
|
334 |
+
<input class="fert-input" type="number" step="0.001" id="ammonium_nitrate"/>
|
335 |
</div>
|
336 |
+
|
337 |
+
<div class="fert-row">
|
338 |
+
<span class="fert-name">MgSO4</span>
|
339 |
+
<span class="fert-cell">-</span>
|
340 |
+
<span class="fert-cell">-</span>
|
341 |
+
<span class="fert-cell">-</span>
|
342 |
+
<span class="fert-cell">-</span>
|
343 |
+
<span class="fert-cell">-</span>
|
344 |
+
<input class="fert-input" type="number" value="10.22" step="0.001" id="fert_mgso4_mg"/>
|
345 |
+
<input class="fert-input" type="number" value="13.483" step="0.001" id="fert_mgso4_s"/>
|
346 |
+
<input class="fert-input" type="number" step="0.001" id="magnesium_sulfate"/>
|
347 |
</div>
|
348 |
+
|
349 |
+
<div class="fert-row">
|
350 |
+
<span class="fert-name">KH2PO4</span>
|
351 |
+
<span class="fert-cell">-</span>
|
352 |
+
<span class="fert-cell">-</span>
|
353 |
+
<input class="fert-input" type="number" value="22.761" step="0.001" id="fert_kh2po4_p"/>
|
354 |
+
<input class="fert-input" type="number" value="28.731" step="0.001" id="fert_kh2po4_k"/>
|
355 |
+
<span class="fert-cell">-</span>
|
356 |
+
<span class="fert-cell">-</span>
|
357 |
+
<span class="fert-cell">-</span>
|
358 |
+
<input class="fert-input" type="number" step="0.001" id="monopotassium_phosphate"/>
|
359 |
</div>
|
360 |
+
|
361 |
+
<div class="fert-row">
|
362 |
+
<span class="fert-name">K2SO4</span>
|
363 |
+
<span class="fert-cell">-</span>
|
364 |
+
<span class="fert-cell">-</span>
|
365 |
+
<span class="fert-cell">-</span>
|
366 |
+
<input class="fert-input" type="number" value="44.874" step="0.001" id="fert_k2so4_k"/>
|
367 |
+
<span class="fert-cell">-</span>
|
368 |
+
<span class="fert-cell">-</span>
|
369 |
+
<input class="fert-input" type="number" value="18.401" step="0.001" id="fert_k2so4_s"/>
|
370 |
+
<input class="fert-input" type="number"" value="0.0000000" step="0.001" id="potassium_sulfate"/>
|
371 |
</div>
|
372 |
</div>
|
373 |
+
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
|
375 |
+
<fieldset class="calculation-box">
|
376 |
+
<legend>Расчёт удобрений</legend>
|
377 |
+
<div class="calculation-container">
|
378 |
+
<!-- Блок с заголовком "Усиление" -->
|
379 |
+
<div class="compensation-section">
|
380 |
+
<div class="enhancement-title">Усиление:</div>
|
381 |
+
|
382 |
+
<!-- Веса компенсации -->
|
383 |
+
<div class="compensation-weights">
|
384 |
+
<div class="weight-input-group">
|
385 |
+
<label for="weight-k2so4">K₂SO₄:</label>
|
386 |
+
<input type="number" id="weight-k2so4" value="0.23" step="0.01" min="-1" max="1">
|
387 |
+
</div>
|
388 |
+
<div class="weight-input-group">
|
389 |
+
<label for="weight-mgso4">MgSO₄:</label>
|
390 |
+
<input type="number" id="weight-mgso4" value="-0.10" step="0.01" min="-1" max="1">
|
391 |
+
</div>
|
392 |
+
<div class="weight-input-group">
|
393 |
+
<label for="weight-kh2po4">KH₂PO₄:</label>
|
394 |
+
<input type="number" id="weight-kh2po4" value="0.14" step="0.01" min="-1" max="1">
|
395 |
+
</div>
|
396 |
</div>
|
397 |
+
</div>
|
398 |
+
|
399 |
+
<div class="input-column">
|
400 |
+
<button id="calculate-btn">Рассчитать</button>
|
401 |
+
<div class="input-group">
|
402 |
+
<label for="liters-input">Литры:</label>
|
403 |
+
<input type="number" id="liters-input" value="100" min="1" step="1">
|
404 |
</div>
|
405 |
+
<div class="input-group">
|
406 |
+
<label for="rounding-precision">Точность:</label>
|
407 |
+
<input type="number" id="rounding-precision" value="3" min="0" max="3" step="1">
|
408 |
</div>
|
409 |
</div>
|
410 |
</div>
|
411 |
+
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
|
413 |
|
414 |
|