Vanilla JavaScript calculator with basic arithmetic operations, history of calculations, and keyboard support. The calculator has a responsive design and supports both light and dark themes.
- Basic arithmetic operations
- History of calculations in
local storage - Validation of input on the fly
- Dark and light themes
- Keyboard support, including history navigation
- Responsive design
- Latvian language support (isn't planned)
- Display of intermediate results
- Editable input field with cursor support
- Clone the repository
git clone https://github.com/R-udren/calculator.git
- Navigate to the project directory
cd calculator - Install the dependencies
npm install
- Start the development server
npm run dev
- Build the production-ready files
npm run build
- Preview the built app (optional, ensures everything works as expected after the build)
npm run preview
- Use the calculator as you would any other calculator
- Use the keyboard to navigate the calculator and history
Enteror=to calculateArrowUpandArrowDownto navigate historyBackspaceorDeleteto delete the last characterEscape,C,Ctrl + Backspaceto clear the inputCtrl + cto copy the result to the clipboard

