summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/javascript/traffic_graph.js
blob: 83fc48114e4dda5cae31df506de37a4721191f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function trafficshowDiv(incDiv,swapButtons) {
	//appear element
	selectedDiv = incDiv + "graphdiv";
	jQuery('#' + selectedDiv).effect('blind',{mode:'show'},1000);
	d = document;
	if (swapButtons) {
		selectIntLink = selectedDiv + "-min";
		textlink = d.getElementById(selectIntLink);
		textlink.style.display = "inline";

		selectIntLink = selectedDiv + "-open";
		textlink = d.getElementById(selectIntLink);
		textlink.style.display = "none";
	}
	document.iform["shown[" + incDiv + "]"].value = "show";
}

function  trafficminimizeDiv(incDiv,swapButtons) {
	//fade element
	selectedDiv = incDiv + "graphdiv";
	jQuery('#' + selectedDiv).effect('blind',{mode:'hide'},1000);
	d = document;
	if (swapButtons) {
		selectIntLink = selectedDiv + "-open";
		textlink = d.getElementById(selectIntLink);
		textlink.style.display = "inline";

		selectIntLink = selectedDiv + "-min";
		textlink = d.getElementById(selectIntLink);
		textlink.style.display = "none";
	}
	document.iform["shown[" + incDiv + "]"].value = "hide";
}

OpenPOWER on IntegriCloud