This commit is contained in:
2023-04-18 17:53:43 -05:00
parent d44404b76d
commit 85f72d6ea3

14
main.js
View File

@@ -23,16 +23,10 @@ function parseName() {
PapaParse(department, classNum, className); PapaParse(department, classNum, className);
} }
async function PapaParse(department, num, name) { function PapaParse(department, num, name) {
const fileInput = await fetch('https://github.com/DereC4/ut-grade-viewer/blob/master/data/2022%20Fall.json', { fetch('https://github.com/DereC4/ut-grade-viewer/blob/master/data/2022%20Fall.json')
method: 'GET', .then(response => response.text())
headers: { .then(text => console.log(text))
'Accept': 'application/json',
},
})
.then(response => response.json())
.then(response => console.log(JSON.stringify(response)))
console.log(fileInput);
let gradeObj = []; let gradeObj = [];
// PapaParse.parse( // PapaParse.parse(