aboutsummaryrefslogtreecommitdiffstats
path: root/tests/report-styles/index.js
blob: 27b6ed503f6d8124904ff79eb0f0530dd83bb23c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
	}
}