-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.html
More file actions
47 lines (46 loc) · 1.69 KB
/
Index.html
File metadata and controls
47 lines (46 loc) · 1.69 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Temperature converter</title>
</head>
<body>
<div class="container">
<div class="jumbotron text-center mt-5">
<h1 class="display-5 text-center text-dark">
Convertor between Celsius, Kelvin and Fahrenheit
</h1>
<p class="lead">Input temperature in one of measurements above</p>
<hr />
<input name="inputTemp" type="number" id="tempToConvert"><br><br>
<hr>
<button id= "btnConvertToCels">Convert to Celsius</button>
<button id= "btnConvertToFahr"s>Convert to Fahrenheit</button>
<div id="tempConversionOutput"></div>
<hr/>
</div>
<div class="jumbotron text-center mt-5">
<h1 class="display-5 text-center text-dark">
Convertor between Kilometres and Miles
</h1>
<p class="lead">Input distance in one of measurements above</p>
<hr />
<input name="inputDist" type="number" id="distToConvert"><br><br>
<hr />
<button id="btnConvertToMiles">Convert to Miles</button>
<button id="btnConvertToKm">Convert to Kilometers</button>
<div id="distConversionOutput"></div>
</div>
</div>
<script src="/dist/main.js"></script>
</body>
</html>