Skip to content

🌡️ 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!

License

Notifications You must be signed in to change notification settings

rojcode/TemperatureConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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, 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!

About

🌡️ 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!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published