dyaml/doc/html/api/show_hide.js

18 lines
417 B
JavaScript
Raw Normal View History

2015-02-21 13:36:06 +00:00
window.onload = function(e)
{
var elems = document.querySelectorAll( "div.toc ul ul" );
for( i in elems )
{
if( elems[i].style.display != "block" )
elems[i].style.display = "none";
}
}
function show_hide(id)
{
var elem = document.getElementById( id );
if( elem.style.display == "block" )
elem.style.display = "none";
else elem.style.display = "block";
}