-
Notifications
You must be signed in to change notification settings - Fork 2
/
cf.html
143 lines (139 loc) · 4.52 KB
/
cf.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Carbon Footprint</title>
<link rel="stylesheet" href="cf.css" />
<link
rel="icon"
type="image/png"
href="https://imgs.search.brave.com/GEcIpS5Lv-dkZ8_DraVSbo-A7C85weiiHOkBlFqGbCs/rs:fit:1200:1200:1/g:ce/aHR0cHM6Ly9pbWFn/ZXMuc3F1YXJlc3Bh/Y2UtY2RuLmNvbS9j/b250ZW50L3YxLzU2/ZjlkYmI2OGE2NWUy/OTBiYjI4NTA2Zi8x/NTYyMTc0Njc4MjU2/LUg4Q1pDSDBKV0JB/WUU2WElMUFFJL2tl/MTdad2RHQlRvZGRJ/OHBEbTQ4a05pRU04/OG1yekhSc2QxbVEz/YnhWY3Q3Z1FhM0g3/OEgzWTB0eGphaXZf/MGZEb092eGNkTW1N/S2tEc3lVcU1Tc01X/eEhrNzI1eWlpSEND/TGZyaDhPMXo0WVR6/SHZuS2h5cDZEYS1O/WXJvT1czWkdqb0JL/eTNhenFrdTgwQzc4/OWwwczBYYU1OakNx/QXpSaWJqbkVfd0Js/a1oyYXh2TWxQZnFG/TFd5LTNUanA0bktT/Y0NIZzFYRjRhTHNR/SmxvNm9ZYkEvcmVk/dWNlK2NhcmJvbitm/b290cHJpbnQrd2l0/aCtUaGUrQ2hpY2Fn/bytHcmVlbmJveC5q/cGc"
/>
<!-- Icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
</head>
<body>
<!-- Form -->
<div class="container" id="xyz">
<form
name="myForm"
action="/action.php"
onsubmit="return f1()"
method="post"
class="myForm"
>
<h2><i class="fa-solid fa-arrow-right-long"></i> Enter Your Name</h2>
<div class="wrapper">
<div class="input-data">
<input id="input-name" type="text" name="fname" required />
<div class="underline"></div>
<label>Name</label>
</div>
</div>
<br />
<br />
<h2>
<i class="fa-solid fa-arrow-right-long"></i> How many people live in
your household?
</h2>
<div class="slidecontainer">
<input
value="1"
type="range"
min="1"
max="12"
name="fmember"
class="slider"
id="myRange"
required
/>
<p class="value-output">Value: <span id="Member-output"></span></p>
</div>
<br />
<h2>
<i class="fa-solid fa-arrow-right-long"></i> Electricity Usage Per
Month [In Units]
</h2>
<div class="slidecontainer">
<input
value="0"
type="range"
min="0"
max="200"
name="felectricity"
class="slider1"
id="myRange"
required
/>
<p class="value-output">
Value: <span id="Electricity-output"></span>
</p>
</div>
<br />
<h2>
<i class="fa-solid fa-arrow-right-long"></i> LPG(Cylinder) Usage Per
Month
</h2>
<div class="slidecontainer">
<input
value="0"
type="range"
min="0"
max="5"
class="slider2"
name="fcylinder"
id="myRange"
required
/>
<p class="value-output">Value: <span id="Cylinder-output"></span></p>
</div>
<br />
<h2>
<i class="fa-solid fa-arrow-right-long"></i> Which Type Of Fuel Does
Your Vehicle Use ??
</h2>
<div class="radio-group">
<label class="radio">
<input id="petrol-radio" type="radio" value="Petrol" name="Fuel" />
Petrol
<span></span>
</label>
<label class="radio">
<input id="diesel-radio" type="radio" value="Diesel" name="Fuel" />
Diesel
<span></span>
</label>
</div>
<br />
<h2>
<i class="fa-solid fa-arrow-right-long"></i> Petrol/Diesel Consumption
per Month [In Litres]
</h2>
<div class="wrapper">
<div class="input-data">
<input min="0" type="number" name="ffuel" required />
<div class="underline"></div>
<label>Consumption</label>
</div>
</div>
<br />
<button class="button" onclick="f1()">
<i class="fa-solid fa-bookmark"></i> Submit
</button>
<input class="button1" type="reset" onclick="f2()" value="Reset" />
</form>
</div>
<!-- Results -->
<div class="container1" id="result-container">
<div id="output">Your Carbon Footprint</div>
<br />
<div id="output2">...</div>
</div>
</body>
<script src="cf.js"></script>
</html>