Welcome to the Mod Calculator project! This web application is a simple calculator built using HTML, CSS, and JavaScript. The project showcases the concepts of throttling and debouncing to enhance user experience and optimize performance.
- Basic arithmetic operations: addition, subtraction, multiplication, and division.
- Modulo operation functionality.
- Throttling and debouncing implementation for improved performance and user experience.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Web browser (Chrome, Firefox, Safari, etc.)
- Clone the repository to your local machine:
git clone https://github.com/Sairajepawar/mod-calculator.git
- Open the project folder:
cd mod-calculator
- Open
index.html
in your preferred web browser.
- Enter two numbers in the input fields.
- And result will be automatically updated.
-
Throttling: The calculator uses throttling to limit the frequency of function execution, ensuring that calculations are performed at a steady rate. This prevents the calculator from being overwhelmed with rapid user input.
-
Debouncing: Input values are debounced, delaying the calculation until a pause in user input. This reduces unnecessary computations and enhances the overall performance of the calculator.
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your fork.
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.