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/.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 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 @@ + + +
+ + +