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 15
15
/site /es
16
16
/site /zhtw
17
17
/site /it
18
+ /site /hu
18
19
* .md~
19
20
* .src.md
20
21
* .DS_store
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ Sections.prototype = {
18
18
} ,
19
19
20
20
map : function ( ) {
21
- this . names = $ ( 'section [id]' ) . map ( function ( idx , ele ) {
21
+ this . names = $ ( 'section> [id]' ) . map ( function ( idx , ele ) {
22
22
return {
23
23
id : this . id . replace ( '.intro' , '' ) ,
24
- offset : $ ( this ) . offset ( ) . top - 20 ,
24
+ offset : $ ( this ) . offset ( ) . top - 100 ,
25
25
title : $ ( this ) . find ( ':header:first' ) . html ( )
26
26
} ;
27
27
@@ -33,7 +33,7 @@ Sections.prototype = {
33
33
articleID = this . names [ this . names . length - 1 ] . id ;
34
34
35
35
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 ) {
37
37
articleID = this . names [ i - 1 ] . id ;
38
38
break ;
39
39
}
You can’t perform that action at this time.
0 commit comments