Skip to content

A lightweight calculator web app built with pure HTML, CSS, and JavaScript. Includes: - Dark/Light theme toggle - Keyboard input support (Enter, Backspace, Escape) - Calculation history (last 3 results) - Percentage operator (%) handling Fully responsive and deployed via GitHub Pages.

License

Notifications You must be signed in to change notification settings

mehdi-zayani/simple-js-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple JS Calculator

GitHub license GitHub last commit Built with HTML Built with CSS Built with JS

A lightweight calculator built with pure HTML, CSS, and JavaScript.
Simple UI, keyboard-free usage, and instant calculations — built as a minimal front-end project.


Live Demo

View on GitHub Pages


Features

  • Basic arithmetic operations (+, −, ×, ÷, %)
  • Clear and delete functions
  • Error handling for invalid expressions
  • Clean, responsive layout
  • Lightweight and dependency-free

Tech Stack

  • HTML5
  • CSS3
  • Vanilla JavaScript

Future Improvements

  • Add dark/light mode toggle
  • Support keyboard input
  • Add calculation history

License

This project is open source and available under the APACHE License.


Author

Mehdi Zayani
GitHub: @mehdi-zayani

About

A lightweight calculator web app built with pure HTML, CSS, and JavaScript. Includes: - Dark/Light theme toggle - Keyboard input support (Enter, Backspace, Escape) - Calculation history (last 3 results) - Percentage operator (%) handling Fully responsive and deployed via GitHub Pages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published