-
Notifications
You must be signed in to change notification settings - Fork 0
/
area-calc.html
148 lines (131 loc) · 6.18 KB
/
area-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
<!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>CalcLand</title>
<!--for Animation -->
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<!-- custom CSS added here -->
<link rel="stylesheet" href="css/area-calc.css">
</head>
<body>
<!-- Navbar -->
<section id="nav-bar">
<script src="js/navbar.js"></script>
</section>
<section class="area-section d-flex align-items-lg-center min-vh-100">
<div class="row w-100">
<!-- Area Calculator-->
<div class="col-md-6 p-3 px-sm-5 px-md-0 px-lg-5
d-flex align-items-center py-3">
<div data-aos="fade-right" class="base-prompt overflow-hidden w-100 rounded p-4">
<div id="title">
<h3 class="text-primary text-center">Area calculator</h3>
</div>
<!-- Area input -->
<label for="area-size-input">Area :</label>
<div class="pb-3 row" data-aos="fade-right">
<div class="col-9">
<input id="area-size-input" placeholder="Enter total area size" class="form-control"
type="number">
</div>
<!-- Input unit -->
<div class="col-3">
<select id="measure-unit-selected" class="form-select form-select-md mb-3"
aria-label="form-select-lg example">
<option value="1">m²</option>
<option value="2">hector</option>
</select>
</div>
</div>
<!--To Acres Result -->
<div class="pb-4">
<div data-aos="fade-right">
<label for="acres-prompt">To Acres :</label>
<input placeholder="Enter area size to get result" id="acres-prompt" class="form-control"
type="text">
</div>
</div>
<!-- Measure btn -->
<div class="d-flex justify-content-center" data-aos="fade-right">
<div class="row">
<div class="col-6">
<button id="measure-btn" class="btn btn-primary">Measure</button>
</div>
<div class="col-6">
<button onclick="copyBtnEvent('acres-prompt')"
class="btn btn-secondary px-4">Copy</button>
</div>
</div>
</div>
</div>
</div>
<!-- Description -->
<div class=" col-md-6 p-2
d-flex align-items-md-center" data-aos="fade-left">
<div class="px-3 px-md-0 w-100 overflow-hidden h-100">
<!-- How to use it -->
<article class="py-2">
<h4 class="text-center text-primary text-opacity-75">How it works</h4>
<p>
<ul>
<li class="py-3">
To convert a square meter measurement to an acre measurement, multiply the area by the
conversion ratio.
Since one square meter is equal to 0.000247 acres, formula is: <br>
<strong>acres = square meters × 0.000247</strong>
</li>
<li>
To convert a hector to acre measurement, multiply input by the conversion ratio.
formula: <br>
<strong>Acre = Hectare X 2.471051565</strong>
</li>
</ul>
</p>
</article>
<!-- How it works -->
<article class="py-4">
<h4 class="text-center text-primary text-opacity-75">How to use it</h4>
<p>
<ul>
<li class="py-2">
Enter the size of area.
</li>
<li>
Click on the side of input field to change the measurement unit. The default unit is
square-meter (m²).
</li>
<li class="py-2">
Click the "measure" button to convert the entered area size to acres.
</li>
<li>
To copy the result, click the "copy" button.
</li>
</ul>
</p>
</article>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<script src="js/footer.js"></script>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<!--for Animation -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<!-- Custom JS added here -->
<script src="js/area-calc.js"></script>
<!-- for copy button event -->
<script src="js/base-calc.js"></script>
</body>
</html>