aboutsummaryrefslogtreecommitdiff
path: root/GradeBook.js
blob: 269f008d2a89c236e7d53d2ef260231c81afd0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function toggleHTMLClassVisibility(className) {
	var x = document.getElementsByClassName(className);
	var i;
	for (i = 0; i < x.length; i++) {
		if (x[i].style.display === "none") {
			x[i].style.display = "block";
		} else {
			x[i].style.display = "none";
		}
	}
};

function toggleHistogramMarker() {
	toggleHTMLClassVisibility("histogram_marker");
};

function toggleGradingScheme() {
	toggleHTMLClassVisibility("grading_scheme");
};