-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemperature-converter.html
78 lines (73 loc) · 2.26 KB
/
temperature-converter.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Temperature Converter</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="temperature-converter.css" />
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<h1>Temperature Converter(°F to °C and °C to °F)</h1>
</div>
<div class="col-md-2"></div>
</div>
<p></p>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<input
id="numInput"
class="form-control"
type="number"
placeholder="Enter the number you wish to convert"
required
/>
</div>
<div class="col-md-3"></div>
</div>
<p></p>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<select id="cAndFChoice" class="form-control form-control-lg select-opt" placeholder="Select a unit">
<option value="fahrenheit">Fahrenheit to Celsius</option>
<option value="celsius">Celsius to Fahrenheit</option>
</select>
</div>
</div>
<div class="col-md-3"></div>
</div>
<p></p>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<button
class="btn btn-primary btn-area"
onclick="convertChoice()"
>
Convert
</button>
</div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 alert alert-success">
<h2><span id="result"></span></h2>
</div>
<div class="col-md-3"></div>
</div>
</div>
<script src="temp-converter.js"></script>
</body>
</html>