diff options
Diffstat (limited to 'tests/report-styles/index.js')
-rw-r--r-- | tests/report-styles/index.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/report-styles/index.js b/tests/report-styles/index.js new file mode 100644 index 0000000..27b6ed5 --- /dev/null +++ b/tests/report-styles/index.js @@ -0,0 +1,20 @@ + +function negateIdDisplay(which) { + var e = document.getElementById(which); + if (e.style.display=="block") { + e.style.display="none" + } else { + e.style.display="block" + } +} + + +function setClassDisplay(which,what) { + var e = document.getElementsByClassName(which); + for ( var i = 0; i < e.length; i++ ) { + e[i].style.display=what + } +} + + + |