From c0e8935104244802cd74b09d082fd8b70c4b9b9b Mon Sep 17 00:00:00 2001 From: HW Computer Date: Tue, 18 Apr 2023 18:54:59 -0500 Subject: [PATCH] New CSS to make it look better, fetch filters way better now --- index.html | 54 ++++++++++++++++++++++++++++++++---------------------- main.css | 8 ++++---- main.js | 2 +- 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/index.html b/index.html index 30e4526..fb45c73 100644 --- a/index.html +++ b/index.html @@ -1,36 +1,46 @@ + - - - UT Grade Viewer - - - + + + UT Grade Viewer + + + + -
-
+
+
+

+ Keep course names as close to the + official course name + as possible +





- +

+ +

- - -

-
- -
- + + +

+ + +
+ + \ No newline at end of file diff --git a/main.css b/main.css index a2c7e83..8c50c69 100644 --- a/main.css +++ b/main.css @@ -4,8 +4,8 @@ /* General Styles */ body { font-family: 'Helvetica Neue', sans-serif; - background-color: #f7f7f7; - color: #333333; + background: rgb(27,26,42); + background: linear-gradient(90deg, rgba(27,26,42,1) 0%, rgba(61,87,92,1) 100%); } a { @@ -75,7 +75,7 @@ body { /* Footer Styles */ footer { - background-color: #333333; + background-color: #2e2d2d; color: #ffffff; padding: 20px; text-align: center; @@ -110,7 +110,7 @@ body { /* Position text in the middle of the page/image */ .bg-text { - background-color: rgb(0,0,0); /* Fallback color */ + background-color: rgb(0, 0, 0); /* Fallback color */ background-color: rgba(0,0,0, 0.4); /* opacity/see-through */ color: white; font-weight: bold; diff --git a/main.js b/main.js index 8e3d5d4..c98cc10 100644 --- a/main.js +++ b/main.js @@ -33,7 +33,7 @@ async function PapaParse(department, num, name) { .then(() => { console.log(cData); }); - const selectedClass = cData.filter(cData => cData["Course Title"] == name); + const selectedClass = cData.filter(cData => cData["Course Title"].includes(name.toUpperCase())); console.log(selectedClass); } \ No newline at end of file