-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalc.html
179 lines (166 loc) · 7.98 KB
/
calc.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CO2 Emissions Calculator</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="calc.css">
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#"> <img src="bg1.jpg" alt="EcoTrace" height="60px"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="calc.html">Calculate</a>
</li>
<li class="nav-item">
<a class="nav-link" href="outlook.html">Outlook</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sol.html">Reduce</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search" style="width: 250px;">
<button class="btn btn-outline-success" type="submit" style="width: 80px;">Search</button>
</form>
</div>
</div>
</nav><br>
<div class="intro">
<div class="intro-text">
<h1>Start calculating your household carbon footprint</h1>
<p>Your Free Carbon Calculator - How it works</p>
<ol>
<li>Get ready with your figures.</li>
<li>Input your figures.</li>
<li>View your basic Carbon footprint report.</li><br>
</ol>
<button onclick="showCalculator()">Get started</button>
</div>
<div class="intro-video">
<iframe width="700px" height="450px" src="https://www.youtube.com/embed/rByHiqc0K9k?si=Jbv-4N4orTXN9zFT" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
<div class="container" id="calculator">
<h1>CO2 Emissions Calculator</h1><br>
<label for="electricity">
<i class="fas fa-lightbulb icon"></i>
Monthly Electricity Consumption (in KWh)
</label>
<input type="range" id="electricity" min="0" max="1000" value="0" oninput="document.getElementById('electricityValue').innerText = this.value">
<span id="electricityValue">0</span> KWh
<label for="petrol">
<i class="fas fa-car icon"></i>
Monthly Petrol Consumption (in Litres)
</label>
<input type="range" id="petrol" min="0" max="500" value="0" oninput="document.getElementById('petrolValue').innerText = this.value">
<span id="petrolValue">0</span> Litres
<label for="lpg">
<i class="fas fa-fire icon"></i>
Monthly LPG Consumption (in KG)
</label>
<input type="range" id="lpg" min="0" max="100" value="0" oninput="document.getElementById('lpgValue').innerText = this.value">
<span id="lpgValue">0</span> KG
<label for="waste">
<i class="fas fa-trash-alt icon"></i>
Waste Generated per Week (in KG)
</label>
<input type="range" id="waste" min="0" max="100" value="0" oninput="document.getElementById('wasteValue').innerText = this.value">
<span id="wasteValue">0</span> KG
<label for="meals">
<i class="fas fa-utensils icon"></i>
Number of Meals per Day
</label>
<input type="number" id="meals" min="0" value="0"><br><br>
<button onclick="calculateCO2()">Calculate CO2 Emissions</button>
</div>
<div class="results" id="results">
<h2>Results</h2>
<div class="categories">
<h3>Carbon Emission by Categories</h3>
<div id="electricityCO2"></div>
<div id="petrolCO2"></div>
<div id="lpgCO2"></div>
<div id="wasteCO2"></div>
<div id="mealsCO2"></div>
</div>
<div class="total">
<h3>Total Carbon Emissions</h3>
<div id="totalFootprint"></div>
<div class="highlight">The average Carbon Footprint for people in India is about 1.6 tonnes per year as against global average per capita emission of 4 tonnes per year.</div>
<div id="comparison"></div>
<div class="highlight">Per capita carbon dioxide (CO₂) emissions in India have been steadily increasing over the years.</div>
<p><i>Carbon footprint value through calculator will be assumed as approximate value & not exact value.</i></p>
</div>
</div>
<br><br>
<footer class="footer">
<div class="fcontainer">
<div class="footer-logo">
<img src="bg1.jpg" alt="Carbon Footprint Logo" height="200px ">
</div>
<div class="footer-links">
<h2>Useful Links</h2>
<ul>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#privacy">Privacy Policy</a></li>
<li><a href="#faqs">FAQs</a></li>
</ul>
</div>
<div class="footer-contact">
<h2>Contact Us</h2>
<p>Email: <a href="mailto:[email protected]">[email protected]</a></p>
<p>Phone: 9630698739</p>
<p>Address: building no. 19,Dayanand Sagar College of Engineering,Bangalore</p>
</div>
<div class="footer-social">
<h2>Follow Us</h2>
<a href="#" class="social-icon"><img src="https://www.facebook.com/images/fb_icon_325x325.png" alt="Facebook"></a>
<a href="#" class="social-icon"><img src="https://www.shutterstock.com/image-photo/kiev-ukraine-may-08-2015-260nw-281364161.jpg" alt="Twitter"></a>
<a href="#" class="social-icon"><img src="https://play-lh.googleusercontent.com/kMofEFLjobZy_bCuaiDogzBcUT-dz3BBbOrIEjJ-hqOabjK8ieuevGe6wlTD15QzOqw" alt="LinkedIn"></a>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Carbon Footprint. All rights reserved.</p>
</div>
</footer>
<section class="u">
<a class="u" href="#" target="_blank">
<span>Website</span>
</a>
<p class="u">
<span class="happ">created by</span>
</p>
<a class="u" href="" target="_blank">
<a href="#" target="_blank">
Bhoomi Agrawal
</a>
<a href="#" target="_blank">
AJ Afshaan
</a>
<a href="#" target="_blank">
Aaradhya Saikia
</a>
</a>.
</section>
<script src="calc.js"></script>
</body>
</html>