Skip to content

Commit

Permalink
- Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarotrigo committed Oct 16, 2014
1 parent df59090 commit 2f2f99a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ $.fn.pagePiling.moveTo('firstSection');

```javascript
//Scrolling to the 3rd section in the site
$.fn.pagePiling.moveTo(3, 0);
$.fn.pagePiling.moveTo(3);

//Which is the same as
$.fn.pagePiling.moveTo(3);
Expand Down Expand Up @@ -230,7 +230,7 @@ Example:

afterLoad: function(anchorLink, index){
//using index
if(index == '3'){
if(index == 3){
alert("Section 3 ended loading");
}

Expand All @@ -257,11 +257,11 @@ Example:
$('#pagepiling').pagePiling({
onLeave: function(index, nextIndex, direction){
//after leaving section 2
if(index == '2' && direction =='down'){
if(index == 2 && direction =='down'){
alert("Going to section 3!");
}

else if(index == '2' && direction == 'up'){
else if(index == 2 && direction == 'up'){
alert("Going to section 1!");
}
}
Expand Down

0 comments on commit 2f2f99a

Please sign in to comment.