Commit graph odin-calculator/script.js
Author SHA1 Message Date
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