Hide about
This commit is contained in:
2
main.js
2
main.js
@@ -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 = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user