Skip to content

Commit

Permalink
Add events for toggling display of the toc
Browse files Browse the repository at this point in the history
  • Loading branch information
benschwarz committed Feb 19, 2011
1 parent 6dbc543 commit c4b0c07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javascript/master.js
Expand Up @@ -152,5 +152,11 @@ if(!!window.applicationCache) {
}, false)
}

// TOC
var toc_toggle = document.getElementById("toc-toggle");
addEvent('click', toc_toggle, function(e) {
toc_toggle.className = (toc_toggle.className == "active") ? "" : "active";
});

})();

0 comments on commit c4b0c07

Please sign in to comment.