-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c277cff
Showing
3 changed files
with
480 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title> | ||
2's Complement | ||
</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<h1>2's Complement</h1> | ||
<fieldset class="input-fieldset"> | ||
<legend id="input-legend">Input</legend> | ||
<form> | ||
<table> | ||
<tr> | ||
<td> | ||
<label class="input-title">Bits Count</label> | ||
</td> | ||
<td> | ||
<label>:</label> | ||
</td> | ||
<td> | ||
<select id="bits_count" onchange="set_bit_count()"> | ||
<option>4-Bits</option> | ||
<option>8-Bits</option> | ||
<option>12-Bits</option> | ||
<option>16-Bits</option> | ||
<option>24-Bits</option> | ||
<option>32-Bits</option> | ||
</select> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<label class="input-title">First Number</label> | ||
</td> | ||
<td> | ||
<label>:</label> | ||
</td> | ||
<td> | ||
<input type="number" id="first_num" name="first_num" onchange="check_first_second_num()" onkeyup="check_first_second_num()"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<label class="input-title">Operator</label> | ||
</td> | ||
<td> | ||
<label>:</label> | ||
</td> | ||
<td> | ||
<select id="operator_selector" onchange="set_operator()"> | ||
<option>+</option> | ||
<option>-</option> | ||
</select> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<label class="input-title">Second Number</label> | ||
</td> | ||
<td> | ||
<label>:</label> | ||
</td> | ||
<td> | ||
<input type="number" id="second_num" name="second_num" onchange="check_first_second_num()" onkeyup="check_first_second_num()"> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
</fieldset> | ||
|
||
|
||
<div id="output"> | ||
<fieldset class="output-fieldset" id="output-fieldset-1" > | ||
<legend id="output-fieldset-1-legend" class="output-legend"></legend> | ||
<table id="first_number_output"> | ||
</table> | ||
</fieldset> | ||
|
||
<fieldset class="output-fieldset" id="output-fieldset-2" > | ||
<legend id="output-fieldset-2-legend" class="output-legend"></legend> | ||
<table id="second_number_output"> | ||
</table> | ||
</fieldset> | ||
|
||
<fieldset class="output-fieldset" id="output-fieldset-3" > | ||
<legend id="output-fieldset-3-legend" class="output-legend"></legend> | ||
<table id="total-output"> | ||
</table> | ||
</fieldset> | ||
</div> | ||
|
||
|
||
<script src="script.js" language="JavaScript" type="text/javaScript"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.