Textbox Calculator

Textbox Calculator Used AI

4 devlogs
9h 41m
•  Ship certified
Created by blobbybilb

A browser extension that turns any text input into a spreadsheet-like calculator. (Demo page does NOT require installing an extension!) Supports functions like SIN, IF, PI, STDEV, and more. Also provides a "variable" feature in the extension popup to store and use variables in calculations (and when changed, updates all calculations using that variable).

Extension download: https://github.com/arjver/textbox-calculator/raw/refs/heads/main/dist.zip

Timeline

Ship 1

1 payout of shell 81.0 shells

blobbybilb

about 1 month ago

blobbybilb Covers 4 devlogs and 9h 41m

Added more advanced formulas (spreadsheet-like), and debugged that... (and made a page to test these). Also updated extension popup design to match the testing page.

Added a demo page that doesn't need extension functionality to use.

Update attachment

After a bit more debugging I got it to work. Started replacing the very simple expression evaluation code (mostly just there for testing) to the actual spreadsheet-style formula evaluator (like only evaluating if starting with equal sign, multi-operation expressions, etc.).

Also added a feature to make it so that when the user refocuses the input, it restores the original expression. Currently I'm storing the expression directly as an attribute in the element, but I think that could cause problems later.

Spend a lot of time debugging the expression evaluation... browser extensions are annoying to debug. Also made a test page to help with that, which I'll probably turn into a standalone demo page later.

Update attachment

Added the basic functionality, and started working on the extension popup. It lets you add variables. Started working on the textbox calculations part as well but I want to make it have formulas like spreadsheet cells so that will probably take a while to implement.

Update attachment