From f7f2da640a2c36de619d686aeec60b6784c15adf Mon Sep 17 00:00:00 2001
From: Noah-H3467
Date: Sun, 16 Feb 2025 20:25:14 -0500
Subject: [PATCH 1/4] HTML buttons
---
index.html | 39 +++++++++++++++++++++------------------
1 file changed, 21 insertions(+), 18 deletions(-)
diff --git a/index.html b/index.html
index 33cd446..ca44022 100644
--- a/index.html
+++ b/index.html
@@ -12,25 +12,28 @@ Welcome to the N+N GPA Calculator!
From fa7c5d98cc3a5ad37e359f8e845c85ce9473a818 Mon Sep 17 00:00:00 2001
From: Noah-H3467
Date: Mon, 17 Feb 2025 12:23:57 -0500
Subject: [PATCH 2/4] css + query selector
---
index.html | 6 +++---
index.js | 28 ++++++++++++++++-----------
style.css | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 76 insertions(+), 14 deletions(-)
diff --git a/index.html b/index.html
index ca44022..3b50680 100644
--- a/index.html
+++ b/index.html
@@ -39,14 +39,14 @@ Welcome to the N+N GPA Calculator!
-
+
This text will contain the feedback for the user
-
- This section will become visible once calculate GPA is pressed. It will display the GPAs.
+
+
diff --git a/index.js b/index.js
index 4f59001..0e3c437 100644
--- a/index.js
+++ b/index.js
@@ -92,6 +92,22 @@ class Ready {
}
}
+const instructionText = document.querySelector("#instructionText");
+const gpaText = document.querySelector("#gpaText");
+
+// Main stuff
+let wGradePointList = []
+let gradePointList = []
+let creditsAggregation = 0;
+let courseGrade;
+let numCourses = 0;
+let courseCredits = 0.0;
+let courseWeight = null;
+let courseRaw = 0;
+let uGP;
+uGP = 0.0;
+
+
function promptUser() {
numCourses += 1;
canMoveOn = new Ready(false, false, false);
@@ -157,16 +173,6 @@ function weighter(weight) {
-// Main stuff
-let wGradePointList = []
-let gradePointList = []
-let creditsAggregation = 0;
-let courseGrade;
-let numCourses = 0;
-let courseCredits = 0.0;
-let courseWeight = null;
-let courseRaw = 0;
-let uGP;
-uGP = 0.0;
+
console.log("Welcome to the GPA Calculator with TKINTER.")
promptUser()
\ No newline at end of file
diff --git a/style.css b/style.css
index e69de29..031277f 100644
--- a/style.css
+++ b/style.css
@@ -0,0 +1,56 @@
+#body{
+ margin: 0;
+ display: flex;
+ justify-content: center; /* horizontal alignment*/
+ align-items: center; /*vertical alignment */
+ height: 100vh; /* 100% of viewport height */
+ background-color: hsl(0, 0%, 95%)
+}
+#calculator{
+ font-family: Arial, sans-serif;
+ background-color:hsl(0, 0%, 15%);
+ border-radius: 15px;
+ max-width: 500px;
+ overflow: hidden;
+}
+#display{
+ width: 100%;
+ padding: 20px;
+ font-size: 5rem;
+ text-align: left;
+ border: none;
+ background-color:hsl(0, 0%, 20%);
+ color: white
+}
+#keys{
+ display: grid;
+ grid-template-columns: repeat(4, 1fr); /* each of four columns should take an even amount of space */
+ gap: 10px;
+ padding: 25px;
+}
+button{
+ width: 100px;
+ height: 100px;
+ border-radius: 50px;
+ border: none;
+ background-color: hsl(0, 0%, 30%);
+ color:cyan;
+ font-size: 4rem;
+ font-weight: bold;
+ cursor: pointer;
+}
+button:hover{
+ background-color: hsl(0, 0%, 40%)
+}
+button:active{
+ background-color: hsl(0, 0%, 50%)
+}
+.operator-btn{
+ background-color: hsl(35, 100%, 55%);
+}
+.operator-btn:hover{
+ background-color: hsl(35, 100%, 65%)
+}
+.operator-btn:active{
+ background-color: hsl(35, 100%, 75%)
+}
\ No newline at end of file
From f402b66a6ea4fdcc498149dfce5cee4012599e05 Mon Sep 17 00:00:00 2001
From: Noah-H3467
Date: Tue, 18 Feb 2025 15:15:14 -0500
Subject: [PATCH 3/4] Some debugging
---
index.html | 25 ++++++++++++++++--------
index.js | 57 ++++++++++++++++++++++++++++++++++++++++++++----------
style.css | 4 ++--
3 files changed, 66 insertions(+), 20 deletions(-)
diff --git a/index.html b/index.html
index 3b50680..7469e94 100644
--- a/index.html
+++ b/index.html
@@ -22,14 +22,14 @@ Welcome to the N+N GPA Calculator!
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -44,10 +44,19 @@ Welcome to the N+N GPA Calculator!
+
+
+
+
+