Commit graph odin-calculator/script.js
Author SHA1 Message Date
574e15e8a1 Add tooltip styles; allow for both c and C to be pressed for clear 2023-12-28 11:41:43 -07:00
8ceafac46f Add tooltips, pointer style, and change CE class name 2023-12-28 11:22:22 -07:00
e8d3e81d68 Remove comments/console messages/unused code and update clear error functionality 2023-12-28 10:29:31 -07:00
6fd432f906 Add visual feedback for keyboard input 2023-12-28 09:44:07 -07:00
013623226d Get minus sign to act as both a sign change toggler and operator depending on on the context 2023-12-28 09:00:35 -07:00
97c9db13b9 Fix sign change toggle 2023-12-28 07:34:04 -07:00
0f23a7d239 Add key inputs for most buttons 2023-12-28 00:20:46 -07:00
bc12cd9731 Clear topScreen on number press after operation is fully evaluated 2023-12-27 21:55:56 -07:00
f1bd317ab8 Add sign change function, fix how 0 and NaN are handled, replace numbers after evaluation is completed 2023-12-27 21:51:22 -07:00
a4621cda00 Fix how equals handles numbers that have no operator 2023-12-27 21:16:55 -07:00
b99261cee3 Fix how 0 and NaN are handled 2023-12-27 21:07:13 -07:00
85ab656c75 Delete extra script file 2023-12-27 20:26:04 -07:00
f94479f2d2 Create secondary script for troubleshooting and code rewrite 2023-12-27 16:51:02 -07:00
64ac97faaa Add inOps variable to keep track of operations 2023-12-27 14:30:19 -07:00
5cb8f57879 Add functionality to clear top screen 2023-12-27 14:14:07 -07:00
61a3c3b929 Move initial calculations to top screen 2023-12-27 13:52:37 -07:00
92629c81fe Split display 2023-12-27 13:40:15 -07:00
72579e7c76 Add formatting to index.html, handle empty strings in CE and 0 with equals 2023-12-27 08:57:39 -07:00
89252d8a6a Do not erase 0 if it is the only number on the screen 2023-12-27 08:38:39 -07:00
4f467fa2b2 Change classes and class handling for clear all and clear error buttons 2023-12-27 02:25:18 -07:00
b6a5f65d67 Handle floating point issues on multiplication and division 2023-12-27 02:16:30 -07:00
23fb4be135 Handle floating point issues 2023-12-27 01:51:17 -07:00
39adf3af56 Add clear, clear error and decimal buttons 2023-12-27 00:55:32 -07:00
fcadc3cc9a Fix issue of pressing = without pending operation 2023-12-26 22:44:28 -07:00
322a14b9f8 Fix spacing issue 2023-12-26 22:35:59 -07:00
a7fd6ca4e5 Add space before and after operator 2023-12-26 22:29:32 -07:00
b23ce98b4e Add calculator call to operator section 2023-12-26 21:45:12 -07:00
dce94d7165 Call calculator from dipslayToScreen 2023-12-26 21:25:33 -07:00
dc49e65560 Add condition to check for existing operators on screen 2023-12-26 20:44:05 -07:00
00333750f5 Fix typo 2023-12-26 20:12:58 -07:00
ea4c135b29 Add function to update content of screen 2023-12-26 20:11:44 -07:00
acc49ea098 Add basic functions 2023-12-26 17:15:28 -07:00
7f0d5c8fff Add basic functions 2023-12-26 17:12:47 -07:00