I'm using this jQuery waypoints plugin, to float my sidebar. Everything is working as it should, but i need to set an additional waypoint on the footer so that the sidebar doesn't scroll above it and unfortunately i do not know how to code jQuery.
I setup a quick jsfiddle, but please bear with me as this was my first time using jsfiddle.
Any help will be greatly appreciated as i am stuck on how to accomplish this.
Here's the current jQuery code I am using:
<script>
$(document).ready(function() {
$('.sidebar').waypoint('sticky', {
offset: 264 // Apply "stuck" class when element 264px from top
});;
});
</script>