A sleek, modern calculator with enhanced visual effects and intuitive functionality, featuring a monochromatic black and white design with interactive cursor animations.
- Enhanced Visual Design: Clean black and white interface with subtle animations
- Interactive Cursor: Dynamic cursor with different states (default, hover, click, calculator)
- Scientific Functions: Comprehensive set of scientific calculations
- Memory Functions: Basic memory operations (M+, M-, MR, MC)
- History Panel: Track and reuse previous calculations
- Keyboard Support: Full keyboard navigation and shortcuts
- Responsive Design: Works on all device sizes
- Error Handling: Robust error management for invalid operations
0-9: Number input+,-,*,/: Basic operationsEnteror=: Calculate resultEscape: All Clear (AC)Backspace: Delete last digitCtrl+H: Toggle history panelCtrl+P: Pi (π)Ctrl+E: Euler's number (e)Ctrl+S: Sine functionCtrl+C: Cosine functionCtrl+T: Tangent functionCtrl+L: LogarithmCtrl+Q: Square rootCtrl+R: Reciprocal (1/x)Ctrl+N: Sign change (+/-)Ctrl+A: All ClearCtrl+F: Square (x²)Ctrl+G: Cube (x³)
- Clone or download this repository to your local machine
- Open
index.htmlin your web browser - The calculator is ready to use!
calculator/
├── index.html # Main HTML file
├── README.md # This file
├── sw.js # Service worker for offline functionality
├── css/
│ ├── style.css # Main styling
│ ├── animations.css # Animation effects
│ └── responsive.css # Responsive design
└── js/
├── calculator.js # Core calculator logic
├── ui.js # User interface interactions
├── cursor.js # Interactive cursor functionality
├── animations.js # Visual effects
└── main.js # Application initialization
- Addition, subtraction, multiplication, division
- Percentage calculations
- Decimal point support
- Trigonometric functions (sin, cos, tan)
- Inverse trigonometric functions (asin, acos, atan)
- Hyperbolic functions (sinh, cosh, tanh)
- Logarithmic functions (log, ln, log₂, logᵧ)
- Exponential functions (eˣ, 10ˣ, 2ˣ)
- Square and cube functions
- Square root and cube root
- Power functions (x², x³, xʸ)
- Factorial calculations
- Constants (π, e)
- MC: Memory Clear
- MR: Memory Recall
- M+: Memory Add
- M-: Memory Subtract
- MS: Memory Store
- MRC: Memory Register Clear
The calculator uses a black and white color scheme by default. You can modify the color variables in css/style.css to customize the appearance while maintaining the monochromatic theme.
The calculator works in all modern browsers that support:
- ES6 JavaScript features
- CSS Grid and Flexbox
- CSS Variables
- Modern DOM APIs
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
If you encounter any issues or have questions, please file an issue in the GitHub repository.