-
Notifications
You must be signed in to change notification settings - Fork 2
/
twos.html
39 lines (33 loc) · 807 Bytes
/
twos.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Two's Complement Converter</title>
<link rel="stylesheet" href="dist/app.css">
<style>
input[id$='_decimal'] {
width: 45px;
text-align: center;
}
</style>
</head>
<body>
<h1>Two's Complement Converter</h1>
<main>
<form>
<p>
<label for="orig_binary">Original</label>
<input id="orig_binary" title="Original binary">
<input id="orig_decimal" value="0" title="Original decimal">
</p>
<p>
<label for="comp_binary">Complement</label>
<input id="comp_binary" title="Complement binary">
<input id="comp_decimal" value="0" title="Complement decimal">
</p>
</form>
</main>
<p><a href="https://github.com/sheabunge/bintools">View source on GitHub</a></p>
<script src="dist/twos.js"></script>
</body>
</html>