Permalink
Browse files

Rename $toc to 'toc' to avoid crashing pandoc.

  • Loading branch information...
romac committed Nov 27, 2011
1 parent 6376a7c commit 60e16679435b6ffb34e28dd1c9ba26db92e5a1dc
Showing with 3 additions and 3 deletions.
  1. +3 −3 _assets/template.html
View
@@ -88,19 +88,19 @@ <h1>Table of contents</h1>
return;
var pinned = false,
- $toc = document.getElementById( 'TOC' ),
+ toc = document.getElementById( 'TOC' ),
offset = 200;
return function()
{
if( !pinned && document.body.scrollTop > offset )
{
- $toc.className = 'pinned';
+ toc.className = 'pinned';
pinned = true;
}
else if( pinned && document.body.scrollTop < offset )
{
- $toc.className = '';
+ toc.className = '';
pinned = false;
}
};

0 comments on commit 60e1667

Please sign in to comment.