aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/tinyendian/doc/show_hide.js
blob: ab7a50c20c993c52ed31cf13d070733eda07c618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"; 
}