-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (203 loc) · 10.2 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
<!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>Weight convertor</title>
<link rel="shortcut icon" href="logo.png" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>weight convertor</h1>
<input type="number" id="input" placeholder="please input weight in grams...">
<button type="button" id="wBtn">click here</button>
</header>
<section>
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="unitBox metric">
<h2>metric units</h2>
<table class="table table-striped">
<thead>
<tr>
<th>name</th>
<th>symbol</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td data-unitName="name">picogram</td>
<td data-symbol="symbol">(pg)</td>
<td data-value="0" class="pg"></td>
</tr>
<tr>
<td data-unitName="name">nenogram</td>
<td data-symbol="symbol">(ng)</td>
<td data-value="0" class="ng"></td>
</tr>
<tr>
<td data-unitName="name">microgram</td>
<td data-symbol="symbol">(µg)</td>
<td data-value="0" class="mcg"></td>
</tr>
<tr>
<td data-unitName="name">milligram</td>
<td data-symbol="symbol">(mg)</td>
<td data-value="0" class="mg"></td>
</tr>
<tr>
<td data-unitName="name">carat</td>
<td data-symbol="symbol">(ct)</td>
<td data-value="0" class="ct"></td>
</tr>
<tr>
<td data-unitName="name">gram</td>
<td data-symbol="symbol">(g)</td>
<td data-value="0" class="g"></td>
</tr>
<tr>
<td data-unitName="name">kilogram</td>
<td data-symbol="symbol">(g)</td>
<td data-value="0" class="kg"></td>
</tr>
<tr>
<td data-unitName="name">quintal</td>
<td data-symbol="symbol">(q)</td>
<td data-value="0" class="q"></td>
</tr>
<tr>
<td data-unitName="name">tonne</td>
<td data-symbol="symbol">(t)</td>
<td data-value="0" class="t"></td>
</tr>
<tr>
<td data-unitName="name">kilotonne</td>
<td data-symbol="symbol">(kt)</td>
<td data-value="0" class="kt"></td>
</tr>
<tr>
<td data-unitName="name">megatonne</td>
<td data-symbol="symbol">(mt)</td>
<td data-value="0" class="mt"></td>
</tr>
<tr>
<td data-unitName="name">gigatonne</td>
<td data-symbol="symbol">(gt)</td>
<td data-value="0" class="gt"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-lg-6">
<div class="unitBox">
<h2>imperial(US) units</h2>
<table class="table table-striped">
<thead>
<tr>
<th>name</th>
<th>symbol</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td data-unitName="name">grain</td>
<td data-symbol="symbol">(gr)</td>
<td data-value="0" class="gr"></td>
</tr>
<tr>
<td data-unitName="name">dram</td>
<td data-symbol="symbol">(dr)</td>
<td data-value="0" class="dr"></td>
</tr>
<tr>
<td data-unitName="name">ounce</td>
<td data-symbol="symbol">(oz)</td>
<td data-value="0" class="oz"></td>
</tr>
<tr>
<td data-unitName="name">pound</td>
<td data-symbol="symbol">(lb)</td>
<td data-value="0" class="lb"></td>
</tr>
<tr>
<td data-unitName="name">stone</td>
<td data-symbol="symbol">(st)</td>
<td data-value="0" class="st"></td>
</tr>
<tr>
<td data-unitName="name">short hundredweight</td>
<td data-symbol="symbol">(sh cwt)</td>
<td data-value="0" class="sh-cwt"></td>
</tr>
<tr>
<td data-unitName="name">long hundredweight</td>
<td data-symbol="symbol">(lg cwt)</td>
<td data-value="0" class="lg-cwt"></td>
</tr>
<tr>
<td data-unitName="name">short ton</td>
<td data-symbol="symbol">(st-ton)</td>
<td data-value="0" class="st-ton"></td>
</tr>
<tr>
<td data-unitName="name">long ton</td>
<td data-symbol="symbol">(lt-ton)</td>
<td data-value="0" class="lt-ton"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-lg-12">
<div class="unitBox">
<h2>chinese units</h2>
<table class="table table-striped">
<thead>
<tr>
<th>name</th>
<th>symbol</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td data-unitName="name">dàn</td>
<td data-symbol="symbol">(dàn)</td>
<td data-value="0" class="dan"></td>
</tr>
<tr>
<td data-unitName="name">jīn</td>
<td data-symbol="symbol">(jīn)</td>
<td data-value="0" class="jin"></td>
</tr>
<tr>
<td data-unitName="name">liǎng</td>
<td data-symbol="symbol">(liǎng)</td>
<td data-value="0" class="liang"></td>
</tr>
<tr>
<td data-unitName="name">Qián</td>
<td data-symbol="symbol">(Qián)</td>
<td data-value="0" class="qian"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<footer>
<a href="https://codepen.io/mohammad-akbar63" target="_blank">© made by mohammad</a>
</footer>
<script src="main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>