Skip to content

Commit 03dbb32

Browse files
committed
Add api doc
1 parent 28456b7 commit 03dbb32

6 files changed

Lines changed: 115186 additions & 0 deletions

File tree

api_doc/apiDocDyn.js

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
$(document).ready(function() {
2+
window.showAll = true;
3+
window.showDeprecated = false;
4+
$(".fh").hide();
5+
6+
$(".fs").on('click', function() {
7+
$(this).parent().children('tr').each(function(n,v){if (n>0) $(v).toggle();});
8+
9+
/*
10+
if (!ts.is(":visible")) {
11+
ts.slideToggle('slow');
12+
} else {
13+
ts.slideUp("fast");
14+
}
15+
*/
16+
});
17+
18+
$(".classRef").on('click', function() {
19+
toggle($(this));
20+
/*
21+
if (!n.eq(index).is(":visible")) {
22+
n.eq(index).slideToggle('slow');
23+
} else {
24+
n.eq(index).slideUp("fast");
25+
}
26+
*/
27+
});
28+
29+
$(".list").on('click', function() {
30+
var t = $(this).parent().parent().parent().children('tr');
31+
$.each(t, function(index, val) {
32+
if (index >= 1) {
33+
$(this).children('td').children('table').children('tbody').children('tr').eq(2).slideUp("fast");
34+
}
35+
});
36+
});
37+
38+
$(".expand").on('click', function() {
39+
var t = $(this).parent().parent().parent().children('tr');
40+
$.each(t, function(index, val) {
41+
if (index >= 1) {
42+
$(this).children('td').children('table').children('tbody').children('tr').each(function(n,v){if (n>0) $(v).toggle();});
43+
}
44+
});
45+
});
46+
47+
$(".moreDefClass").on('click', function() {
48+
var etc = $(this).parent().children("span").eq(0);
49+
var more = $(this).parent().children("span").eq(1);
50+
if(!more.is(":visible")) {
51+
more.show();
52+
etc.hide();
53+
$(this).text("Read less");
54+
}
55+
else {
56+
more.hide();
57+
etc.show();
58+
$(this).text("Read more");
59+
}
60+
});
61+
62+
$(".moreAVS").on('click', function() {
63+
var moreAVS=$(this);
64+
var avsTable = $(this).parent().children("table");
65+
if(moreAVS.text()=="See Allowed Values") {
66+
$.each(avsTable, function(index, val) {
67+
$(this).show();
68+
});
69+
moreAVS.text("Hide Allowed Values");
70+
}
71+
else {
72+
$.each(avsTable, function(index, val) {
73+
$(this).hide();
74+
});
75+
$(this).text("See Allowed Values");
76+
}
77+
78+
});
79+
80+
$(".moreATS").on('click', function() {
81+
var moreATS=$(this);
82+
var atsTable = $(this).parent().children("table");
83+
if(moreATS.text()=="See Allowed Types") {
84+
$.each(atsTable, function(index, val) {
85+
$(this).show();
86+
});
87+
moreATS.text("Hide Allowed Types");
88+
}
89+
else {
90+
$.each(atsTable, function(index, val) {
91+
$(this).hide();
92+
});
93+
$(this).text("See Allowed Types");
94+
}
95+
96+
});
97+
98+
$("#listAll").on('click', function () {
99+
window.showAll = !window.showAll;
100+
var deprecatedSelector = !window.showDeprecated ? ":not(:has(.deprecated)), :has(.section)" : "";
101+
var elems = $('.classRef').parent().parent().siblings(deprecatedSelector);
102+
if (window.showAll) {
103+
elems.show();
104+
$('.classRef').removeClass('closed');
105+
}
106+
else {
107+
elems.hide();
108+
$('.classRef').addClass('closed');
109+
}
110+
});
111+
112+
$("#showHideDeprecated").on('click', function () {
113+
window.showDeprecated = !window.showDeprecated;
114+
$('.classRef').parent().parent().siblings(":not(:has(.closed, .section)) :has(.deprecated)").toggle();
115+
});
116+
117+
function toggle(elem) {
118+
elem.toggleClass('closed')
119+
var hasSubClasses = elem.parent().parent().parent().find('.section').length > 0
120+
var deprecatedSelector = !(hasSubClasses || window.showDeprecated) ? ":not(:has(.deprecated))" : "";
121+
elem.parent().parent().siblings(deprecatedSelector).toggle();
122+
}
123+
124+
});

0 commit comments

Comments
 (0)