Skip to content

zarnab-dev/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Professional JS Calculator

A modern, responsive web-based calculator designed with a focus on user experience and utility. This project goes beyond basic arithmetic by providing a persistent history log and a fluid, tactile interface.

Features

  • Real-time History Panel: Keeps track of your previous calculations so you never lose your data.
  • Tactile Feedback: Smooth CSS transitions and active scaling effects on every button press.
  • Keyboard Support: Use your physical Numpad or number row for lightning-fast calculations.
  • Fully Responsive: Designed with a grid layout that works perfectly on both desktop and mobile screens.
  • Smart History Interaction: Click any item in the history panel to instantly load that result back into the main display.

Design Palette

The interface uses a specialized "Slate & Azure" color scheme for high readability and reduced eye strain:

  • Background: #0f172a (Deep Slate)
  • Calculator Body: #1e293b
  • Accent (Equals): #38bdf8 (Azure Blue)
  • Operators: #f59e0b (Amber)

Built With

  • HTML5: Semantic structure for accessibility.
  • CSS3: Advanced CSS Grid and custom variables (:root) for easy skinning.
  • Vanilla JavaScript: Lightweight logic without the need for external libraries or frameworks.

Getting Started

  1. Clone the repository
    git clone [https://github.com/yourusername/js-calculator.git](https://github.com/yourusername/js-calculator.git)
  2. Open the project Simply double-click Calculator.html to run it in any modern web browser.

Keyboard Shortcuts

Key Action
0-9 Input Numbers
. Decimal Point
+, -, *, / Operations
Enter / = Calculate Result
Backspace Delete last digit
Esc Clear all (AC)

About

A sleek, high-performance web calculator featuring a real-time history panel, responsive dark-mode UI, and full keyboard support. Built with vanilla JavaScript, HTML5, and CSS3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors