-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
38 lines (37 loc) · 1.19 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
<!DOCTYPE html>
<html>
<head>
<title>Number System conversions</title>
<!--[if lt IE 11]>
<link rel="stylesheet" type="text/css" href="style.ie-legacy.css">
<![ENDIF]-->
<!--[if gte IE 11]> -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- <![ENDIF]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
</head>
<body>
<div class="inputblock">
<input type="text" id="input" placeholder="Enter a number (e.g. 0xca7, 42, 0755, 0b101, …)" />
</div>
<div class="block">
<span class="type_label">Your Input is</span><span id="out_type" ></span>
</div>
<div class="block">
<div class="subblock">
<span class="out_label hex">hexadecimal</span><span id="out_hex" class="out_value hex"></span>
</div>
<div class="subblock">
<span class="out_label dec">decimal</span><span id="out_dec" class="out_value dec"></span>
</div>
<div class="subblock">
<span class="out_label oct">octal</span><span id="out_oct" class="out_value oct"></span>
</div>
<div class="subblock">
<span class="out_label bin">binary</span><span id="out_bin" class="out_value bin"></span>
</div>
</div>
<script src="script.js"></script>
</body>
</html>