Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongolding committed Oct 6, 2021
2 parents 6927402 + efa3512 commit a2bf445
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions templates/clicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
DOM assignment by converting decimal https://www.w3schools.com/jsref/jsref_fromcharcode.asp
below ASCII for more ideas of where to make changes
*/
document.getElementById('ASCII').innerHTML = String.fromCharCode(parseInt(binary, 2).toString(10));
}

/* This function converts decimal number to selected base using decimal, base, quotient, remainder.
Expand Down Expand Up @@ -190,6 +191,7 @@ <h1 class="text-center">Binary Math with Conversions</h1>
<th>Octal</th>
<th>Hexadecimal</th>
<th>Decimal</th>
<th>ASCII</th>
<!-- Hack: display ASCII label for printable character(s) -->
<th>Minus</th>
<th>Shift Right (/2)</th>
Expand All @@ -201,6 +203,7 @@ <h1 class="text-center">Binary Math with Conversions</h1>
<td id="octal">0</td>
<td id="hexadecimal">0</td>
<td id="decimal">0</td>
<td id="ASCII">null</td>
<!-- Hack: display ASCII printable character(s) -->
<td><button type="button" id="sub1" onclick="add(-1)">-1</button></td>
<td><button type="button" id="divide2" onclick="multiply(0.5)">/2</button></td>
Expand Down
1 change: 1 addition & 0 deletions templates/layouts/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="/binary">Binary Clicker</a>
<a class="dropdown-item" href="/colorcode">Color Codes</a>
<a class="dropdown-item" href="/greet">Mini-Lab1(Greet page)</a>
<a class="dropdown-item" href=/rgb>RGB</a>
<a class="dropdown-item" href="https://docs.google.com/document/d/1tz7A3Lp6vaa3a2ihFki3gpXrv0AbuLO8AQ0fRD_HylU/edit">Brain Write</a>
Expand Down

0 comments on commit a2bf445

Please sign in to comment.