SidAsif / Calculator

This is a Simple Calculator which perform various mathematical functions such as a addition , subtraction , modulus etc.

Home Page:https://sidasif.github.io/Calculator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculator

Overview

This project is a simple, responsive calculator web application that supports basic arithmetic operations. The calculator is designed to work seamlessly across various screen sizes, from mobile devices to desktop screens. It includes a dark mode toggle for better accessibility and user experience.

Features

  • Basic arithmetic operations: addition, subtraction, multiplication, and division.
  • Clear (AC) and delete (DEL) functions.
  • Percentage calculation.
  • Responsive design for all screen sizes.
  • Dark mode toggle.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Bootstrap Icons

Getting Started

Prerequisites

To run this project locally, you need a web browser (like Chrome, Firefox, or Safari).

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/calculator.git
  2. Navigate to the project directory:

    cd calculator
  3. Open index.html in your preferred web browser:

    open index.html

Project Structure

  • index.html: The main HTML file containing the structure of the calculator.
  • style.css: The CSS file containing styles for the calculator.
  • calculator.js: The JavaScript file containing the functionality for the calculator.

Usage

  1. Open the calculator in your web browser.
  2. Use the buttons to perform arithmetic operations:
    • AC: Clear the input.
    • %: Calculate the percentage.
    • DEL: Delete the last digit.
    • + - * /: Perform addition, subtraction, multiplication, and division.
    • Dark Mode: Toggle the dark mode using the sun icon at the top.

Customization

You can customize the calculator by modifying the CSS and JavaScript files:

  • CSS: Adjust styles in style.css to change the appearance.
  • JavaScript: Modify calculator.js to change the functionality.

Contributing

Contributions are welcome! Please fork this repository and submit a pull request for any improvements or bug fixes.

  1. Fork the repository.

  2. Create a new branch:

    git checkout -b feature/your-feature-name
  3. Make your changes and commit them:

    git commit -m 'Add some feature'
  4. Push to the branch:

    git push origin feature/your-feature-name
  5. Open a pull request.

Acknowledgments

  • Thanks to Bootstrap Icons for the icon set.
  • Inspired by basic calculator designs and tutorials.

About

This is a Simple Calculator which perform various mathematical functions such as a addition , subtraction , modulus etc.

https://sidasif.github.io/Calculator/


Languages

Language:HTML 34.9%Language:JavaScript 34.1%Language:CSS 31.1%