blob: 75158c268ad4972742b6a7cd9209c66fbc4a85a4 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
function showhideMethods(inElement,toValue) {
var e = document.getElementById(inElement);
methods=e.getElementsByClassName("method");
for ( var i = 0; i < methods.length; i++ ) {
methods[i].style.display=toValue
}
}
function openAnchor() {
anchor=self.document.location.hash;
if (anchor==null || anchor=="") return;
stub=anchor.substring(1);
var logs=getLogsArray(stub);
logs[0].style.display="inline";
logs[1].style.display="inline";
recalcArraysWidth(logs);
window.location.hash=stub;
}
function negateIdDisplay(which) {
var e = document.getElementById(which);
if (e.style.display=="block") {
e.style.display="none"
} else {
e.style.display="block"
}
}
function negateIdDisplayInline(which) {
var e = document.getElementById(which);
if (e.style.display=="inline") {
e.style.display="none"
} else {
e.style.display="inline"
}
}
function setClassDisplay(which,what) {
var e = document.getElementsByClassName(which);
for ( var i = 0; i < e.length; i++ ) {
e[i].style.display=what
}
}
function negateClassBlocDisplay(which) {
var e = document.getElementsByClassName(which);
for ( var i = 0; i < e.length; i++ ) {
if (e[i].style.display=="block") {
e[i].style.display="none"
} else {
e[i].style.display="block"
}
}
}
function negateClassBlocDisplayIn(where,which) {
var parent = document.getElementById(where);
var e = parent.getElementsByClassName(which);
for ( var i = 0; i < e.length; i++ ) {
if (e[i].style.display=="block") {
e[i].style.display="none"
} else {
e[i].style.display="block"
}
}
}
function getLogsArray(stub) {
return new Array(document.getElementById(stub+".out"),document.getElementById(stub+".err"),document.getElementById(stub+".all"));
}
function recalcLogsWidth(stub) {
var logs=getLogsArray(stub)
recalcArraysWidth(logs);
}
function showAllLogs() {
var e = document.getElementsByClassName("method");
for ( var i = 0; i < e.length; i++ ) {
stub=e[i].id;
var logs=getLogsArray(stub)
logs[0].style.display="none";
logs[1].style.display="none"
logs[2].style.display="inline"
recalcArraysWidth(logs);
}
}
function recalcArraysWidth(logs) {
visible=0;
for ( var i = 0; i < logs.length; i++ ) {
if (logs[i].style.display!="none"){
visible++;
}
}
if (visible==0) return;
nwWidth=90/visible;
for ( var i = 0; i < logs.length; i++ ) {
if (logs[i].style.display!="none"){
logs[i].style.width=nwWidth+"%";
}
}
}
|