Initial Commit of the PDM project (ready for DWS migration)
This commit is contained in:
87
documentation/api_extracted/script/hs-expandcollapse.js
Normal file
87
documentation/api_extracted/script/hs-expandcollapse.js
Normal file
@@ -0,0 +1,87 @@
|
||||
function HSToggleSection(id)
|
||||
{
|
||||
var element;
|
||||
var img;
|
||||
|
||||
// Find the element
|
||||
element = documentElement(id);
|
||||
img = documentElement(id+"_Image");
|
||||
if (element)
|
||||
{
|
||||
if (element.className=="hs-collapsed")
|
||||
{
|
||||
element.className="hs-expanded";
|
||||
if (img)
|
||||
{
|
||||
img.src = hsFixRelativeUrl("images/hs-expanded.gif");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
element.className="hs-collapsed";
|
||||
if (img)
|
||||
{
|
||||
img.src = hsFixRelativeUrl("images/hs-collapsed.gif");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function HSHideOrShowAllCSections(show)
|
||||
{
|
||||
var spans
|
||||
var divs
|
||||
|
||||
spans = document.getElementsByTagName("SPAN");
|
||||
if (spans)
|
||||
{
|
||||
for (var spanindex = 0 ; spanindex < spans.length ; spanindex++)
|
||||
{
|
||||
if ((spans[spanindex].className == "hs-collapsed" && show) || (spans[spanindex].className == "hs-expanded" && !show))
|
||||
{
|
||||
HSToggleSection(spans[spanindex].id)
|
||||
}
|
||||
}
|
||||
}
|
||||
divs = document.getElementsByTagName("DIV")
|
||||
if (divs)
|
||||
{
|
||||
for (var divindex = 0 ; divindex < divs.length ; divindex++)
|
||||
{
|
||||
if ((divs[divindex].className == "hs-collapsed" && show) || (divs[divindex].className == "hs-expanded" && !show))
|
||||
{
|
||||
HSToggleSection(divs[divindex].id)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function HSHideAllCSections()
|
||||
{
|
||||
var HSHideAll = documentElement("HSHideAll");
|
||||
var HSShowAll = documentElement("HSShowAll");
|
||||
|
||||
HSHideOrShowAllCSections(false)
|
||||
if (HSHideAll)
|
||||
{
|
||||
HSHideAll.style.display="none";
|
||||
if (HSShowAll)
|
||||
{
|
||||
HSShowAll.style.display="block";
|
||||
}
|
||||
}
|
||||
}
|
||||
function HSShowAllCSections()
|
||||
{
|
||||
var HSHideAll = documentElement("HSHideAll");
|
||||
var HSShowAll = documentElement("HSShowAll");
|
||||
|
||||
HSHideOrShowAllCSections(true)
|
||||
if (HSShowAll)
|
||||
{
|
||||
HSShowAll.style.display="none";
|
||||
if (HSHideAll)
|
||||
{
|
||||
HSHideAll.style.display="block";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user