WOOHOO FETCHED SOMETHING
This commit is contained in:
15
main.js
15
main.js
@@ -24,11 +24,14 @@ function parseName() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function PapaParse(department, num, name) {
|
function PapaParse(department, num, name) {
|
||||||
fetch('https://github.com/DereC4/ut-grade-viewer/blob/master/data/2022%20Fall.json')
|
let classData = '';
|
||||||
.then(response => response.text())
|
fetch('/data/2022 Fall.json')
|
||||||
.then(text => console.log(text))
|
.then(res => res.json())
|
||||||
let gradeObj = [];
|
.then(data => {
|
||||||
// PapaParse.parse(
|
obj = data;
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
console.log(obj);
|
||||||
|
});
|
||||||
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user