-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (46 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
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="Description" content="Binary/Decimal/Hexidecimal Converter"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
<title>Converter</title>
<link rel="stylesheet" type="text/css" charset="utf-8" href="css/style.css"/>
<script language="javascript" type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
</head>
<body>
<div id="main">
<br/>
<input type="text" id="input" name="input" placeholder="Input here." />
<select id="type" name="type">
<option value="auto" selected>(auto detect type)</option>
<option value="binary">Binary</option>
<option value="decimal">Decimal</option>
<option value="hexidecimal">Hexidecimal</option>
</select>
<span id="signed"></span>
<br/>
<br/>
<div>
<span id="binary" class="text">Binary:</span>
<span id="binaryNum" class="num"></span>
</div>
<br/>
<div>
<span id="decimal" class="text">Decimal:</span>
<span id="decimalNum" class="num"></span>
</div>
<br/>
<div>
<span id="hexidecimal" class="text">Hex:</span>
<span id="hexidecimalNum" class="num"></span>
</div>
<br/>
<div id="footer">
(Note: signed conversion is designed for 32-bit numbers
and will not work properly for values less than -2^31.)
</div>
</div>
</body>
</html>