Spaces:
Sleeping
Sleeping
Update nutri_call.html
Browse files- nutri_call.html +48 -45
nutri_call.html
CHANGED
@@ -14,12 +14,10 @@ fieldset, .calculation-box {
|
|
14 |
border-radius: 8px;
|
15 |
width: 1000px; /* Фиксированная ширина как у верхних блоков */
|
16 |
}
|
17 |
-
|
18 |
/* Стили для основной рамки с кнопкой */
|
19 |
.calculation-box {
|
20 |
width: 1000px; /* Такая же ширина как у верхних блоков */
|
21 |
}
|
22 |
-
|
23 |
/* Контейнер для элементов управления */
|
24 |
.main-controls {
|
25 |
display: flex;
|
@@ -27,14 +25,12 @@ fieldset, .calculation-box {
|
|
27 |
gap: 15px;
|
28 |
min-width: 200px;
|
29 |
}
|
30 |
-
|
31 |
/* Стили для группы усиления */
|
32 |
.enhancement-block {
|
33 |
display: flex;
|
34 |
flex-direction: column;
|
35 |
gap: 10px;
|
36 |
}
|
37 |
-
|
38 |
/* Стили для строк ввода */
|
39 |
.enhancement-input {
|
40 |
display: flex;
|
@@ -42,18 +38,15 @@ fieldset, .calculation-box {
|
|
42 |
gap: 15px; /* Увеличил отступ между надписью и полем ввода */
|
43 |
margin-bottom: 8px;
|
44 |
}
|
45 |
-
|
46 |
.enhancement-input label {
|
47 |
min-width: 120px; /* Фиксированная ширина для всех надписей */
|
48 |
text-align: right;
|
49 |
padding-right: 10px;
|
50 |
}
|
51 |
-
|
52 |
.enhancement-input input[type="number"] {
|
53 |
width: 80px;
|
54 |
flex-shrink: 0; /* Запрещаем уменьшение ширины поля ввода */
|
55 |
}
|
56 |
-
|
57 |
/* Остальные стили остаются без изменений */
|
58 |
body {
|
59 |
margin: 0 auto;
|
@@ -62,7 +55,6 @@ body {
|
|
62 |
background-color: #f0f0f0;
|
63 |
font-family: Arial, sans-serif;
|
64 |
}
|
65 |
-
|
66 |
h1 {
|
67 |
background-color: #2e8b57;
|
68 |
color: white;
|
@@ -70,36 +62,32 @@ h1 {
|
|
70 |
padding: 1em;
|
71 |
border-radius: 10px;
|
72 |
margin-bottom: 20px;
|
|
|
|
|
73 |
}
|
74 |
-
|
75 |
legend {
|
76 |
font-weight: bold;
|
77 |
color: #2e8b57;
|
78 |
padding: 0 10px;
|
79 |
}
|
80 |
-
|
81 |
.main-container {
|
82 |
display: grid;
|
83 |
grid-template-columns: 120px repeat(8, 90px);
|
84 |
gap: 10px;
|
85 |
padding: 10px;
|
86 |
}
|
87 |
-
|
88 |
.profile-container {
|
89 |
display: contents;
|
90 |
}
|
91 |
-
|
92 |
.profile-element {
|
93 |
display: flex;
|
94 |
flex-direction: column;
|
95 |
align-items: center;
|
96 |
}
|
97 |
-
|
98 |
.profile-label {
|
99 |
font-weight: bold;
|
100 |
margin-bottom: 5px;
|
101 |
}
|
102 |
-
|
103 |
.nitrogen-container {
|
104 |
grid-column: 1 / -1;
|
105 |
display: flex;
|
@@ -107,67 +95,56 @@ legend {
|
|
107 |
padding-left: 120px;
|
108 |
margin-top: 10px;
|
109 |
}
|
110 |
-
|
111 |
.nitrogen-group {
|
112 |
display: flex;
|
113 |
align-items: center;
|
114 |
gap: 5px;
|
115 |
}
|
116 |
-
|
117 |
.fertilisers-container {
|
118 |
display: flex;
|
119 |
flex-direction: column;
|
120 |
}
|
121 |
-
|
122 |
.fert-row {
|
123 |
display: flex;
|
124 |
align-items: center;
|
125 |
margin-bottom: 10px;
|
126 |
}
|
127 |
-
|
128 |
.fert-header {
|
129 |
font-weight: bold;
|
130 |
text-align: center;
|
131 |
min-width: 90px;
|
132 |
padding: 5px;
|
133 |
}
|
134 |
-
|
135 |
.fert-name {
|
136 |
font-weight: bold;
|
137 |
min-width: 120px;
|
138 |
text-align: left;
|
139 |
padding-right: 10px;
|
140 |
}
|
141 |
-
|
142 |
.fert-cell {
|
143 |
text-align: center;
|
144 |
min-width: 90px;
|
145 |
padding: 5px;
|
146 |
}
|
147 |
-
|
148 |
.fert-input {
|
149 |
width: 80px;
|
150 |
margin: 0 5px;
|
151 |
}
|
152 |
-
|
153 |
.calculation-container {
|
154 |
display: flex;
|
155 |
gap: 30px;
|
156 |
align-items: flex-start;
|
157 |
}
|
158 |
-
|
159 |
.enhancement-title {
|
160 |
font-weight: bold;
|
161 |
color: #2e8b57;
|
162 |
margin-bottom: 5px;
|
163 |
}
|
164 |
-
|
165 |
.enhancement-controls {
|
166 |
display: flex;
|
167 |
flex-direction: column;
|
168 |
gap: 8px;
|
169 |
}
|
170 |
-
|
171 |
#calculate-btn {
|
172 |
background-color: #2e8b57;
|
173 |
color: white;
|
@@ -179,22 +156,49 @@ legend {
|
|
179 |
transition: background-color 0.3s;
|
180 |
margin-bottom: 5px;
|
181 |
}
|
182 |
-
|
183 |
#calculate-btn:hover {
|
184 |
background-color: #3cb371;
|
185 |
}
|
186 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
.input-group {
|
188 |
display: flex;
|
189 |
align-items: center;
|
190 |
-
gap:
|
191 |
}
|
192 |
-
|
193 |
.input-group label {
|
194 |
-
min-width:
|
|
|
195 |
}
|
196 |
-
|
197 |
-
input[type="number"] {
|
198 |
width: 80px;
|
199 |
padding: 5px;
|
200 |
border: 1px solid #ccc;
|
@@ -352,16 +356,14 @@ input[type="number"] {
|
|
352 |
<fieldset class="calculation-box">
|
353 |
<legend>Расчёт удобрений</legend>
|
354 |
<div class="calculation-container">
|
355 |
-
|
356 |
-
|
357 |
<!-- Блок с заголовком "Усиление" -->
|
358 |
<div class="compensation-section">
|
359 |
-
<div class="
|
360 |
|
361 |
<!-- Веса компенсации -->
|
362 |
<div class="compensation-weights">
|
363 |
<div class="weight-input-group">
|
364 |
-
<label for="weight-k2so4">K₂SO
|
365 |
<input type="number" id="weight-k2so4" value="0.23" step="0.01" min="-1" max="1">
|
366 |
</div>
|
367 |
<div class="weight-input-group">
|
@@ -374,22 +376,23 @@ input[type="number"] {
|
|
374 |
</div>
|
375 |
</div>
|
376 |
</div>
|
377 |
-
<button id="calculate-btn">Рассчитать</button>
|
378 |
-
<div class="input-group">
|
379 |
-
<label class="calculation-label">Литры:</label>
|
380 |
-
<input type="number" id="liters-input" value="100" min="1" step="1">
|
381 |
-
</div>
|
382 |
|
383 |
-
<div class="input-
|
384 |
-
<
|
385 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
</div>
|
387 |
</div>
|
388 |
</fieldset>
|
389 |
|
390 |
|
391 |
|
392 |
-
|
393 |
<script>
|
394 |
let call_data;
|
395 |
|
|
|
14 |
border-radius: 8px;
|
15 |
width: 1000px; /* Фиксированная ширина как у верхних блоков */
|
16 |
}
|
|
|
17 |
/* Стили для основной рамки с кнопкой */
|
18 |
.calculation-box {
|
19 |
width: 1000px; /* Такая же ширина как у верхних блоков */
|
20 |
}
|
|
|
21 |
/* Контейнер для элементов управления */
|
22 |
.main-controls {
|
23 |
display: flex;
|
|
|
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;
|
|
|
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;
|
|
|
55 |
background-color: #f0f0f0;
|
56 |
font-family: Arial, sans-serif;
|
57 |
}
|
|
|
58 |
h1 {
|
59 |
background-color: #2e8b57;
|
60 |
color: white;
|
|
|
62 |
padding: 1em;
|
63 |
border-radius: 10px;
|
64 |
margin-bottom: 20px;
|
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, 90px);
|
76 |
gap: 10px;
|
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;
|
|
|
95 |
padding-left: 120px;
|
96 |
margin-top: 10px;
|
97 |
}
|
|
|
98 |
.nitrogen-group {
|
99 |
display: flex;
|
100 |
align-items: center;
|
101 |
gap: 5px;
|
102 |
}
|
|
|
103 |
.fertilisers-container {
|
104 |
display: flex;
|
105 |
flex-direction: column;
|
106 |
}
|
|
|
107 |
.fert-row {
|
108 |
display: flex;
|
109 |
align-items: center;
|
110 |
margin-bottom: 10px;
|
111 |
}
|
|
|
112 |
.fert-header {
|
113 |
font-weight: bold;
|
114 |
text-align: center;
|
115 |
min-width: 90px;
|
116 |
padding: 5px;
|
117 |
}
|
|
|
118 |
.fert-name {
|
119 |
font-weight: bold;
|
120 |
min-width: 120px;
|
121 |
text-align: left;
|
122 |
padding-right: 10px;
|
123 |
}
|
|
|
124 |
.fert-cell {
|
125 |
text-align: center;
|
126 |
min-width: 90px;
|
127 |
padding: 5px;
|
128 |
}
|
|
|
129 |
.fert-input {
|
130 |
width: 80px;
|
131 |
margin: 0 5px;
|
132 |
}
|
|
|
133 |
.calculation-container {
|
134 |
display: flex;
|
135 |
gap: 30px;
|
136 |
align-items: flex-start;
|
137 |
}
|
|
|
138 |
.enhancement-title {
|
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;
|
|
|
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: 10px;
|
166 |
+
}
|
167 |
+
.compensation-weights {
|
168 |
+
display: flex;
|
169 |
+
flex-direction: column;
|
170 |
+
gap: 8px;
|
171 |
+
}
|
172 |
+
.weight-input-group {
|
173 |
+
display: flex;
|
174 |
+
align-items: center;
|
175 |
+
gap: 10px;
|
176 |
+
}
|
177 |
+
.weight-input-group label {
|
178 |
+
min-width: 80px;
|
179 |
+
text-align: right;
|
180 |
+
}
|
181 |
+
.weight-input-group input {
|
182 |
+
width: 80px;
|
183 |
+
padding: 5px;
|
184 |
+
border: 1px solid #ccc;
|
185 |
+
border-radius: 4px;
|
186 |
+
}
|
187 |
+
.input-column {
|
188 |
+
display: flex;
|
189 |
+
flex-direction: column;
|
190 |
+
gap: 10px;
|
191 |
+
}
|
192 |
.input-group {
|
193 |
display: flex;
|
194 |
align-items: center;
|
195 |
+
gap: 10px;
|
196 |
}
|
|
|
197 |
.input-group label {
|
198 |
+
min-width: 80px;
|
199 |
+
text-align: right;
|
200 |
}
|
201 |
+
.input-group input {
|
|
|
202 |
width: 80px;
|
203 |
padding: 5px;
|
204 |
border: 1px solid #ccc;
|
|
|
356 |
<fieldset class="calculation-box">
|
357 |
<legend>Расчёт удобрений</legend>
|
358 |
<div class="calculation-container">
|
|
|
|
|
359 |
<!-- Блок с заголовком "Усиление" -->
|
360 |
<div class="compensation-section">
|
361 |
+
<div class="enhancement-title">Усиление:</div>
|
362 |
|
363 |
<!-- Веса компенсации -->
|
364 |
<div class="compensation-weights">
|
365 |
<div class="weight-input-group">
|
366 |
+
<label for="weight-k2so4">K₂SO₄:</label>
|
367 |
<input type="number" id="weight-k2so4" value="0.23" step="0.01" min="-1" max="1">
|
368 |
</div>
|
369 |
<div class="weight-input-group">
|
|
|
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 |
<script>
|
397 |
let call_data;
|
398 |
|