Projet_JAVA_P2P_STRI2A/doc/javadoc/script.js

31 lines
827 B
JavaScript
Raw Normal View History

2020-04-13 15:43:33 +02:00
function show(type)
{
2020-01-29 14:06:04 +01:00
count = 0;
2020-04-13 15:43:33 +02:00
for (var key in methods) {
2020-01-29 14:06:04 +01:00
var row = document.getElementById(key);
2020-04-13 15:43:33 +02:00
if ((methods[key] & type) != 0) {
2020-01-29 14:06:04 +01:00
row.style.display = '';
row.className = (count++ % 2) ? rowColor : altColor;
}
else
row.style.display = 'none';
}
updateTabs(type);
}
2020-04-13 15:43:33 +02:00
function updateTabs(type)
{
2020-01-29 14:06:04 +01:00
for (var value in tabs) {
var sNode = document.getElementById(tabs[value][0]);
var spanNode = sNode.firstChild;
if (value == type) {
sNode.className = activeTableTab;
spanNode.innerHTML = tabs[value][1];
}
else {
sNode.className = tableTab;
spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
}
}
}