-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (78 loc) · 3.78 KB
/
Copy pathindex.html
File metadata and controls
79 lines (78 loc) · 3.78 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<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>
<style type="text/css">
body{
font-size: 14pt;
}
input[name="txtBox"],
input[name="button"] {
border: 1px solid #0066a4;
font-size: 12pt;
}
#alert{
color: red;
}
</style>
</head>
<body>
<center>
<h1>Temperature Converter</h1>
<div style="padding: 5px"><span>Add temperature and select the unit for your input!</span></div>
<table style="width: 90%;">
<tbody>
<tr align="center">
<td>
<form id="TmpCvtr" style="box-shadow: 0 0 10px #003220; padding: 5px;">
<table border="0">
<tbody>
<tr style="padding: 10px;"></tr>
<tr>
<td> <span>Temperature:</span> </td>
<td> <span> <input id="inTemp" type="text" name="txtBox" size="30" /> </span> </td>
</tr>
<tr>
<td><span id="alert"></span></td>
<td></td>
<td>
<span><input class="ckBox" id="cbFahrenheit" type="checkbox" onchange="checkChange(this)">Fahrenheit</span><br />
<span><input class="ckBox" id="cbCelsius" type="checkbox" onchange="checkChange(this)">Celsius</span><br />
<span><input class="ckBox" id="cbKelvin" type="checkbox" onchange="checkChange(this)">Kelvin</span>
</td>
</tr>
<tr>
<td> <span>Temperature in Celsius:</span> </td>
<td> <span> <input id="inCel" type="text" name="txtBox" size="30" /> </span> </td>
</tr>
<tr>
<td> <span>Temperature in Fahrenheit:</span> </td>
<td> <span> <input id="inFah" type="text" name="txtBox" size="30" /> </span> </td>
</tr>
<tr>
<td> <span>Temperature in Kelvin:</span> </td>
<td> <span> <input id="inKel" type="text" name="txtBox" size="30" /> </span> </td>
</tr>
</tbody>
</table>
<table border="0">
<tbody>
<tr>
<td style="padding: 10px;">
<input id="btnCon" type="button" value="CONVERT" name="button" />
<input id="btnReset" type="reset" value="RESET ALL" name="button" />
</td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
</center>
<script type="text/javascript" src="js/TemperatureConverter.js"></script>
</body></html>