Skip to content

codeshiva10/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

A simple, responsive web-based calculator built with HTML, CSS, and JavaScript.
This project performs basic arithmetic operations and is designed to be beginner-friendly, making it a good starting point for contributors.


✨ Features

  • Basic operations: addition, subtraction, multiplication, division
  • Clear (C) and equals (=) functionality
  • Responsive UI with styled buttons
  • Error handling for invalid inputs
  • Lightweight and fast – no dependencies

🚀 Demo

You can run the calculator locally by opening index.html in your browser.
(Optionally, maintainers can enable GitHub Pages for a live demo.)


🛠️ Setup

  1. Clone the repository:
    git clone https://github.com/codeshiva10/calculator.git
  2. Navigate into the folder:
    cd calculator
  3. Open index.html in your browser. That’s it!

🤝 Contributing

Contributions are welcome!
Here are some ideas you can help with:

  • Add keyboard support for inputs
  • Improve accessibility (ARIA labels, color contrast)
  • Add percentage and sign toggle (±) functions
  • Replace eval with a safer expression parser
  • Improve styling and animations

To contribute:

  1. Fork the repo
  2. Create a new branch (git checkout -b feat-new-feature)
  3. Commit your changes (git commit -m "Add new feature")
  4. Push to your fork (git push origin feat-new-feature)
  5. Open a Pull Request 🎉

About

this is small work...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •