aboutsummaryrefslogtreecommitdiff
path: root/html/haddock.js
blob: 4f6a2e4487067158f7c71497df0510f43d3988eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// Haddock JavaScript utilities
function toggle(button,id) {
   var n = document.getElementById(id).style;
   if (n.display == "none") {
	button.childNodes[0].data = "-";
	n.display = "inline";
   } else {
	button.childNodes[0].data = "+";
	n.display = "none";
   }
}