Skip to content

Latest commit

Β 

History

History
48 lines (41 loc) Β· 2.59 KB

README.md

File metadata and controls

48 lines (41 loc) Β· 2.59 KB

Calculator

Remake of the Windows 98 Calculator program for the web, using the open sourced Windows 10 calculator engine, ported to the web by muzamil. Interface recreated in detail by Isaiah Odhner.

Try it as part of 98 or standalone

ReferenceRemake

Differences from the original Calculator app in Windows 98:

  1. It uses the math symbol font from the Windows 10 calculator app, instead of text like "sqrt". Minus and decimal point are easily distinguishable.
  2. MC and MR buttons are disabled when nothing is stored in memory
  3. Decimal point is not shown until you add one
  4. Scientific mode not supported yet

TODO

Bugs:

  • Is there a race condition where script.js loads too late to define initialise for engine.js to call? or is order guaranteed even with async somehow? is async really helping in some way?
  • .memory-item .btns > * aren't buttons (and nesting buttons is a bad UI pattern, and nesting (real) buttons doesn't work in HTML)
  • There's a layout bug where the Backspace/CE/C buttons can be the wrong size and then they snap back to the right size when clicking or trying to inspect the elements. I think it only happens when changing the CSS with live-server though, so probably not a problem in production.

Todo:

  • Display errors
  • Scientific mode
  • Right click -> What's this?
  • woff in addition to ttf (could steal from uno or convert from ttf), or remove font and use shitty ASCII representation..?
  • Improve Copy/Paste function availability using older clipboard access APIs? Like handle paste event? (keyboard only)
  • Increase limit of digits you can enter, as it was longer in old Windows
  • When pasting, handle operators, not just numbers and special colon commands