WOOHOO FETCHED SOMETHING

This commit is contained in:
2023-04-18 18:14:01 -05:00
parent 85f72d6ea3
commit ac9015c11e

17
main.js
View File

@@ -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);
});
}