From c0f21773ac020ae8ec581dc8c7fe730cd326ded0 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 13:26:20 -0500 Subject: [PATCH 01/40] Create index.html and app.js --- app.js | 1 + index.html | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 app.js create mode 100644 index.html diff --git a/app.js b/app.js new file mode 100644 index 0000000..80bdedb --- /dev/null +++ b/app.js @@ -0,0 +1 @@ +console.log("helloooo"); \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..403ff3b --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + + + +

Hello World

+ + + + \ No newline at end of file From 99015a443150172423cd95e475aa2c10d4b74027 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 13:30:05 -0500 Subject: [PATCH 02/40] Add styles.css --- app.js | 3 ++- index.html | 1 + styles.css | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 styles.css diff --git a/app.js b/app.js index 80bdedb..6415516 100644 --- a/app.js +++ b/app.js @@ -1 +1,2 @@ -console.log("helloooo"); \ No newline at end of file +console.log("helloooo"); + diff --git a/index.html b/index.html index 403ff3b..20bdf8e 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ + diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..88a15cf --- /dev/null +++ b/styles.css @@ -0,0 +1,3 @@ +body { + background-color: seagreen; +} \ No newline at end of file From 6ae7a3c262960e35b6a82f68833ac24a317b4dc8 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 13:54:01 -0500 Subject: [PATCH 03/40] Import and use Bootstrap --- index.html | 37 ++++++++++++++++++++++++++++++++++++- styles.css | 5 +++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 20bdf8e..4faa204 100644 --- a/index.html +++ b/index.html @@ -4,11 +4,46 @@ + + + -

Hello World

+ + + +
+ +
+
+

Temperature Scale Convertor

+
+
+ +
+
+
Fahrenheight
+
+ +
+
+
Value
+ +
+
+ +
+ +
+
+ +
+ + + diff --git a/styles.css b/styles.css index 88a15cf..4be85ec 100644 --- a/styles.css +++ b/styles.css @@ -1,3 +1,8 @@ +.flex-center { + display: flex; + justify-content: center; +} + body { background-color: seagreen; } \ No newline at end of file From 8bacbbcc47e792dff2729b102933d099e907877c Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 14:50:46 -0500 Subject: [PATCH 04/40] Set up layout with some styling --- index.html | 35 +++++++++++++++++++++++++++++------ styles.css | 5 +++++ 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 4faa204..ee8bc4f 100644 --- a/index.html +++ b/index.html @@ -8,14 +8,14 @@ - + -
+
@@ -23,16 +23,22 @@

Temperature Scale Convertor

+
+
+
Scale
+
+
+
Value
+
+
+
Fahrenheight
-
-
Value
- -
+
@@ -40,6 +46,23 @@

Temperature Scale Convertor

+
+
+

Fahrenheit

+

212 F

+
+ +
+

Fahrenheit

+

212 F

+
+ +
+

Fahrenheit

+

212 F

+
+
+
diff --git a/styles.css b/styles.css index 4be85ec..6dc7926 100644 --- a/styles.css +++ b/styles.css @@ -3,6 +3,11 @@ justify-content: center; } +/* For mx-auto to center a div, the div must have a width. Use this class in that case. */ +.w-fit-content { + width: fit-content; +} + body { background-color: seagreen; } \ No newline at end of file From a00234c4fa1746fa61a8a0c916e7d8c82924e213 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 14:56:36 -0500 Subject: [PATCH 05/40] Re-style second row --- index.html | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index ee8bc4f..9e0d689 100644 --- a/index.html +++ b/index.html @@ -23,29 +23,33 @@

Temperature Scale Convertor

-
-
-
Scale
-
-
-
Value
-
-
+
-
-
Fahrenheight
+
+

Scale

+
+ +
-
- +
+

Scale

+
+ +
-
- +
+

Scale

+
+ +
+ +

Fahrenheit

From be9a1622e2460575589971246fcbeafa77c42e36 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 15:01:23 -0500 Subject: [PATCH 06/40] Fill values --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9e0d689..26b4447 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ - + @@ -34,14 +34,14 @@

Scale

-

Scale

+

Value

-

Scale

+

 

From 018707c6afdd69c1c5685aa6ff1d75c9c8162143 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Thu, 3 Dec 2020 15:05:30 -0500 Subject: [PATCH 07/40] Give container and all rows margin of 5rem on its y axis --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 26b4447..6ea193a 100644 --- a/index.html +++ b/index.html @@ -15,9 +15,9 @@ -
+
-
+

Temperature Scale Convertor

@@ -25,7 +25,7 @@

Temperature Scale Convertor

-
+

Scale

@@ -50,7 +50,7 @@

 

-
+
@@ -51,18 +51,23 @@

 

- +
diff --git a/styles.css b/styles.css index b2a7903..10ae9db 100644 --- a/styles.css +++ b/styles.css @@ -12,6 +12,11 @@ body { background-color: seagreen; } +#calculate-btn { + width: 12rem; + padding: 0.15rem 0; +} + @media (max-width: 775px) { .container { min-width: 700px; From a53ea142642f68405d7f783812c9ae6dfbb1070b Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Fri, 4 Dec 2020 21:04:28 -0500 Subject: [PATCH 10/40] Add click event for button --- app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 6415516..e9cdc39 100644 --- a/app.js +++ b/app.js @@ -1,2 +1,4 @@ -console.log("helloooo"); - +const button = document.getElementById("calculate-btn"); +button.addEventListener("click", () => { + console.log("jfdksl"); +}); \ No newline at end of file From 07ada3b31388a54ec9deb3df9881edcf5b2080a5 Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Fri, 4 Dec 2020 21:12:29 -0500 Subject: [PATCH 11/40] Add Bootstrap dropdown menu --- app.js | 5 ++++- index.html | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index e9cdc39..be30399 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,7 @@ const button = document.getElementById("calculate-btn"); button.addEventListener("click", () => { console.log("jfdksl"); -}); \ No newline at end of file +}); + +const dropDownMenu = document.getElementById("dropdownMenu2"); +dropDownMenu.innerText = "Fahrenheit"; \ No newline at end of file diff --git a/index.html b/index.html index 6a88e88..e682490 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,16 @@

Temperature Scale Convertor

Scale

-
- +
@@ -78,7 +86,13 @@

Rankine

+ + + + \ No newline at end of file From aee2562830ac1c7fc7fb4cd13953d53e46c5b94c Mon Sep 17 00:00:00 2001 From: michael-mcmasters Date: Fri, 4 Dec 2020 21:19:16 -0500 Subject: [PATCH 12/40] Set width and padding for dropdown --- index.html | 4 ++-- styles.css | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e682490..9a3f3bf 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@

Temperature Scale Convertor

Scale