Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisal-D authored Jan 21, 2024
0 parents commit c277cff
Show file tree
Hide file tree
Showing 3 changed files with 480 additions and 0 deletions.
100 changes: 100 additions & 0 deletions index.html
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>
Loading

0 comments on commit c277cff

Please sign in to comment.