Skip to content

Nehir0109/temperature-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Temperature Converter πŸŒ‘οΈπŸ”„

Introduction

Welcome to the Temperature Converter documentation! This web application allows users to convert temperatures between Celsius and Fahrenheit, displaying the results dynamically using virtual thermometers.

Files

  • index.html: Defines the structure of the web page.
  • styles.css: Provides styling for the HTML elements, including the thermometers.
  • index.js: Implements the JavaScript logic for temperature conversion and dynamic updates.

Usage

To use the Temperature Converter:

1-) Open https://nehir-temperature-converter.netlify.app/ in your web browser.

2-) Enter a temperature value in the input field.

3-) Select the unit of the input temperature (Celsius or Fahrenheit).

4-) Click the "Convert" button to see the converted value and the updated thermometer levels.

Functionality

Dynamic Thermometers:

  • The liquid level in the thermometers changes based on the temperature input.
  • If Celsius is selected, the Fahrenheit thermometer shows the input value, and vice versa.

Temperature Conversion:

  • Converts Celsius to Fahrenheit and Fahrenheit to Celsius.
  • Displays the result below the converter, with a message indicating the conversion.

Error Handling:

  • If an invalid or empty input is provided, an error message is displayed, and the thermometers reset.

Conclusion

The Temperature Converter offers a simple, interactive way to visualize temperature conversions between Celsius and Fahrenheit. Open the https://nehir-temperature-converter.netlify.app/ to experience the application. Feel free to explore, customize, and reach out for any questions or improvements!