forked from Return-Ready-2021-JavaScript-Evening/JS-DOM-Lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdom-lab.html
More file actions
84 lines (75 loc) · 2.54 KB
/
dom-lab.html
File metadata and controls
84 lines (75 loc) · 2.54 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
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Temperature Scale Converter</h1>
<h3>Fahrenheit</h3>
<label for ="temp"> Value</label><br>
<input type="number" id="temp" name="temp">
<button onclick="fahrenheitConverter()">Calculate</button>
<div>
<h3>Celsius</h3>
<p id="celsius"></p>
</div>
</div>
<div class="container">
<h1>Temperature Scale Converter</h1>
<h3>Fahrenheit</h3>
<label for ="temp"> Value</label><br>
<input type="number" id="temp" name="temp">
<button onclick="fahrenheitConverter()">Calculate</button>
<div>
<h3>Fahrenheit</h3>
<p id="fahrenheit"></p>
</div>
<div>
<h3>Celsius</h3>
<p id="celsius"></p>
</div>
<div>
<h3>Kelvin</h3>
<p id="kelvin"></p>
</div>
<div>
<h3>Rankine</h3>
<p id="rankine"></p>
</div>
</div>
<br/>
<hr/>
<br/>
<div class="container">
<h1>Temperature Scale Convertor</h1>
<h3>Fahrenheit</h3>
<label for="temp"> Value</label><br>
<input type="number" id="tempc" name="temp">
<select name="scale" id="scale">
<option value="fahrenheit">Fahrenheit</option>
<option value="celsius">celsuis</option>
<option value="rankine">Rankine</option>
<option value="kelvin">Kelvin</option>
</select>
<button onclick="control()">Calculate</button>
<div>
<h3>Fahrenheit</h3>
<p id="fahrenheitc"></p>
</div>
<div>
<h3>Celsius</h3>
<p id="celsiusc"></p>
</div>
<div>
<h3>Kelvin</h3>
<p id="kelvinc"></p>
</div>
<div>
<h3>Rankine</h3>
<p id="rankinec"></p>
</div>
</div>
<script src="script.js"> </script>
</body>
</html>