An open API service indexing awesome lists of open source software.

https://github.com/rojcode/temperatureconverter

🌡️ Simple web app for converting temperatures between Celsius and Fahrenheit. Enjoy an intuitive interface, dynamic unit switching, and error handling. Perfect for quick and hassle-free temperature conversions!
https://github.com/rojcode/temperatureconverter

frontend javascript temperatureconversion webapplication

Last synced: 2 months ago
JSON representation

🌡️ Simple web app for converting temperatures between Celsius and Fahrenheit. Enjoy an intuitive interface, dynamic unit switching, and error handling. Perfect for quick and hassle-free temperature conversions!

Awesome Lists containing this project

README

        

# Temperature Conversion Web App

This web application allows users to convert temperatures between Celsius and Fahrenheit. It provides two main conversion functions and a user-friendly interface.
![App Screenshot](https://s6.uupload.ir/files/screen_shot_1402-10-29_at_10.35.08_9l93.png)

## Features

1. **Celsius to Fahrenheit Conversion**
- Input a temperature in Celsius and convert it to Fahrenheit.

2. **Fahrenheit to Celsius Conversion**
- Input a temperature in Fahrenheit and convert it to Celsius.

3. **Dynamic Unit Switching**
- Toggle between Celsius and Fahrenheit units for conversion.

4. **Clear Data**
- Clear input and result data with the click of a button.

5. **Error Handling**
- Display error messages in a modal when necessary.

## Usage

1. Enter a temperature value in the input field.
2. Choose the desired conversion type (Celsius to Fahrenheit or Fahrenheit to Celsius).
3. Click the "Convert!" button to see the result.
4. Use the "Change" button to switch between Celsius and Fahrenheit units.
5. Clear input and result data by clicking the "Clear" button.

## Code Structure

The project is structured into three main files:

1. **index.html**
- Contains the HTML structure of the web page, including input fields, buttons, and modals.

2. **style.css**
- Defines the styling for the web page, ensuring a clean and responsive design.

3. **script.js**
- Implements the logic for temperature conversion, user input handling, and modal functionality.

## How to Contribute

If you would like to contribute to this project, feel free to submit pull requests or open issues. Contributions are welcome!

## License

This project is licensed under the [MIT License](LICENSE), so feel free to use it and modify it according to your needs.

## Author

Mobin Valadi

Feel free to reach out if you have any questions or suggestions!