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);
}
async function PapaParse(department, num, name) {
const fileInput = await fetch('https://github.com/DereC4/ut-grade-viewer/blob/master/data/2022%20Fall.json', {
method: 'GET',
headers: {
'Accept': 'application/json',
},
})
.then(response => response.json())
.then(response => console.log(JSON.stringify(response)))
console.log(fileInput);
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(