detectar o fim do pergaminho em div
jQuery(function($) {
$('#flux').on('scroll', function() {
if($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) {
alert('end reached');
}
})
});
como eliminar a barra de posicionamento em html
html { overflow-y: hidden; }