-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (94 loc) · 3.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- title -->
<title>Converters</title>
<!-- required meta tags -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#cdd4df" />
<!-- favicon -->
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>🔳</text></svg>"
/>
<!-- bootstrap css -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<!-- google font -->
<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=Jura:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<!-- style -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- loader -->
<div id="loadingDiv">
<div class="loader"></div>
</div>
<div class="d-flex flex-column converter text-center">
<h1 class="mb-3 fw-bold">Temperature Converter</h1>
<p>
Type a value in any of the fields to convert between temperature
measurements.
</p>
<label for="inputFahrenheit" class="mb-1 mt-1">Fahrenheit:</label>
<input
class="m-auto"
type="number"
id="inputFahrenheit"
placeholder="Fahrenheit"
oninput="fahrenheitConverter(this.value)"
/>
<label for="inputCelsius" class="my-1 mt-3">Celsius:</label>
<input
class="m-auto"
type="number"
id="inputCelsius"
placeholder="Celsius"
oninput="celsiusConverter(this.value)"
/>
<label for="inputKelvin" class="my-1 mt-3">Kelvin:</label>
<input
class="m-auto"
type="number"
placeholder="Kelvin"
id="inputKelvin"
oninput="kelvinConverter(this.value)"
/>
<button id="clear">Reset</button>
</div>
<footer>
<p class="mb-0 px-1 pb-1">
Coded by
<a
href="https://github.com/sabalanga06"
target="blank"
class="link-light text-decoration-none footer-link"
>
Langa Saba
</a>
</p>
</footer>
</div>
<!-- bootstrap bundle with popper -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- script js -->
<script src="script.js"></script>
</body>
</html>