tinyendian/doc/show_hide.js
Ferdinand Majerech a4c74fc79b Generated docs
2015-02-16 13:53:00 +01:00

18 lines
417 B
JavaScript

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";
}