Commit Graph

69 Commits

Author SHA1 Message Date
filifa a330bef49f set mod label margins as percentages 2025-12-12 01:19:26 -05:00
filifa f11f0a4e4b don't wrap modulus box 2025-12-12 01:12:51 -05:00
filifa dafe3ac7c5 add footer with link to source 2025-12-11 23:49:35 -05:00
filifa b7aae4b1f1 add readme 2025-12-11 23:49:35 -05:00
filifa b02774e725 always return smallest sqrt 2025-12-11 23:49:35 -05:00
filifa 23848c3d0a importScripts consistency 2025-12-11 23:49:35 -05:00
filifa ab0e51ed03 use evaluate and compute more consistently 2025-12-11 23:49:35 -05:00
filifa 409225e81b control the whole evaluation process with a worker 2025-12-11 23:49:35 -05:00
filifa 7e7b805e3e refactor 2025-12-11 23:49:35 -05:00
filifa 6d9b095778 put all initializations together 2025-12-11 23:49:35 -05:00
filifa 9efbe26cdd disable text inputs on long calculations 2025-12-11 23:49:35 -05:00
filifa 9cc7835a2c clear timeout on error too 2025-12-11 23:49:35 -05:00
filifa 688c9871b8 disable buttons during long calculation 2025-12-11 23:49:34 -05:00
filifa a01e6fcac1 set display to calculating using a timer 2025-12-11 23:49:34 -05:00
filifa 1e2a324a66 have compute return instead of post 2025-12-11 23:49:34 -05:00
filifa 064b2c1aeb add error handler 2025-12-11 23:49:34 -05:00
filifa df81091258 move to workers dir 2025-12-11 23:49:34 -05:00
filifa 160cc7480b move worker initiation 2025-12-11 23:49:34 -05:00
filifa fcdf795387 use worker to avoid freezing 2025-12-11 23:49:34 -05:00
filifa 6175224c9b add copyright header 2025-12-11 23:49:34 -05:00
filifa 4e91b1dc14 add multiplicative order button 2025-12-11 23:49:34 -05:00
filifa 39c009beb4 set font size on input selector 2025-12-11 23:49:34 -05:00
filifa e1809ec2c4 use monospace font 2025-12-11 23:49:34 -05:00
filifa 19da0de417 inherit font sizes 2025-12-11 23:49:34 -05:00
filifa d427a83279 display label for expression 2025-12-11 23:49:34 -05:00
filifa c67f6a95f4 error on negative modulus 2025-12-11 23:49:34 -05:00
filifa 219ede5ef3 change error message 2025-12-11 23:49:34 -05:00
filifa 68a06f46ae reorder conditions 2025-12-11 23:49:34 -05:00
filifa f00597cabc display error for invalid modulus 2025-12-11 23:49:34 -05:00
filifa aa1399a574 add special case 2025-12-11 23:49:34 -05:00
filifa f38c0f5063 mod the input 2025-12-11 23:49:34 -05:00
filifa 3f7519bed4 add function for legendre symbol 2025-12-11 23:49:34 -05:00
filifa e55b3c89b0 refactor common logic 2025-12-11 23:49:34 -05:00
filifa f8930cfb4f make sqrt button functional 2025-12-11 23:49:34 -05:00
filifa 48492f0b87 implement tonelli shanks 2025-12-11 23:49:34 -05:00
filifa cb33ef3f34 move math functions to separate file 2025-12-11 23:49:34 -05:00
filifa ea7b808b57 start adding square root functionality 2025-12-11 23:49:34 -05:00
filifa 54a24cce06 change to bigint 2025-12-11 23:49:34 -05:00
filifa 25189661c7 handle unary minus 2025-12-11 23:49:34 -05:00
filifa 42d2e94fe6 try disabling buttons when modulus is focused 2025-12-11 23:49:34 -05:00
filifa 5294860fea per MDN, change type from number to text 2025-12-11 23:49:34 -05:00
filifa e2c6b7f657 evaluate on enter 2025-12-11 23:49:34 -05:00
filifa 328c4b9e22 implement inverse key 2025-12-11 23:49:34 -05:00
filifa 972513ea75 set expr as default input 2025-12-11 23:49:34 -05:00
filifa 20c793b31b do not allow expressions in exponent 2025-12-11 23:49:34 -05:00
filifa 13bec9f40b simplify loop logic a bit 2025-12-11 23:49:34 -05:00
filifa d0f23af972 add license 2025-12-11 23:49:34 -05:00
filifa ec60951f0e get rid of variable 2025-12-11 23:49:34 -05:00
filifa f65aebcdf6 rename function 2025-12-11 23:49:34 -05:00
filifa e68a00a62c split into compute module 2025-12-11 23:49:34 -05:00