Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Calculator

A clean, responsive calculator built with HTML, CSS & JavaScript

Live Demo Source Code

HTML5 CSS3 JavaScript GitHub Pages

---

📌 Overview

Calculator is a lightweight, responsive web calculator created to practice the fundamentals of frontend development and JavaScript-based application logic.

The project provides a simple interface for performing common arithmetic operations while focusing on:

  • Semantic HTML structure
  • CSS-based responsive interface design
  • JavaScript event handling
  • Calculator logic and state
  • User interaction
  • Git & GitHub workflow
  • Web deployment with GitHub Pages

🔗 Live Application: https://muneeb-pt.github.io/Calculator/


🎯 Project Purpose

This project was developed as an early hands-on internship/training project during my learning journey involving Estelle Darcy AI & Automations Pvt Ltd and the Coding Club at KMEA Engineering College.

The primary goal was not simply to create a calculator, but to understand how a complete small web application moves from:

Idea ↓ UI Design ↓ HTML Structure ↓ CSS Styling ↓ JavaScript Logic ↓ Testing ↓ Git / GitHub ↓ Deployment ↓ Live Web Application


✨ Features

  • ➕ Addition
  • ➖ Subtraction
  • ✖️ Multiplication
  • ➗ Division
  • 🔢 Numeric input
  • 🧹 Clear / reset functionality
  • 🔟 Decimal number support
  • 📱 Responsive interface
  • ⚡ Lightweight and fast
  • 🌐 Deployed using GitHub Pages

«Feature details should be kept synchronized with the actual implementation as the project evolves.»


🖥️ Live Demo

Try the Calculator

Open Live Demo

---

📸 Preview

Add screenshots of the current application here.

Recommended:

screenshots/ ├── desktop.png ├── mobile.png └── calculator-operation.png

Then add:

Calculator Desktop Preview

A real screenshot is strongly recommended because visitors can understand the project immediately without opening the demo.


🛠️ Technology Stack

Technology| Purpose HTML5| Application structure CSS3| Layout, styling & responsiveness JavaScript| Calculator logic & interactions Git| Version control GitHub| Source-code hosting GitHub Pages| Deployment


🧩 Project Structure

Calculator/ │ ├── index.html # Application structure ├── style.css # Styling and responsive layout ├── script.js # Calculator logic and interactions ├── README.md # Project documentation └── screenshots/ # Project screenshots


⚙️ How It Works

The calculator follows a simple client-side architecture:

         USER
           │
           ▼
    ┌──────────────┐
    │ Calculator UI│
    └──────┬───────┘
           │
           ▼
    ┌──────────────┐
    │ JavaScript   │
    │ Event Logic  │
    └──────┬───────┘
           │
           ▼
    ┌──────────────┐
    │ Calculation  │
    │ Logic        │
    └──────┬───────┘
           │
           ▼
    ┌──────────────┐
    │ Result / UI  │
    │ Update       │
    └──────────────┘

The application runs entirely in the browser and does not require a backend server.


🚀 Run Locally

Prerequisites

You only need:

  • A modern web browser
  • Git

Clone

git clone https://github.com/Muneeb-PT/Calculator.git

Enter the project

cd Calculator

Run

Because this is a static frontend project, you can open:

index.html

directly in your browser.

For a better development workflow, you can also use a local development server such as VS Code Live Server.


🧪 Testing Checklist

Before deployment, test:

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Decimal calculations
  • Clear/reset
  • Multiple operations
  • Large numbers
  • Invalid input
  • Division by zero
  • Mobile layout
  • Desktop layout
  • Browser compatibility

📱 Responsive Design

The interface is intended to provide a consistent experience across:

Desktop │ ├── Laptop ├── Monitor │ Mobile │ ├── Android └── iOS

Future iterations can further improve accessibility, keyboard support and small-screen usability.


🎓 Learning Outcomes

This project helped strengthen my understanding of:

HTML

  • Page structure
  • Semantic elements
  • Form/input concepts
  • Button interactions

CSS

  • Layout
  • Flexbox/Grid
  • Responsive design
  • Visual hierarchy
  • Component styling

JavaScript

  • Variables and functions
  • DOM manipulation
  • Event handling
  • Conditional logic
  • Arithmetic operations
  • Application state

Git & GitHub

  • Repository management
  • Commit-based development
  • Remote repositories
  • GitHub Pages deployment

💼 Training / Internship Context

This project was developed during my early practical development journey through internship/training activities involving Estelle Darcy AI & Automations Pvt Ltd and the Coding Club at KMEA Engineering College.

The experience helped connect classroom concepts with practical development workflows, particularly:

  • Building a project from scratch
  • Debugging frontend issues
  • Using Git and GitHub
  • Iterating through multiple commits
  • Deploying a working web application
  • Learning through hands-on implementation

🔮 Future Improvements

Planned ideas for future versions:

  • ⌨️ Full keyboard support
  • 🧮 Calculation history
  • 📋 Copy result button
  • 🌙 Dark/light theme
  • 📐 Scientific calculator mode
  • ♿ Improved accessibility
  • 🧪 Automated testing
  • 💾 Local calculation history
  • 📱 Improved mobile UX
  • ⚡ Performance and code cleanup
  • 🎨 UI/UX refinement

📈 Project Evolution

This repository represents an important stage in my development journey:

Beginner Frontend ↓ HTML + CSS ↓ JavaScript Logic ↓ Interactive Applications ↓ React ↓ Backend Development ↓ AI-powered Applications

The calculator is intentionally simple: it represents the foundation from which more complex applications are being built.


🤝 Contributions

This is primarily a personal learning project.

Suggestions, constructive feedback and educational contributions are welcome.

If you would like to experiment with the project:

git clone https://github.com/Muneeb-PT/Calculator.git cd Calculator

Create a feature branch:

git checkout -b feature/your-feature

Commit your changes:

git add . git commit -m "feat: improve calculator functionality"

Push your branch:

git push origin feature/your-feature

Then open a Pull Request.


📄 License

This project is licensed under the MIT License.

See ""LICENSE"" (LICENSE) for details.


👨‍💻 Author

Mohammed Muneeb PT

B.Tech Computer Science & Engineering Undergraduate

Interested in:

"Java" · "Python" · "Backend Engineering" · "AI/ML" · "Web Development" · "Data Structures & Algorithms"


---

🧮 From simple calculations to complex systems.

Learn → Build → Test → Ship → Improve

⭐ If you find this project useful, consider giving it a star.

About

A responsive web calculator built with HTML, CSS and JavaScript as an internship/training project.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages