DmitrMakeev commited on
Commit
c7df711
·
verified ·
1 Parent(s): 0c98d93

Update nutri_call.html

Browse files
Files changed (1) hide show
  1. nutri_call.html +150 -139
nutri_call.html CHANGED
@@ -4,109 +4,108 @@
4
  <meta charset="UTF-8">
5
  <title>Калькулятор удобрений</title>
6
  <style>
7
- body {
8
- margin: 0 auto;
9
- width: 1000px;
10
- padding: 1em;
11
- background-color: #f0f0f0;
12
- font-family: Arial, sans-serif;
13
- }
14
- h1 {
15
- background-color: #2e8b57;
16
- color: white;
17
- text-align: center;
18
- padding: 1em;
19
- border-radius: 10px;
20
- margin-bottom: 20px;
21
- }
22
- fieldset {
23
- border: 2px solid #2e8b57;
24
- background-color: #eaffea;
25
- padding: 1em;
26
- margin-bottom: 20px;
27
- border-radius: 8px;
28
- }
29
- legend {
30
- font-weight: bold;
31
- color: #2e8b57;
32
- padding: 0 10px;
33
- }
34
- input[type=number] {
35
- width: 80px;
36
- padding: 3px;
37
- border: 1px solid #ccc;
38
- border-radius: 4px;
39
- }
40
-
41
- .main-container {
42
- display: grid;
43
- grid-template-columns: 120px repeat(8, 90px);
44
- gap: 10px;
45
- padding: 10px;
46
- }
47
-
48
- .profile-container {
49
- display: contents;
50
- }
51
-
52
- .profile-element {
53
- display: flex;
54
- flex-direction: column;
55
- align-items: center;
56
- }
57
-
58
- .profile-label {
59
- font-weight: bold;
60
- margin-bottom: 5px;
61
- }
62
-
63
- .nitrogen-container {
64
- grid-column: 1 / -1;
65
- display: flex;
66
- gap: 20px;
67
- padding-left: 120px;
68
- margin-top: 10px;
69
- }
70
-
71
- .nitrogen-group {
72
- display: flex;
73
- align-items: center;
74
- gap: 5px;
75
- }
76
-
77
- /* Стили для нижнего блока — таблица в одну строку */
78
- .fertilisers-container {
79
- display: flex;
80
- flex-direction: column;
81
- gap: 10px;
82
- }
83
-
84
- .fert-header-row,
85
- .fert-row {
86
- display: flex;
87
- align-items: center;
88
- gap: 10px;
89
- }
90
-
91
- .fert-header {
92
- font-weight: bold;
93
- text-align: center;
94
- width: 80px;
95
- }
96
-
97
- .fert-name {
98
- font-weight: bold;
99
- width: 120px;
100
- }
101
-
102
- .fert-cell {
103
- width: 80px;
104
- text-align: center;
105
- }
106
-
107
- .fert-input {
108
- width: 80px;
109
- }
110
  </style>
111
 
112
  </head>
@@ -165,78 +164,90 @@
165
 
166
  <fieldset>
167
  <legend>Составы солей</legend>
168
- <div class="main-container">
169
- <!-- Заголовки -->
170
- <span class="fert-header fert-name">Удобрение</span>
171
- <span class="fert-header">NH4</span>
172
- <span class="fert-header">NO3</span>
173
- <span class="fert-header">P</span>
174
- <span class="fert-header">K</span>
175
- <span class="fert-header">Ca</span>
176
- <span class="fert-header">Mg</span>
177
- <span class="fert-header">S</span>
178
- <span class="fert-header">грамм</span>
179
-
180
- <!-- Строки с удобрениями -->
 
181
  <span class="fert-name">CaN2O6</span>
182
  <span class="fert-cell">-</span>
183
- <input class="fert-input" type="number" step="0.001" id="fert_ca_no3"/>
184
  <span class="fert-cell">-</span>
185
  <span class="fert-cell">-</span>
186
- <input class="fert-input" type="number" step="0.001" id="fert_ca_ca"/>
187
  <span class="fert-cell">-</span>
188
  <span class="fert-cell">-</span>
189
- <input class="fert-input" type="number" step="0.001" id="fert_ca_gram"/>
190
-
 
 
191
  <span class="fert-name">KNO3</span>
192
  <span class="fert-cell">-</span>
193
- <input class="fert-input" type="number" step="0.001" id="fert_kno3_no3"/>
194
  <span class="fert-cell">-</span>
195
- <input class="fert-input" type="number" step="0.001" id="fert_kno3_k"/>
196
  <span class="fert-cell">-</span>
197
  <span class="fert-cell">-</span>
198
  <span class="fert-cell">-</span>
199
- <input class="fert-input" type="number" step="0.001" id="fert_kno3_gram"/>
200
-
 
 
201
  <span class="fert-name">NH4NO3</span>
202
- <input class="fert-input" type="number" step="0.001" id="fert_nh4no3_nh4"/>
203
- <input class="fert-input" type="number" step="0.001" id="fert_nh4no3_no3"/>
204
  <span class="fert-cell">-</span>
205
  <span class="fert-cell">-</span>
206
  <span class="fert-cell">-</span>
207
  <span class="fert-cell">-</span>
208
  <span class="fert-cell">-</span>
209
- <input class="fert-input" type="number" step="0.001" id="fert_nh4no3_gram"/>
210
-
 
 
211
  <span class="fert-name">MgSO4</span>
212
  <span class="fert-cell">-</span>
213
  <span class="fert-cell">-</span>
214
  <span class="fert-cell">-</span>
215
  <span class="fert-cell">-</span>
216
- <input class="fert-input" type="number" step="0.001" id="fert_mgso4_mg"/>
217
- <input class="fert-input" type="number" step="0.001" id="fert_mgso4_s"/>
218
- <input class="fert-input" type="number" step="0.001" id="fert_mgso4_gram"/>
219
-
 
 
220
  <span class="fert-name">KH2PO4</span>
221
  <span class="fert-cell">-</span>
222
  <span class="fert-cell">-</span>
223
- <input class="fert-input" type="number" step="0.001" id="fert_kh2po4_p"/>
224
- <input class="fert-input" type="number" step="0.001" id="fert_kh2po4_k"/>
225
  <span class="fert-cell">-</span>
226
  <span class="fert-cell">-</span>
227
  <span class="fert-cell">-</span>
228
- <input class="fert-input" type="number" step="0.001" id="fert_kh2po4_gram"/>
229
-
 
 
230
  <span class="fert-name">K2SO4</span>
231
  <span class="fert-cell">-</span>
232
  <span class="fert-cell">-</span>
233
  <span class="fert-cell">-</span>
234
- <input class="fert-input" type="number" step="0.001" id="fert_k2so4_k"/>
235
  <span class="fert-cell">-</span>
236
  <span class="fert-cell">-</span>
237
- <input class="fert-input" type="number" step="0.001" id="fert_k2so4_s"/>
238
- <input class="fert-input" type="number" step="0.001" id="fert_k2so4_gram"/>
239
  </div>
240
  </fieldset>
 
241
  </body>
242
  </html>
 
4
  <meta charset="UTF-8">
5
  <title>Калькулятор удобрений</title>
6
  <style>
7
+ body {
8
+ margin: 0 auto;
9
+ width: 1000px;
10
+ padding: 1em;
11
+ background-color: #f0f0f0;
12
+ font-family: Arial, sans-serif;
13
+ }
14
+
15
+ h1 {
16
+ background-color: #2e8b57;
17
+ color: white;
18
+ text-align: center;
19
+ padding: 1em;
20
+ border-radius: 10px;
21
+ margin-bottom: 20px;
22
+ }
23
+
24
+ fieldset {
25
+ border: 2px solid #2e8b57;
26
+ background-color: #eaffea;
27
+ padding: 1em;
28
+ margin-bottom: 20px;
29
+ border-radius: 8px;
30
+ }
31
+
32
+ legend {
33
+ font-weight: bold;
34
+ color: #2e8b57;
35
+ padding: 0 10px;
36
+ }
37
+
38
+ input[type=number] {
39
+ width: 80px;
40
+ padding: 3px;
41
+ border: 1px solid #ccc;
42
+ border-radius: 4px;
43
+ }
44
+
45
+ /* Верхний блок */
46
+ .main-container {
47
+ display: grid;
48
+ grid-template-columns: 120px repeat(8, 90px);
49
+ gap: 10px;
50
+ padding: 10px;
51
+ }
52
+
53
+ .profile-container {
54
+ display: contents;
55
+ }
56
+
57
+ .profile-element {
58
+ display: flex;
59
+ flex-direction: column;
60
+ align-items: center;
61
+ }
62
+
63
+ .profile-label {
64
+ font-weight: bold;
65
+ margin-bottom: 5px;
66
+ }
67
+
68
+ .nitrogen-container {
69
+ grid-column: 1 / -1;
70
+ display: flex;
71
+ gap: 20px;
72
+ padding-left: 120px;
73
+ margin-top: 10px;
74
+ }
75
+
76
+ .nitrogen-group {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: 5px;
80
+ }
81
+
82
+ /* Нижний блок - удобрения */
83
+
84
+ .fert-header-row {
85
+ display: flex;
86
+ align-items: center;
87
+ font-weight: bold;
88
+ padding: 5px 0;
89
+ }
90
+
91
+ .fert-row {
92
+ display: flex;
93
+ align-items: center;
94
+ margin: 4px 0;
95
+ }
96
+
97
+ .fert-name {
98
+ width: 120px;
99
+ font-weight: bold;
100
+ }
101
+
102
+ .fert-cell,
103
+ .fert-input {
104
+ width: 80px;
105
+ text-align: center;
106
+ margin-right: 10px;
107
+ }
108
+
 
109
  </style>
110
 
111
  </head>
 
164
 
165
  <fieldset>
166
  <legend>Составы солей</legend>
167
+
168
+ <div class="fert-header-row">
169
+ <span class="fert-name">Удобрение</span>
170
+ <span class="fert-cell">NH4</span>
171
+ <span class="fert-cell">NO3</span>
172
+ <span class="fert-cell">P</span>
173
+ <span class="fert-cell">K</span>
174
+ <span class="fert-cell">Ca</span>
175
+ <span class="fert-cell">Mg</span>
176
+ <span class="fert-cell">S</span>
177
+ <span class="fert-cell">грамм</span>
178
+ </div>
179
+
180
+ <div class="fert-row">
181
  <span class="fert-name">CaN2O6</span>
182
  <span class="fert-cell">-</span>
183
+ <input class="fert-input" type="number" step="0.001" id="fert_ca_no3" />
184
  <span class="fert-cell">-</span>
185
  <span class="fert-cell">-</span>
186
+ <input class="fert-input" type="number" step="0.001" id="fert_ca_ca" />
187
  <span class="fert-cell">-</span>
188
  <span class="fert-cell">-</span>
189
+ <input class="fert-input" type="number" step="0.001" id="fert_ca_gram" />
190
+ </div>
191
+
192
+ <div class="fert-row">
193
  <span class="fert-name">KNO3</span>
194
  <span class="fert-cell">-</span>
195
+ <input class="fert-input" type="number" step="0.001" id="fert_kno3_no3" />
196
  <span class="fert-cell">-</span>
197
+ <input class="fert-input" type="number" step="0.001" id="fert_kno3_k" />
198
  <span class="fert-cell">-</span>
199
  <span class="fert-cell">-</span>
200
  <span class="fert-cell">-</span>
201
+ <input class="fert-input" type="number" step="0.001" id="fert_kno3_gram" />
202
+ </div>
203
+
204
+ <div class="fert-row">
205
  <span class="fert-name">NH4NO3</span>
206
+ <input class="fert-input" type="number" step="0.001" id="fert_nh4no3_nh4" />
207
+ <input class="fert-input" type="number" step="0.001" id="fert_nh4no3_no3" />
208
  <span class="fert-cell">-</span>
209
  <span class="fert-cell">-</span>
210
  <span class="fert-cell">-</span>
211
  <span class="fert-cell">-</span>
212
  <span class="fert-cell">-</span>
213
+ <input class="fert-input" type="number" step="0.001" id="fert_nh4no3_gram" />
214
+ </div>
215
+
216
+ <div class="fert-row">
217
  <span class="fert-name">MgSO4</span>
218
  <span class="fert-cell">-</span>
219
  <span class="fert-cell">-</span>
220
  <span class="fert-cell">-</span>
221
  <span class="fert-cell">-</span>
222
+ <input class="fert-input" type="number" step="0.001" id="fert_mgso4_mg" />
223
+ <input class="fert-input" type="number" step="0.001" id="fert_mgso4_s" />
224
+ <input class="fert-input" type="number" step="0.001" id="fert_mgso4_gram" />
225
+ </div>
226
+
227
+ <div class="fert-row">
228
  <span class="fert-name">KH2PO4</span>
229
  <span class="fert-cell">-</span>
230
  <span class="fert-cell">-</span>
231
+ <input class="fert-input" type="number" step="0.001" id="fert_kh2po4_p" />
232
+ <input class="fert-input" type="number" step="0.001" id="fert_kh2po4_k" />
233
  <span class="fert-cell">-</span>
234
  <span class="fert-cell">-</span>
235
  <span class="fert-cell">-</span>
236
+ <input class="fert-input" type="number" step="0.001" id="fert_kh2po4_gram" />
237
+ </div>
238
+
239
+ <div class="fert-row">
240
  <span class="fert-name">K2SO4</span>
241
  <span class="fert-cell">-</span>
242
  <span class="fert-cell">-</span>
243
  <span class="fert-cell">-</span>
244
+ <input class="fert-input" type="number" step="0.001" id="fert_k2so4_k" />
245
  <span class="fert-cell">-</span>
246
  <span class="fert-cell">-</span>
247
+ <input class="fert-input" type="number" step="0.001" id="fert_k2so4_s" />
248
+ <input class="fert-input" type="number" step="0.001" id="fert_k2so4_gram" />
249
  </div>
250
  </fieldset>
251
+
252
  </body>
253
  </html>