From e4b4772c853a38989edc2763df524a5a7c939a6f Mon Sep 17 00:00:00 2001 From: HW Computer Date: Wed, 19 Apr 2023 02:36:58 -0500 Subject: [PATCH] gradeDist json --- index.html | 4 ++-- main.js | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 48ef3bc..a7a1c8a 100644 --- a/index.html +++ b/index.html @@ -33,8 +33,8 @@

- + +



diff --git a/main.js b/main.js index 26feb7f..9f6dcbd 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,15 @@ const submitButton = document.getElementById('subBut'); +let gradeDist = { + "A": 0, + 'A-': 0, + 'B+': 0, + 'B': 0, + 'B-': 0, + 'C+': 0, + 'C': 0, + 'C-': 0, + 'Other': 0 +}; submitButton.addEventListener("click", parseName); function parseName() { let className = ''; @@ -43,5 +54,4 @@ async function PapaParse(department, num, name) { // }); const selectedClass = cData.filter(cData => cData["Course Title"].includes(name.toUpperCase())); console.log(selectedClass); - } \ No newline at end of file