-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
375 lines (354 loc) · 14.1 KB
/
index.html
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Carbon Footprint</title>
<link rel="stylesheet" href="style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.js" integrity="sha512-ZwR1/gSZM3ai6vCdI+LVF1zSq/5HznD3ZSTk7kajkaj4D292NLuduDCO1c/NT8Id+jE58KYLKT7hXnbtryGmMg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<div class="container">
<div class="banner">
<div class="clouds">
<img src="./Assets/cloud1.png" alt="cloud1" style="--i: 1" />
<img src="./Assets/cloud2.png" alt="cloud2" style="--i: 2" />
<img src="./Assets/cloud3.png" alt="cloud3" style="--i: 3" />
<img src="./Assets/cloud4.png" alt="cloud4" style="--i: 4" />
<img src="./Assets/cloud5.png" alt="cloud5" style="--i: 5" />
</div>
</div>
<!-- HOMEPage -->
<div class="x">
<div class="homePage" id="homepg">
<div class="homepg">
<div class="mainhomePage">What is Your<br/>Carbon Footprint?</div>
<div class="subhomePage">
Evaluate Your Environmental Impact: Our Carbon Calculator
simplifies the assessment of your carbon footprint, concentrating
on emissions from fuel, electricity, and personal travel over a
specified period. By focusing on these key areas, the calculator
empowers users to make informed decisions, fostering conscious
consumption for a sustainable future.
</div>
</div>
<div class="btnhomePage">
<a href="#start" class="navbtns next n0">START HERE »</a>
</div>
</div>
</div>
<!-- HOMENAV -->
<div class="homeNav" id="start">
<div class="hn1">
<a href="#homepg" style="text-decoration: none;" onclick="tryi()">Your Carbon Footprint</a>
</div>
<div class="hn2">
<div class="hn21" style="cursor: pointer">Blogs</div>
<div class="hn22" style="cursor: pointer">
<a href="https://www.unep.org" target="_blank" style="text-decoration: none;">Resources</a>
</div>
<div class="hn23" style="cursor: pointer">
<a href="https://github.com/aditya-jnu/Frontend-Fusion" target="_blank" style="text-decoration: none;">Github</a>
</div>
</div>
</div>
<!-- INPUT BOX -->
<form action="" class="ipBox">
<div class="electricity">
<div class="aa">
<div class="preheading">Carbon emissions from</div>
<div class="heading">Electricity Use</div>
<div class="subheading">
Please share total electricity consumption by your household for
the year.
</div>
<div class="aacontent">
<img src="./Assets/house1.png" alt="" class="img" />
<label for="elect"
>As a household, how many units of <br />
electricity (kWh) do you consume in a year?</label
>
<input type="number" id="elect" min="0" value="0" class="box" />
</div>
<div class="navbtn">
<!-- <a href="#" class="navbtns previous p1">« </a> -->
<a href="#" class="navbtns next n1" id="start">Next »</a>
</div>
</div>
</div>
<div class="houseFuel">
<div class="bb">
<div class="preheading">Carbon emissions from</div>
<div class="heading">Fuel use at home</div>
<div class="subheading">
Please share total electricity consumption by your household for
the year.
</div>
<div class="bbcontent respcontent">
<div class="bblpg">
<img src="./Assets/lpg.png " alt="" class="img" />
<label for="lpg">Gas Cylinder<br />(in kg)</label>
<input type="number" id="lpg" min="0" value="0" class="box" />
</div>
<div class="bbcoal">
<img src="./Assets/coal.png" alt="" class="img" />
<label for="coal"
>Coal Consumption <br />
(in kg)</label
>
<input type="number" id="coal" min="0" value="0" class="box" />
</div>
</div>
<div class="navbtn">
<a href="#start" class="navbtns previous p2">« </a>
<a href="#" class="navbtns next n2">Next »</a>
</div>
</div>
</div>
<div class="fasttravel">
<div class="cc">
<div class="preheading">Carbon emissions from</div>
<div class="heading">Travel</div>
<div class="subheading">
Please provide approximate kms travelled by you in a year using
the following modes of transport.
</div>
<div class="cccontent respcontent">
<div class="ccair">
<img src="./Assets/aeroplane.png" alt="" class="img" />
<label for="air"
>Air Travel <br />
(in km)</label
>
<input type="number" id="air" min="0" value="0" class="box" />
</div>
<div class="ccrail">
<img src="./Assets/train.png" alt="" class="img" />
<label for="rail"
>Rail Travel <br />
(in km)</label
>
<input type="number" id="rail" min="0" value="0" class="box" />
</div>
<div class="ccmetro">
<img src="./Assets/metro.png" alt="" class="img" />
<label for="metro"
>Metro Travel <br />
(in km)</label
>
<input type="number" id="metro" min="0" value="0" class="box" />
</div>
</div>
<div class="navbtn">
<a href="#" class="navbtns previous p10">« </a>
<a href="#" class="navbtns next n10">Next »</a>
</div>
</div>
</div>
<div class="slowtravel">
<div class="dd">
<div class="preheading">Carbon emissions from</div>
<div class="heading">Travel</div>
<div class="subheading">
Please provide approximate kms travelled by you in a year using
the following modes of transport.
</div>
<div class="ddcontent respcontent">
<div class="ddbus">
<img src="./Assets/bus.png" alt="" class="img" />
<label for="bus"
>Bus Travel <br />
(in km)</label
>
<input type="number" id="bus" min="0" value="0" class="box" />
</div>
<div class="ddcar">
<img src="./Assets/car.png" alt="" class="img" />
<label for="car"
>Car Travel <br />
(in km)</label
>
<input type="number" id="car" min="0" value="0" class="box" />
</div>
</div>
<div class="navbtn">
<a href="#" class="navbtns previous p3">« </a>
<a href="#" class="navbtns next n3">Next »</a>
</div>
</div>
</div>
<div class="travelFuel">
<div class="ee">
<div class="preheading">Carbon emissions from</div>
<div class="heading">Travel Fuel</div>
<div class="subheading">
Please provide approximate liters of fuel used by you in a year.
</div>
<div class="eecontent respcontent">
<div class="eepetrol">
<img src="./Assets/red-pump.png" alt="" class="img" />
<label for="petrol"
>Petrol Consumption <br />
(in litre)</label
>
<input
type="number"
id="petrol"
min="0"
value="0"
class="box"
/>
</div>
<div class="eediesel">
<img src="./Assets/orange-pump.png" alt="" class="img" />
<label for="diesel"
>Diesel Consumption <br />
(in litre)</label
>
<input
type="number"
id="diesel"
min="0"
value="0"
class="box"
/>
</div>
<div class="eecng">
<img src="./Assets/yellow-pump.png" alt="" class="img" />
<label for="cng">CNG Consumption<br />(in litre)</label>
<input type="number" id="cng" min="0" value="0" class="box" />
</div>
</div>
<div class="navbtn">
<a href="#" class="navbtns previous p4">« </a>
<a href="#" class="navbtns next n4">Next »</a>
</div>
</div>
</div>
<div class="meal">
<div class="ff">
<div class="preheading">Carbon emissions from</div>
<div class="heading">Meals</div>
<div class="subheading">
Please select your meal preference for the year.
</div>
<div class="ffcontent respcontent">
<div class="ffimg">
<img src="./Assets/vegan1 .png" alt="" class="img" /><br />
<div class="ffvegan">
<label for="vegan">Vegan</label>
<input type="radio" id="vegan" value="vegan" name="food" />
</div>
</div>
<div class="ffimg">
<img src="./Assets/vegan2.png" alt="" class="img" /><br />
<div class="ffveg">
<label for="veg">Vegetarain</label>
<input
type="radio"
id="veg"
value="veg"
name="food"
checked
/>
</div>
</div>
<div class="ffimg">
<img src="./Assets/meat vegan .png" alt="" class="img" /><br />
<div class="ffmeat">
<label for="meat">Meat Eater</label>
<input type="radio" id="meat" value="meat" name="food" />
</div>
</div>
</div>
<div class="navbtn">
<a href="#" class="navbtns previous p5">« </a>
<a href="#" class="navbtns next n5" onclick="calculator()"
>Submit »</a
>
</div>
</div>
</div>
</form>
<!-- OUTPUT BOX -->
<div class="opBox">
<div class="opBoxContent">
<div class="op">
<div class="opBox1" ></div>
<div class="opBox1" ></div>
</div>
<div class="op2">
<div class="graph1">
<canvas id="myChart1"></canvas>
</div>
<div class="graph2">
<canvas id="myChart2"></canvas>
</div>
<div class="graph3">
<canvas id="myChart3"></canvas>
</div>
<div class="graph4">
<div class="final22">
<div class="m">
<div style="font-size: 2.75vw; font-weight: 100; border-right: 1px solid black; width:3vw;">01</div>
<div style="font-size: 3vw; font-weight: 200;">Blog 1</div>
<a href="./blogs/blog1.html" target="_blank" style="text-decoration: none;">
<div
style="
border-left: 1px solid black;
font-size: 3.5vw;
display: flex;
justify-content: center;
font-weight: 700;
"
>
->
</div>
</a>
</div>
<div class="n">
<div style="font-size: 2.75vw; font-weight: 100; border-right: 1px solid black; width:3vw;">02</div>
<div style="font-size: 3vw;font-weight: 200;">Blog 2</div>
<a href="./blogs/blog2.html" target="_blank" style="text-decoration: none;">
<div
style="
border-left: 1px solid black;
font-size: 3.5vw;
display: flex;
justify-content: center;
font-weight: 700;
"
>
->
</div>
</a>
</div>
<div class="o">
<div style="font-size: 2.75vw; font-weight: 100; border-right: 1px solid black; width:3vw;">03</div>
<div style="font-size: 3vw; font-weight: 200;">Blog 3</div>
<a href="./blogs/blog3.html" target="_blank" style="text-decoration: none;">
<div
style="
border-left: 1px solid black;
font-size: 3.5vw;
display: flex;
justify-content: center;
font-weight: 700;
"
>
->
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
</script>
<script src="script.js"></script>
</body>
</html>