-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.html
45 lines (39 loc) · 1.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script src="tempConversion.js"></script>
<title>Temperature Converter</title>
</head>
<body>
<nav id="darkMode">
<span id="dark" class="">☼</span><span id="light" class="no-display">🌙</span>
</nav>
<div class="container">
<h1>Temperature Converter</h1>
<div class="input-container">
<select id="conversion-from-type" class="dropdown-box">
<option value="Fahrenheit">Fahrenheit</option>
<option value="Celsius">Celsius</option>
<option value="Kelvin">Kelvin</option>
<option value="Rankine">Rankine</option>
</select>
<span id="to">to</span>
<select id="conversion-to-type" class="dropdown-box">
<option value="Fahrenheit">Fahrenheit</option>
<option value="Celsius" selected>Celsius</option>
<option value="Kelvin">Kelvin</option>
<option value="Rankine">Rankine</option>
</select>
<input type="number" id="temperature" placeholder="Enter temperature in Fahrenheit">
<button id="convert">Convert</button>
<div class="result">
<p id="result-text"></p>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>