Skip to content

Commit

Permalink
remove scrollTo
Browse files Browse the repository at this point in the history
  • Loading branch information
davist11 committed Jun 29, 2013
1 parent fc74b82 commit 1702dd3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,14 @@
</div>

<script src="jquery.js"></script>
<script src="jquery.scrollTo.js"></script>
<script src="jquery.nav.js"></script>
<script>
$(document).ready(function() {
$('#nav').onePageNav({
filter: ':not(.external)',
scrollThreshold: 0.25
});

});
</script>
</body>
Expand Down
1 change: 0 additions & 1 deletion hash.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
</div>

<script src="jquery.js"></script>
<script src="jquery.scrollTo.js"></script>
<script src="jquery.nav.js"></script>
<script>
$(document).ready(function() {
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
</div>

<script src="jquery.js"></script>
<!-- <script src="jquery.scrollTo.js"></script> -->
<script src="jquery.nav.js"></script>
<script>
$(document).ready(function() {
Expand Down
1 change: 0 additions & 1 deletion multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
</div>

<script src="jquery.js"></script>
<script src="jquery.scrollTo.js"></script>
<script src="jquery.nav.js"></script>
<script>
$(document).ready(function() {
Expand Down
5 changes: 2 additions & 3 deletions non-existing.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
</div>

<script src="jquery.js"></script>
<script src="jquery.scrollTo.js"></script>
<script src="jquery.nav.js"></script>
<script>
$(document).ready(function() {
Expand All @@ -133,12 +132,12 @@
console.log('stop')
}
});

$('.do').click(function(e) {
$('#section-4').append('<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>');
e.preventDefault();
});

});
</script>
</body>
Expand Down
5 changes: 2 additions & 3 deletions top.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
</div>

<script src="jquery.js"></script>
<script src="jquery.scrollTo.js"></script>
<script src="jquery.nav.js"></script>
<script>
$(document).ready(function() {
Expand All @@ -139,12 +138,12 @@
},
scrollOffset: 30
});

$('.do').click(function(e) {
$('#section-4').append('<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>');
e.preventDefault();
});

});
</script>
</body>
Expand Down

0 comments on commit 1702dd3

Please sign in to comment.