-
Notifications
You must be signed in to change notification settings - Fork 0
/
length.html
58 lines (57 loc) · 2.21 KB
/
length.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Length Page</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a class="back-button" href="index.html">
<img src="arrow.png" alt="Back" width="24" height="24" />
</a>
<h1 class="contitle">Length Converter</h1>
<div class="content">
<div class="lengthinput">
<label class="length-input" for="input-length">From:</label>
<input type="number" id="input-length" autofocus />
<select id="length-input-unit">
<option value="meters">Meter</option>
<option value="kilometers">Kilometer</option>
<option value="centimeter">Centimeter</option>
<option value="millimeter">Millimeter</option>
<option value="micrometer">Micrometer</option>
<option value="nanometer">Nanometer</option>
<option value="mile">Mile</option>
<option value="yard">Yard</option>
<option value="foot">Foot</option>
<option value="inch">Inch</option>
<option value="lightyear">Light Year</option>
</select>
</div>
<div class="lengthoutput">
<label class="length-input" for="output-length">To:</label>
<!-- <input type="number" id="output-length" readonly /> -->
<select id="length-output-unit">
<option value="meters">Meter</option>
<option value="kilometers">Kilometer</option>
<option value="centimeter">Centimeter</option>
<option value="millimeter">Millimeter</option>
<option value="micrometer">Micrometer</option>
<option value="nanometer">Nanometer</option>
<option value="mile">Mile</option>
<option value="yard">Yard</option>
<option value="foot">Foot</option>
<option value="inch">Inch</option>
<option value="lightyear">Light Year</option>
</select>
</div>
<div class="resultcontainer">
<button id="convert-button">Result</button>
<h1>Result :</h1>
<span id="result"></span>
</div>
</div>
<script src="length.js"></script>
</body>
</html>