diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2018-05-15 22:23:03 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2018-05-15 22:24:21 -0400 |
commit | 4b7b2eb708e824a1ecd7407999c17034366b5ff4 (patch) | |
tree | ebbb897b91192b4ec38d716b9986c7d665799f0a /GradeBook.js | |
parent | c3e11cde841ebbc926e6e0c3e69adbc319687505 (diff) | |
download | GradeBook-4b7b2eb708e824a1ecd7407999c17034366b5ff4.tar.gz GradeBook-4b7b2eb708e824a1ecd7407999c17034366b5ff4.zip |
added javascript to toggle visibility of histogram marker and grading scheme
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"); +}; + |