diff options
Diffstat (limited to 'GradeBook.js')
-rw-r--r-- | GradeBook.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/GradeBook.js b/GradeBook.js new file mode 100644 index 0000000..269f008 --- /dev/null +++ b/GradeBook.js @@ -0,0 +1,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"); +}; + |