Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khaledashrafh/calculator
This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.
https://github.com/khaledashrafh/calculator
calculator css3 html5 javascript simple-calculator
Last synced: 15 days ago
JSON representation
This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.
- Host: GitHub
- URL: https://github.com/khaledashrafh/calculator
- Owner: KhaledAshrafH
- License: mit
- Created: 2021-12-26T23:18:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T07:41:26.000Z (over 1 year ago)
- Last Synced: 2024-12-07T11:09:05.610Z (15 days ago)
- Topics: calculator, css3, html5, javascript, simple-calculator
- Language: HTML
- Homepage:
- Size: 2.28 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Calculator
This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.
## Features
- The calculator has a user-friendly interface with buttons for digits and operators.
- The calculator can handle decimal numbers and negative numbers.
- The calculator can display the current expression and the result on the screen.
- The calculator can clear the current expression or delete the last character with the C and DEL buttons respectively.
- The calculator can evaluate the current expression with the = button or by pressing the Enter key.## Demo
You can try out the calculator app [here](https://khaledashraf.github.io/Calculator/).
## Installation
To run the calculator app locally, you need to clone this repo and open the index.html file in your browser. Alternatively, you can use a live server extension in your code editor.
## Usage
To use the calculator app, you can either click on the buttons with your mouse or use your keyboard. The keyboard mappings are as follows:
- 0-9: Digits
- +, -, *, /: Operators
- .: Decimal point
- -: Negative sign (press twice to toggle)
- Enter: Evaluate
- Backspace: Delete
- Escape: Clear## License
This project is licensed under the MIT License - see the [LICENSE] file for details.
## Author
This project is created by [Khaled Ashraf](https://github.com/KhaledAshrafH). You can contact me at [My Email]([email protected]) or follow/add me on [My Facebook](https://www.facebook.com/5aleda4rf/).