Spaces:
Sleeping
Sleeping
Update nutri_call.html
Browse files- nutri_call.html +80 -34
nutri_call.html
CHANGED
@@ -117,7 +117,6 @@
|
|
117 |
|
118 |
|
119 |
/* Стиль для новой рамки с кнопкой */
|
120 |
-
/* Стиль для блока расчёта */
|
121 |
.calculation-box {
|
122 |
border: 2px solid #2e8b57;
|
123 |
background-color: #eaffea;
|
@@ -125,31 +124,20 @@
|
|
125 |
margin-bottom: 20px;
|
126 |
border-radius: 8px;
|
127 |
}
|
128 |
-
|
129 |
.calculation-box legend {
|
130 |
font-weight: bold;
|
131 |
color: #2e8b57;
|
132 |
padding: 0 10px;
|
133 |
}
|
134 |
|
|
|
135 |
.calculation-container {
|
136 |
display: flex;
|
137 |
-
|
138 |
-
gap:
|
139 |
-
}
|
140 |
-
|
141 |
-
.calculation-label {
|
142 |
-
font-weight: bold;
|
143 |
-
margin-right: 5px;
|
144 |
-
}
|
145 |
-
|
146 |
-
#liters-input {
|
147 |
-
width: 80px;
|
148 |
-
padding: 3px;
|
149 |
-
border: 1px solid #ccc;
|
150 |
-
border-radius: 4px;
|
151 |
}
|
152 |
|
|
|
153 |
#calculate-btn {
|
154 |
background-color: #2e8b57;
|
155 |
color: white;
|
@@ -159,11 +147,60 @@
|
|
159 |
border-radius: 5px;
|
160 |
cursor: pointer;
|
161 |
transition: background-color 0.3s;
|
|
|
|
|
162 |
}
|
163 |
-
|
164 |
#calculate-btn:hover {
|
165 |
background-color: #3cb371;
|
166 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
|
168 |
</style>
|
169 |
</head>
|
@@ -319,27 +356,36 @@
|
|
319 |
<div class="calculation-container">
|
320 |
<button id="calculate-btn">Рассчитать</button>
|
321 |
|
322 |
-
<!--
|
323 |
-
<div class="compensation-
|
324 |
-
<div class="
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
|
|
|
|
|
|
|
|
|
|
335 |
</div>
|
336 |
</div>
|
337 |
|
338 |
-
<div class="
|
339 |
-
|
|
|
|
|
340 |
|
341 |
-
<div class="
|
342 |
-
|
|
|
|
|
343 |
</div>
|
344 |
</fieldset>
|
345 |
|
|
|
117 |
|
118 |
|
119 |
/* Стиль для новой рамки с кнопкой */
|
|
|
120 |
.calculation-box {
|
121 |
border: 2px solid #2e8b57;
|
122 |
background-color: #eaffea;
|
|
|
124 |
margin-bottom: 20px;
|
125 |
border-radius: 8px;
|
126 |
}
|
|
|
127 |
.calculation-box legend {
|
128 |
font-weight: bold;
|
129 |
color: #2e8b57;
|
130 |
padding: 0 10px;
|
131 |
}
|
132 |
|
133 |
+
/* Контейнер */
|
134 |
.calculation-container {
|
135 |
display: flex;
|
136 |
+
flex-direction: column;
|
137 |
+
gap: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
|
140 |
+
/* Кнопка */
|
141 |
#calculate-btn {
|
142 |
background-color: #2e8b57;
|
143 |
color: white;
|
|
|
147 |
border-radius: 5px;
|
148 |
cursor: pointer;
|
149 |
transition: background-color 0.3s;
|
150 |
+
margin-bottom: 10px;
|
151 |
+
align-self: flex-start;
|
152 |
}
|
|
|
153 |
#calculate-btn:hover {
|
154 |
background-color: #3cb371;
|
155 |
}
|
156 |
+
|
157 |
+
/* Секция "Усиление" */
|
158 |
+
.compensation-section {
|
159 |
+
display: flex;
|
160 |
+
flex-direction: column;
|
161 |
+
gap: 8px;
|
162 |
+
margin-bottom: 10px;
|
163 |
+
}
|
164 |
+
.compensation-title {
|
165 |
+
font-weight: bold;
|
166 |
+
color: #2e8b57;
|
167 |
+
margin-bottom: 5px;
|
168 |
+
}
|
169 |
+
|
170 |
+
/* Группы полей ввода */
|
171 |
+
.compensation-weights {
|
172 |
+
display: flex;
|
173 |
+
gap: 15px;
|
174 |
+
flex-wrap: wrap;
|
175 |
+
}
|
176 |
+
.weight-input-group {
|
177 |
+
display: flex;
|
178 |
+
align-items: center;
|
179 |
+
gap: 8px;
|
180 |
+
}
|
181 |
+
.weight-input-group label {
|
182 |
+
min-width: 70px; /* Фиксированная ширина для выравнивания */
|
183 |
+
text-align: right;
|
184 |
+
}
|
185 |
+
|
186 |
+
/* Обычные поля ввода */
|
187 |
+
.input-group {
|
188 |
+
display: flex;
|
189 |
+
align-items: center;
|
190 |
+
gap: 8px;
|
191 |
+
}
|
192 |
+
.input-group label {
|
193 |
+
min-width: 70px;
|
194 |
+
text-align: right;
|
195 |
+
}
|
196 |
+
|
197 |
+
/* Поля ввода */
|
198 |
+
input[type="number"] {
|
199 |
+
width: 80px;
|
200 |
+
padding: 5px;
|
201 |
+
border: 1px solid #ccc;
|
202 |
+
border-radius: 4px;
|
203 |
+
}
|
204 |
|
205 |
</style>
|
206 |
</head>
|
|
|
356 |
<div class="calculation-container">
|
357 |
<button id="calculate-btn">Рассчитать</button>
|
358 |
|
359 |
+
<!-- Блок с заголовком "Усиление" -->
|
360 |
+
<div class="compensation-section">
|
361 |
+
<div class="compensation-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">
|
370 |
+
<label for="weight-mgso4">MgSO₄:</label>
|
371 |
+
<input type="number" id="weight-mgso4" value="-0.10" step="0.01" min="-1" max="1">
|
372 |
+
</div>
|
373 |
+
<div class="weight-input-group">
|
374 |
+
<label for="weight-kh2po4">KH₂PO₄:</label>
|
375 |
+
<input type="number" id="weight-kh2po4" value="0.14" step="0.01" min="-1" max="1">
|
376 |
+
</div>
|
377 |
</div>
|
378 |
</div>
|
379 |
|
380 |
+
<div class="input-group">
|
381 |
+
<label class="calculation-label">Литры:</label>
|
382 |
+
<input type="number" id="liters-input" value="100" min="1" step="1">
|
383 |
+
</div>
|
384 |
|
385 |
+
<div class="input-group">
|
386 |
+
<label class="calculation-label">Точность:</label>
|
387 |
+
<input type="number" id="rounding-precision" value="3" min="0" max="3" step="1">
|
388 |
+
</div>
|
389 |
</div>
|
390 |
</fieldset>
|
391 |
|