diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..9050ba1 --- /dev/null +++ b/index.html @@ -0,0 +1,33 @@ + + + + + + + + + Document + + +
+
+

Temperature Scale Convertor

+ +

Fahrenheit

+
+
+
+
+
+ +
+
+ +
+
+ + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..1c1e93e --- /dev/null +++ b/script.js @@ -0,0 +1,11 @@ + + +function tempConvert() { + let inputFahrenheit=document.getElementById("f_temp_value").value; + let answer = (inputFahrenheit - 32) * 5 / 9; + document.getElementById("outputCelcius").innerHTML = answer; + console.log(answer); + +} + + diff --git a/style.css b/style.css new file mode 100644 index 0000000..6d6a4fe --- /dev/null +++ b/style.css @@ -0,0 +1,84 @@ +* { + box-sizing: border-box; +} + +main { + margin: auto; + margin-top: 25px; + width: 750px; + height: 450px; + border: 2px solid black; + padding-right: 15px; + padding-left: 15px; + font-family: Arial, Helvetica, sans-serif; + font-weight: bold; +} + +h1 { + text-align: center; + font-size: 45px; +} + +footer { + text-align: center; + font-size: 25px; + font-weight: bolder; +} + +container { + display: grid; + justify-items: center; + padding-top: 40px; + padding-bottom: 10px; + margin-bottom: 40px; + grid-template-columns: repeat(3, 1fr); + font-size: 25px; +} + +input { + width: 150px; + height: 30px; + padding-top: 18px; + padding-bottom: 18px; + border: 2px solid black; + text-align: center; + font-size: 25px; + font-weight: 500; +} + +.leftDiv { + padding-top: 10px; + font-size: 25px; +} + +.midDiv { + text-align: center; + align-items: center; + margin-bottom: 30px; +} + +.rightDiv { + margin-left: auto; + margin-right: auto; + padding-top: 30px; +} + +.calcButton { + font-size: 25px; + padding: 5px 25px 5px 25px; + border-radius: 0; + border: none; + background-color: #7da9fc59; + font-weight: bold; +} + +#btn { + border: 2px solid #29519b8e; +} + +#c_temp { + border: none; + font-size: 25px; + font-family: Arial, Helvetica, sans-serif; + font-weight: 500; +} \ No newline at end of file