Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h2>Long sidebar</h2>
<div class="footer">
<p><small>made by Rick Harris <a href="http://orangecoat.com/people/rick">orangecoat.com/people/rick</a>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
var el = $('#sidebar-1'),
Expand Down
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2>Long sidebar</h2>
<div class="footer">
<p><small>made by Rick Harris <a href="http://orangecoat.com/people/rick">orangecoat.com/people/rick</a>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.stickyscroll.js"></script>
<script>
$(document).ready(function() {
Expand Down
2 changes: 1 addition & 1 deletion fluid-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2>Long sidebar</h2>
<div class="footer">
<p><small>made by Rick Harris <a href="http://orangecoat.com/people/rick">orangecoat.com/people/rick</a></small></p>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.stickyscroll.js"></script>
<script>
$(document).ready(function() {
Expand Down
6 changes: 3 additions & 3 deletions jquery.stickyscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@

function bottomBoundary() {
return $(document).height() - settings.container.offset().top
- settings.container.attr('offsetHeight');
- settings.container.height();
}

function topBoundary() {
return settings.container.offset().top
}

function elHeight(el) {
return $(el).attr('offsetHeight');
return $(el).height();
}

// make sure user input is a jQuery object
Expand Down Expand Up @@ -160,4 +160,4 @@
}

};
})(jQuery);
})(jQuery);
2 changes: 1 addition & 1 deletion manual-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2>Long sidebar</h2>
<div class="footer">
<p><small>made by Rick Harris <a href="http://orangecoat.com/people/rick">orangecoat.com/people/rick</a>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.stickyscroll.js"></script>
<script>
$(document).ready(function() {
Expand Down