Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator Application

This is a simple calculator application built using HTML, CSS, and JavaScript. It features both light and dark modes, a responsive layout, and a toggle switch to change themes. The calculator supports basic arithmetic operations and a history display.

Table of Contents

Features

  • Light and dark mode toggle
  • Basic arithmetic operations: addition, subtraction, multiplication, division, percentage
  • History display
  • Responsive design
  • Clear and delete functions

Demo

Check out the live demo of the calculator application here.

Installation

  1. Clone the repository:

    git clone https://github.com/krishna09-dev/calculator.git
    
  2. Navigate to the project directory:

    cd calculator
  3. Open index.html in your browser to view the calculator.

Usage

Calculator Functions

  • Clear (C): Clears the current input and history.
  • Delete (<i class="fa-solid fa-delete-left"></i>): Deletes the last character in the current input.
  • Percentage (%): Calculates the percentage of the current input.
  • Operators (/, *, -, +): Perform basic arithmetic operations.
  • Equal (=): Calculates the result of the current input.

Light and Dark Mode Toggle

  • Use the toggle switch to switch between light and dark mode. The calculator will apply the respective styles.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any changes.

  1. Fork the repository
  2. Create a new branch: git checkout -b feature-branch
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature-branch
  5. Open a pull request

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages