From bad00459e74aab5bcd0f87a0fdbbd14d39a2e16a Mon Sep 17 00:00:00 2001 From: HW Computer Date: Tue, 18 Apr 2023 19:54:44 -0500 Subject: [PATCH] New Host for JSON --- main.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 4a78ae4..26feb7f 100644 --- a/main.js +++ b/main.js @@ -25,7 +25,7 @@ function parseName() { async function PapaParse(department, num, name) { let cData = ''; - await fetch('/data/2022 Fall.json') + await fetch('https://derec4.github.io/UT-Grade-Dist/2022%20Fall.json') .then(res => res.json()) .then(data => { cData = data; @@ -33,6 +33,14 @@ async function PapaParse(department, num, name) { .then(() => { console.log(cData); }); + // await fetch('/data/2022 Fall.json') + // .then(res => res.json()) + // .then(data => { + // cData = data; + // }) + // .then(() => { + // console.log(cData); + // }); const selectedClass = cData.filter(cData => cData["Course Title"].includes(name.toUpperCase())); console.log(selectedClass);