Initial commit.

This commit is contained in:
2014-11-20 14:40:37 -05:00
commit 6da969b1e0
20 changed files with 500 additions and 0 deletions

18
js/navbar.js Normal file
View File

@ -0,0 +1,18 @@
(function()
{
// Highlight the current page in the navbar
var highlightLink = function()
{
var links = document.getElementsByClassName("sidelink");
for (var i = 0; i < links.length; i++) {
if (links[i].href == location)
links[i].className += " sidelink-active";
}
}
// Attach onload handler
if (window.addEventListener)
window.addEventListener("load", highlightLink, false);
else if (window.attachEvent)
window.attachEvent("onload", highlightLink);
})();