From 183d6a451549cadc176754ddadcbb74d732ad710 Mon Sep 17 00:00:00 2001 From: Vaishnavi Singh <146333957+vaishnavisingh20@users.noreply.github.com> Date: Mon, 16 Oct 2023 06:03:05 -0700 Subject: [PATCH 1/5] Add files via upload temperature converter --- indexsamp.html | 42 ++++++++++++++++++++++++++++++++++++++++++ script.js | 30 ++++++++++++++++++++++++++++++ style.css | 29 +++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 indexsamp.html create mode 100644 script.js create mode 100644 style.css diff --git a/indexsamp.html b/indexsamp.html new file mode 100644 index 00000000..07d43132 --- /dev/null +++ b/indexsamp.html @@ -0,0 +1,42 @@ + + + + + +

TEMPERATURE CONVERTER

+
+
+
+

+
+
+
+ +image +
+
+
+
+

+
+
+
+image +
+
+
+
+

+
+
+
+image +
+
+
+ + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 00000000..8c4314c1 --- /dev/null +++ b/script.js @@ -0,0 +1,30 @@ +let celsius = + document.getElementById('celsius'); + let fahrenheit = + document.getElementById('fahrenheit'); + let kelvin = + document.getElementById('kelvin'); + celsius.oninput = function () { + let f = (parseFloat(celsius.value) * 9) / 5 + 32; + fahrenheit.value = parseFloat(f.toFixed(2)); + + let k = (parseFloat(celsius.value) + 273.15); + kelvin.value = parseFloat(k.toFixed(2)); + } + fahrenheit.oninput = function () { + let c = ((parseFloat( + fahrenheit.value) - 32) * 5) / 9; + celsius.value = parseFloat(c.toFixed(2)); + + let k = (parseFloat( + fahrenheit.value) - 32) * 5 / 9 + 273.15; + kelvin.value = parseFloat(k.toFixed(2)); + } + kelvin.oninput = function () { + let f = (parseFloat( + kelvin.value) - 273.15) * 9 / 5 + 32; + fahrenheit.value = parseFloat(f.toFixed(2)); + + let c = (parseFloat(kelvin.value) - 273.15); + celsius.value = parseFloat(c.toFixed(2)); + } \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 00000000..6c9a2cb2 --- /dev/null +++ b/style.css @@ -0,0 +1,29 @@ +body { + font-family: Arial, sans-serif; + text-align: center; + margin: 0; + padding: 0; + background-color: #f0f0f0; +} + +h1{ + padding:5%; + padding-bottom:3%; + font-size:50px; + color:green; +} + +div{ + padding-left:1% +} + +label{ + margin: 10px 0; +} +input +{ + border:none; + height:50px; + width:200px; + font-size:40px; +} From 19f60b35282ad57741b9a126b93f3f9d1863dfef Mon Sep 17 00:00:00 2001 From: Vaishnavi Singh <146333957+vaishnavisingh20@users.noreply.github.com> Date: Mon, 16 Oct 2023 06:17:17 -0700 Subject: [PATCH 2/5] Delete indexsamp.html --- indexsamp.html | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 indexsamp.html diff --git a/indexsamp.html b/indexsamp.html deleted file mode 100644 index 07d43132..00000000 --- a/indexsamp.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - -

TEMPERATURE CONVERTER

-
-
-
-

-
-
-
- -image -
-
-
-
-

-
-
-
-image -
-
-
-
-

-
-
-
-image -
-
-
- - - \ No newline at end of file From 2cf83bd60de85fd4a90735ddd332844765497596 Mon Sep 17 00:00:00 2001 From: Vaishnavi Singh <146333957+vaishnavisingh20@users.noreply.github.com> Date: Mon, 16 Oct 2023 06:17:35 -0700 Subject: [PATCH 3/5] Delete script.js --- script.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 script.js diff --git a/script.js b/script.js deleted file mode 100644 index 8c4314c1..00000000 --- a/script.js +++ /dev/null @@ -1,30 +0,0 @@ -let celsius = - document.getElementById('celsius'); - let fahrenheit = - document.getElementById('fahrenheit'); - let kelvin = - document.getElementById('kelvin'); - celsius.oninput = function () { - let f = (parseFloat(celsius.value) * 9) / 5 + 32; - fahrenheit.value = parseFloat(f.toFixed(2)); - - let k = (parseFloat(celsius.value) + 273.15); - kelvin.value = parseFloat(k.toFixed(2)); - } - fahrenheit.oninput = function () { - let c = ((parseFloat( - fahrenheit.value) - 32) * 5) / 9; - celsius.value = parseFloat(c.toFixed(2)); - - let k = (parseFloat( - fahrenheit.value) - 32) * 5 / 9 + 273.15; - kelvin.value = parseFloat(k.toFixed(2)); - } - kelvin.oninput = function () { - let f = (parseFloat( - kelvin.value) - 273.15) * 9 / 5 + 32; - fahrenheit.value = parseFloat(f.toFixed(2)); - - let c = (parseFloat(kelvin.value) - 273.15); - celsius.value = parseFloat(c.toFixed(2)); - } \ No newline at end of file From 8368b57f01756706830790cb7516b27456502662 Mon Sep 17 00:00:00 2001 From: Vaishnavi Singh <146333957+vaishnavisingh20@users.noreply.github.com> Date: Mon, 16 Oct 2023 06:17:49 -0700 Subject: [PATCH 4/5] Delete style.css --- style.css | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 style.css diff --git a/style.css b/style.css deleted file mode 100644 index 6c9a2cb2..00000000 --- a/style.css +++ /dev/null @@ -1,29 +0,0 @@ -body { - font-family: Arial, sans-serif; - text-align: center; - margin: 0; - padding: 0; - background-color: #f0f0f0; -} - -h1{ - padding:5%; - padding-bottom:3%; - font-size:50px; - color:green; -} - -div{ - padding-left:1% -} - -label{ - margin: 10px 0; -} -input -{ - border:none; - height:50px; - width:200px; - font-size:40px; -} From 26abdd03eeba736e62476e432b23cf7b4d19bff3 Mon Sep 17 00:00:00 2001 From: Vaishnavi Singh <146333957+vaishnavisingh20@users.noreply.github.com> Date: Mon, 16 Oct 2023 07:06:47 -0700 Subject: [PATCH 5/5] Add files via upload --- TempWizard/indexsamp.html | 42 +++++++++++++++++++++++++++++++++++++++ TempWizard/script.js | 30 ++++++++++++++++++++++++++++ TempWizard/style.css | 29 +++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 TempWizard/indexsamp.html create mode 100644 TempWizard/script.js create mode 100644 TempWizard/style.css diff --git a/TempWizard/indexsamp.html b/TempWizard/indexsamp.html new file mode 100644 index 00000000..07d43132 --- /dev/null +++ b/TempWizard/indexsamp.html @@ -0,0 +1,42 @@ + + + + + +

TEMPERATURE CONVERTER

+
+
+
+

+
+
+
+ +image +
+
+
+
+

+
+
+
+image +
+
+
+
+

+
+
+
+image +
+
+
+ + + \ No newline at end of file diff --git a/TempWizard/script.js b/TempWizard/script.js new file mode 100644 index 00000000..8c4314c1 --- /dev/null +++ b/TempWizard/script.js @@ -0,0 +1,30 @@ +let celsius = + document.getElementById('celsius'); + let fahrenheit = + document.getElementById('fahrenheit'); + let kelvin = + document.getElementById('kelvin'); + celsius.oninput = function () { + let f = (parseFloat(celsius.value) * 9) / 5 + 32; + fahrenheit.value = parseFloat(f.toFixed(2)); + + let k = (parseFloat(celsius.value) + 273.15); + kelvin.value = parseFloat(k.toFixed(2)); + } + fahrenheit.oninput = function () { + let c = ((parseFloat( + fahrenheit.value) - 32) * 5) / 9; + celsius.value = parseFloat(c.toFixed(2)); + + let k = (parseFloat( + fahrenheit.value) - 32) * 5 / 9 + 273.15; + kelvin.value = parseFloat(k.toFixed(2)); + } + kelvin.oninput = function () { + let f = (parseFloat( + kelvin.value) - 273.15) * 9 / 5 + 32; + fahrenheit.value = parseFloat(f.toFixed(2)); + + let c = (parseFloat(kelvin.value) - 273.15); + celsius.value = parseFloat(c.toFixed(2)); + } \ No newline at end of file diff --git a/TempWizard/style.css b/TempWizard/style.css new file mode 100644 index 00000000..6c9a2cb2 --- /dev/null +++ b/TempWizard/style.css @@ -0,0 +1,29 @@ +body { + font-family: Arial, sans-serif; + text-align: center; + margin: 0; + padding: 0; + background-color: #f0f0f0; +} + +h1{ + padding:5%; + padding-bottom:3%; + font-size:50px; + color:green; +} + +div{ + padding-left:1% +} + +label{ + margin: 10px 0; +} +input +{ + border:none; + height:50px; + width:200px; + font-size:40px; +}