Hide about

This commit is contained in:
2023-04-23 17:58:32 -05:00
parent e41974b3ee
commit af857d1d6d

View File

@@ -1,6 +1,7 @@
const submitButton = document.getElementById('subBut'); const submitButton = document.getElementById('subBut');
submitButton.addEventListener("click", parseName); submitButton.addEventListener("click", parseName);
var chartDiv = document.querySelector('#grades'); var chartDiv = document.querySelector('#grades');
var aboutDiv = document.querySelector('.bg-text');
if(chartDiv.getAttribute('value') == 'invisible'){ if(chartDiv.getAttribute('value') == 'invisible'){
chartDiv.style.display = 'none'; chartDiv.style.display = 'none';
} }
@@ -102,6 +103,7 @@ async function PapaParse(department, num, name) {
gradeChart.update(); gradeChart.update();
} else { } else {
loadChart(gradeDist); loadChart(gradeDist);
aboutDiv.style.visibility='hidden';
chartDiv.style.display = ''; chartDiv.style.display = '';
} }
} }