-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.88 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
<html>
<head>
<title>Unit Converter</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap" rel="stylesheet">
</head>
<body>
<div id="request">
<h1>Unit Converter/Dimensional Analyzer</h1>
<input type="number" id="convertThis" value=0>
<button id="convert-btn">Convert</button>
<div id="resultbox">
<div id="results">
<div id="length" class="resultText">
<h2>Length (Meter/Feet)</h2>
<p id="length-result">X meters = x feet | X feet = x meters</p>
</div>
<div id="volume" class="resultText">
<h2>Volume (Liters/Gallons)</h2>
<p id="volume-result">X liters = x gallons | X gallons = x liters</p>
</div>
<div id="mass" class="resultText">
<h2>Mass (Kilograms/Pounds)</h2>
<p id="mass-result">X kilograms = x pounds | X pounds = x kilograms</p>
</div>
<div id="temperature" class="resultText">
<h2>Temperature (Fahrenheit/Celsius)</h2>
<p id="temp-result">X fahrenheit = x celsius | X celsius = x fahrenheit</p>
</div>
<div id="area" class="resultText">
<h2>Area (Acres/Miles)</h2>
<p id="area-result">X acre = x mile | X mile = x acre</p>
</div>
</div>
<script src="script.js"></script>
</body>
<footer>
<p>©2023 by Shambhavee Srivastava</p>
<p><a href="mailto:[email protected]?subject=Mail from gmail.com">Contact me</a></p>
</footer>
</html>