Skip to content

About

๐Ÿงฎ Advanced Glassmorphism Calculator - Sleek scientific math engine with history tape, voice input & Web Audio API.

Resources

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Advanced Glassmorphism Calculator

The Next-Generation Scientific Math Engine & Minimalist Glass UI

HTML5 CSS3 JavaScript Web Audio Live Demo License: MIT


Advanced Glassmorphism Calculator Preview


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.


โœจ Features

  • ๐Ÿ“ 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$).
  • ๐ŸŽจ 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.
  • ๐ŸŒ— 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.
  • ๐Ÿ’พ Memory Registers:
    • Standard memory capabilities: MC (Clear), MR (Recall), M+ (Add), and M- (Subtract) with visual indicators.
  • โŒจ๏ธ 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 eval vulnerabilities.

โŒจ๏ธ Keyboard Shortcuts

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

๐Ÿ› ๏ธ Technology Stack

  • 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.

๐Ÿš€ Quick Start

No installation, build tools, or server setup needed!

  1. Clone the repository:

    git clone https://github.com/codexanjan/digitalcalculator.git
    cd digitalcalculator
  2. Open the app: Simply double-click index.html to open it directly in your favorite web browser, or serve it with any static server:

    npx serve .

๐Ÿ“ Repository Structure

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

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for details.



Made with โค๏ธ by Anjan Shetty

GitHub

About

๐Ÿงฎ Advanced Glassmorphism Calculator - Sleek scientific math engine with history tape, voice input & Web Audio API.

Resources

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages