Untitled
unknown
plain_text
5 years ago
510 B
15
Indexable
<script>
extra=0;
$(window).scroll(function() {
var scrolledLength = ( $(window).height() + extra ) + $(window).scrollTop(),
documentHeight = $(document).height();
if( scrolledLength >= documentHeight ) {
$("footer").addClass("open");
}
else if ( scrolledLength <= documentHeight && $("footer").hasClass('open') ) {
$("footer").removeClass("open");
}
});
</script>Editor is loading...