File tree Expand file tree Collapse file tree 5 files changed +54
-2
lines changed Expand file tree Collapse file tree 5 files changed +54
-2
lines changed Original file line number Diff line number Diff line change 47
47
< script src ="/js/jquery.defaultvalue.js?body=1 " type ="text/javascript "> </ script >
48
48
< script src ="/js/session.min.js?body=1 " type ="text/javascript "> </ script >
49
49
< script src ="/js/site.js?body=1 " type ="text/javascript "> </ script >
50
+ < script src ="/js/toc.js?body=1 " type ="text/javascript "> </ script >
50
51
</ div >
51
52
</ body >
52
53
</ html >
53
-
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ ---
4
+ < div id ="toc ">
5
+ < ul > < li > Item one</ li > </ ul >
6
+ </ div >
7
+
8
+ < div id ="primary ">
9
+ {{ content }}
10
+ </ div >
Original file line number Diff line number Diff line change @@ -1986,3 +1986,20 @@ th, td {
1986
1986
img {
1987
1987
max-width : 100% ;
1988
1988
}
1989
+
1990
+ /* Table of contents */
1991
+
1992
+ # primary {
1993
+ width : 750px ;
1994
+ }
1995
+
1996
+ # toc {
1997
+ width : 190px ;
1998
+ float : right;
1999
+ background-color : # fff ;
2000
+ -webkit-border-radius : 3px ;
2001
+ -moz-border-radius : 3px ;
2002
+ -ms-border-radius : 3px ;
2003
+ -o-border-radius : 3px ;
2004
+ border-radius : 3px ;
2005
+ }
Original file line number Diff line number Diff line change 1
1
---
2
- layout : default
2
+ layout : toc
3
3
---
4
4
5
5
# 101 Libgit2 Samples
6
+
7
+ ## Diff
8
+
9
+ ### One
10
+
11
+ ### Two
12
+
13
+ ### Three
14
+
15
+
16
+
17
+ ## Walking History
18
+
19
+ ### Won
20
+
21
+ ### Two
22
+
23
+ ### Free
Original file line number Diff line number Diff line change
1
+ $ ( window ) . scroll ( function ( ) {
2
+ $ ( "#toc" )
3
+ . stop ( )
4
+ . animate ( { "marginTop" : ( $ ( window ) . scrollTop ( ) ) + "px" ,
5
+ "marginLeft" :( $ ( window ) . scrollLeft ( ) ) + "px" } ,
6
+ "fast" ) ;
7
+ } ) ;
You can’t perform that action at this time.
0 commit comments