File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1515/site /es
1616/site /zhtw
1717/site /it
18+ /site /hu
1819* .md~
1920* .src.md
2021* .DS_store
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ Sections.prototype = {
1818 } ,
1919
2020 map : function ( ) {
21- this . names = $ ( 'section [id]' ) . map ( function ( idx , ele ) {
21+ this . names = $ ( 'section> [id]' ) . map ( function ( idx , ele ) {
2222 return {
2323 id : this . id . replace ( '.intro' , '' ) ,
24- offset : $ ( this ) . offset ( ) . top - 20 ,
24+ offset : $ ( this ) . offset ( ) . top - 100 ,
2525 title : $ ( this ) . find ( ':header:first' ) . html ( )
2626 } ;
2727
@@ -33,7 +33,7 @@ Sections.prototype = {
3333 articleID = this . names [ this . names . length - 1 ] . id ;
3434
3535 for ( var i = 0 , l = this . names . length ; i < l ; i ++ ) {
36- if ( scroll > 0 && this . names [ i ] . offset > scroll ) {
36+ if ( scroll >= 0 && this . names [ i ] . offset > scroll ) {
3737 articleID = this . names [ i - 1 ] . id ;
3838 break ;
3939 }
You can’t perform that action at this time.
0 commit comments