A simple, interactive web-based counter application that allows users to increment, decrement, save, and reset a count. This project is ideal for learning basic JavaScript DOM manipulation, event handling, and simple UI design with HTML and CSS.
- Increment & Decrement: Increase or decrease the counter value using the "+" and "—" buttons.
- Save: Store the current count as a previous entry and reset the counter to zero.
- Reset: Reset the counter to zero without saving.
- History: View a list of all previously saved counts.
- Responsive Design: Works well on both desktop and mobile devices.
- A modern web browser (Chrome, Firefox, Edge, etc.)
- Clone or Download the Repository:
- Download the ZIP or clone the repo:
git clone https://github.com/yourusername/counter-app.git
- Download the ZIP or clone the repo:
- Navigate to the Project Directory:
cd counter-app - Open
index.htmlin your browser:- Double-click
index.htmlor open it with your preferred browser.
- Double-click
If you use VS Code, you can use the Live Server extension for hot-reloading:
- Install Live Server.
- Right-click
index.htmland select Open with Live Server.
counter-app/
│
├── index.html
├── style.css
├── main.js
- Increment/Decrement: Click "+" to increase or "—" to decrease the counter.
- Save: Click "Save" to store the current count and reset the counter.
- Reset: Click "Reset" to clear the counter without saving.
- View History: Check the list below the buttons to see saved counts.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Make your changes
- Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature-branch) - Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
GiftinTech
