Menu

The Journey of Harbo 767

tenorbun69's blog

Valletta Seems Like An Appropriate Replacement for Tiramisu

Valletta Seems Like An Appropriate Replacement for Tiramisu - OCF Realty
"); if ($(window).width() > 767) $('.sidebar').width($('.sidebar').width()); $(window).resize(function() $('.sidebar').width($('#primary').width()); calculate(); ); //get page height and footer height to see where to stop the fixed sidebar var sidebar_height = $('.sidebar').height(); var page_height = $(document).height(); var footer_height = $('footer').height(); var window_height = $(window).height(); var max_sticky = ((page_height - footer_height) - sidebar_height - 85); function calculate() sidebar_height = $('.sidebar').height(); page_height = $(document).height(); footer_height = $('footer').height(); window_height = $(window).height(); max_sticky = ((page_height - footer_height) - sidebar_height - 85); function sticky_relocate() var window_top = $(window).scrollTop(); var div_top = $('.widget-area').offset().top; calculate(); if( sidebar_height > window_height ) $('.sidebar').removeClass('stick').css('position','static'); else if (window_top > div_top && window_top = max_sticky ) $('.sidebar').css('top', 'initial').css('bottom', '0').css('position', 'absolute'); else $('.sidebar').removeClass('stick').css('position','static'); //$('.widget-area').height(0); if( sidebar_height


Source: http://www.ocfrealty.com/naked-philly/queen-village/valletta-seems-like-appropriate-replacement-tiramisu

Go Back

Comment

Blog Search

Comments

There are currently no blog comments.