Advanced Glassmorphism Calculator is a high-precision, responsive scientific calculator web application designed with modern glassmorphism aesthetics, fluid micro-interactions, persistent calculation history, and synthesized audio feedback.
-
๐ Basic & Advanced Scientific Operations:
- Trigonometric functions:
sin,cos,tan(with radians/degrees modes) - Logarithmic operations:
logโโ,ln - Exponentials, square roots, factorials (
n!), powers (xสธ), percentages (%), and constants ($\pi, e$ ).
- Trigonometric functions:
-
๐จ Glassmorphism Design System:
- Multi-layered frosted glass effect with CSS
backdrop-filter: blur(16px). - Ambient glowing gradients, reactive ripple button presses, and neon hover highlights.
- Multi-layered frosted glass effect with CSS
-
๐ Dark / Light Mode Switching:
- Smooth 1-click theme transition with color variable adaptation and saved user preference.
-
๐ Calculation History Tape:
- Automatically records previous equations and results to browser
localStorage. - Re-insert past results directly into your current formula with a single click.
- Automatically records previous equations and results to browser
-
๐พ Memory Registers:
- Standard memory capabilities:
MC(Clear),MR(Recall),M+(Add), andM-(Subtract) with visual indicators.
- Standard memory capabilities:
-
โจ๏ธ Complete Keyboard Navigation:
- Full hardware keyboard mapping for lightning-fast calculations without touching the mouse.
-
๐๏ธ Web Speech Voice Input:
- Experimental voice input recognition allowing you to speak mathematical operations aloud (supported on Chrome/Edge).
-
๐ Web Audio API Sound Effects:
- Subtle synthesized mechanical clicks and feedback tones generated procedurally via the browser's native audio engine.
-
๐ก๏ธ Secure Mathematical Evaluation:
- Strict input sanitization and AST-based parsing that guards against insecure global
evalvulnerabilities.
- Strict input sanitization and AST-based parsing that guards against insecure global
| Key | Operation |
|---|---|
0 โ 9, . |
Numeric input and decimal point |
+, -, *, / |
Basic arithmetic operators |
Enter or = |
Calculate result |
Backspace |
Delete last character |
Escape |
Clear calculation display (C) |
( and ) |
Parentheses grouping |
Ctrl + C |
Copy current calculation result to clipboard |
- HTML5: Semantic markup with ARIA accessibility roles.
- CSS3 / Vanilla CSS: Custom properties (CSS Variables), backdrop filters, flexbox, grid, and CSS keyframe animations.
- JavaScript (ES6+): Zero external npm dependencies. Native DOM manipulation, LocalStorage API, Web Audio API oscillator synthesis, and Web Speech API.
No installation, build tools, or server setup needed!
-
Clone the repository:
git clone https://github.com/codexanjan/digitalcalculator.git cd digitalcalculator -
Open the app: Simply double-click
index.htmlto open it directly in your favorite web browser, or serve it with any static server:npx serve .
digitalcalculator/
โโโ assets/
โ โโโ preview.png # High-resolution showcase banner
โโโ index.html # Application layout & semantic structure
โโโ style.css # Glassmorphism themes, responsive grid, animations
โโโ script.js # Calculation engine, audio synthesis, history logic
โโโ SECURITY.md # Security policy & reporting
โโโ README.md # Project documentation
Distributed under the MIT License. See LICENSE for details.
Made with โค๏ธ by Anjan Shetty
