https://github.com/sohom09/calculator
A sleek, responsive Calculator Web Application built using HTML, CSS, and JavaScript.
https://github.com/sohom09/calculator
calculator coding css3 html-css-javascript html5 javascript project
Last synced: 22 days ago
JSON representation
A sleek, responsive Calculator Web Application built using HTML, CSS, and JavaScript.
- Host: GitHub
- URL: https://github.com/sohom09/calculator
- Owner: sohom09
- Created: 2025-07-30T15:57:10.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-30T16:14:39.000Z (11 months ago)
- Last Synced: 2025-07-30T18:54:27.857Z (11 months ago)
- Topics: calculator, coding, css3, html-css-javascript, html5, javascript, project
- Language: CSS
- Homepage:
- Size: 514 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ Gradient Calculator Web App
A sleek, responsive **Calculator Web Application** built using **HTML**, **CSS**, and **JavaScript**. This project features a beautiful **linear gradient light/dark mode toggle**, basic arithmetic operations, percentage calculations, button **sound effects**, and full **keyboard input support** Creating a basic calculator to do basic arithmetic operations. Using HTML, CSS, JS..
---
## ๐ฎ Features
- ๐จ **Light & Dark Themes** with smooth linear gradients
- ๐งฎ Basic operations: `+`, `โ`, `ร`, `รท`, `.`, `%`
- ๐ **Theme toggle** (โ๏ธ Light โ ๐ Dark)
- ๐ Button **click sound effects**
- โ **Clear all** function (`AC` and โ)
- โจ๏ธ **Keyboard support** for all inputs
- ๐ฑ Fully **responsive design** for mobile and desktop
---
## ๐ Live Preview
๐ [Click to open the calculator](https://htmlpreview.github.io/?https://github.com/sohom09/calculator/blob/main/index.html)
---
## ๐ผ๏ธ Screenshots
| Light Mode | Dark Mode |
|------------|-----------|
|  |  |
---
## ๐ Project Structure
- ๐ calculator-gradient-theme/
โโโ index.html # HTML layout and structure
โโโ style.css # Linear gradient themes, layout, responsiveness
โโโ script.js # Logic, sound, toggle, keyboard input
โโโ click.mp3 # Button click sound effect
โโโ README.md # Project documentation
---
## ๐ How to Run Locally
1. **Clone the repository**
```bash
git clone https://github.com/sohom09/calculator.git
## 2. Navigate to the project folder
```bash
cd calculator-gradient-theme
## 3. Open index.html in your browser.
### ๐ ๏ธ Tech Stack
- HTML5 โ Markup structure
- CSS3 โ Styling, linear gradients, responsive design
- JavaScript (Vanilla) โ Calculator logic, DOM interaction, sound effects
### ๐ Notes
- The % button divides the current value by 100.
- The ร icon acts as a visual "Clear All" (same as AC).
- eval() is used for expression evaluation โ secure for local projects, but not recommended in production apps.
### ๐ก Future Enhancements
๐ง Calculation history
๐ Scientific calculator mode (sin, cos, log, etc.)
๐พ Remember theme preference using localStorage
### ๐ค Contribution
Feel free to fork the repo, submit pull requests, or suggest features!
### ๐ License
This project is open-source and available under the MIT License.
### ๐ค Author
- Developed by Sohom Chakraborty
### ๐ GitHub Profile