File tree Expand file tree Collapse file tree 3 files changed +20
-12
lines changed
Expand file tree Collapse file tree 3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 11markdown : rdiscount
22pygments : true
3+ showToggleButton : true
Original file line number Diff line number Diff line change 1313 < link rel ="stylesheet " type ="text/css " media ="screen " href ="stylesheets/vd.css ">
1414 < link rel ="stylesheet " type ="text/css " media ="screen " href ="stylesheets/toc.css ">
1515
16- < script src ="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js "> </ script >
16+ < script src ="http: //ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js "> </ script >
1717 < script src ="javascripts/jquery.cookie.js "> </ script >
18- < script src ="javascripts/jquery.toc.js "> </ script >
19-
20- < script type ="text/javascript ">
21- $ ( function ( ) {
22- { % unless page . noToc % }
23- $ ( '#main_content' ) . toc ( ) ;
24- { % endunless % }
25- } ) ;
26- </ script >
18+ < script src ="javascripts/jquery.tocLight.js "> </ script >
2719
2820 < title > VisualDiffer - {{ page.title }}</ title >
29- </ head >
21+
22+ < script type ="text/javascript ">
23+ $ ( function ( ) {
24+ $ . toc . clickHideButton ( { saveShowStatus :true } ) ;
25+ } ) ;
26+ </ script >
27+ </ head >
3028
3129 < body >
3230
@@ -42,7 +40,7 @@ <h2 id="project_tagline">{{ page.title }}</h2>
4240 <!-- MAIN CONTENT -->
4341 < div id ="main_content_wrap " class ="outer ">
4442 < section id ="main_content " class ="inner ">
45- {{ content }}
43+ {{ content | toc_generate }}
4644 </ section >
4745 </ div >
4846
Original file line number Diff line number Diff line change 4444 }
4545 return false ;
4646 } ) ;
47+
48+ if ( config . saveShowStatus && $ . cookie ( 'toc-hide' ) ) {
49+ var ul = $ ( $ ( '#toc ul' ) [ 0 ] ) ;
50+
51+ ul . hide ( ) ;
52+ $ ( '#toctogglelink' ) . text ( config . showText ) ;
53+ $ ( '#toc' ) . addClass ( 'tochidden' ) ;
54+ }
55+
4756 }
4857} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments