From ac9015c11ee148d5e964f956c8d3e5a6e019f0e1 Mon Sep 17 00:00:00 2001 From: HW Computer Date: Tue, 18 Apr 2023 18:14:01 -0500 Subject: [PATCH] WOOHOO FETCHED SOMETHING --- main.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index b288803..fbae7ed 100644 --- a/main.js +++ b/main.js @@ -24,11 +24,14 @@ function parseName() { } function PapaParse(department, num, name) { - fetch('https://github.com/DereC4/ut-grade-viewer/blob/master/data/2022%20Fall.json') - .then(response => response.text()) - .then(text => console.log(text)) - let gradeObj = []; - // PapaParse.parse( - - // ); + let classData = ''; + fetch('/data/2022 Fall.json') + .then(res => res.json()) + .then(data => { + obj = data; + }) + .then(() => { + console.log(obj); + }); + } \ No newline at end of file