From f8a740a4e7d8dc7953311fe0c8d047884c7fccb1 Mon Sep 17 00:00:00 2001 From: kcee917 Date: Wed, 6 Jan 2021 19:19:00 -0500 Subject: [PATCH 1/2] Complete Temp Converter Lab --- .vscode/launch.json | 15 +++++++++++++++ TSconverter.css | 38 ++++++++++++++++++++++++++++++++++++++ TSconverter.js | 6 ++++++ index.html | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 TSconverter.css create mode 100644 TSconverter.js create mode 100644 index.html diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7a9dfa0 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/TSconverter.css b/TSconverter.css new file mode 100644 index 0000000..b1be789 --- /dev/null +++ b/TSconverter.css @@ -0,0 +1,38 @@ +.container { + border: black solid 2px; + display: flex; + flex-direction: column; + width: 450px; + padding: 15px; + margin-top: 120px; + margin-left:auto; + margin-right: auto; + margin-bottom: auto; +} + +.align{ + display: flex; + align-items: center; + justify-content: center; + } + +.fhr{ + display: flex; + flex-wrap: nowrap; + justify-content: space-between; + } + +.tmp{ + font-weight: bold; + } + +#btn { + border: solid blue 1px; + background-color: lightblue; +} + +#userInput { + width: 70px; + text-align: center; +} + diff --git a/TSconverter.js b/TSconverter.js new file mode 100644 index 0000000..4db5cad --- /dev/null +++ b/TSconverter.js @@ -0,0 +1,6 @@ +function temperatureConverter(valNum) { + valNum = parseFloat(valNum); + document.getElementById("outputCelsius").innerHTML=(valNum-32)/1.8; + } + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..9347e84 --- /dev/null +++ b/index.html @@ -0,0 +1,35 @@ + + + + + + Temp converter + + + + +
+

Temperature Scale Converter

+ +
+ +
+ +
+ + + +
+ +

+ +
+ + +
+ + + + + + From b090961df2dc8d986dfa9ed9041366f5369fc803 Mon Sep 17 00:00:00 2001 From: kcee917 Date: Fri, 26 Feb 2021 13:12:55 -0500 Subject: [PATCH 2/2] push code --- .vscode/settings.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f673a71 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5502 +} \ No newline at end of file