isVisibalePage

function isVisiblePage(elem) { var elemPos = elem.offset().top, $window = $(window), pagePos = $window.scrollTop(), totalHeight = elemPos + elem.height(); return ( totalHeight <= pagePos + $window.height() && elemPos >= pagePos); }
isVisibalePage

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.