reading.html:
let dimensions = this.content.getContentDimensions();
let scrollTop = this.content.scrollTop;
let contentHeight = dimensions.contentHeight;
let scrollHeight = dimensions.scrollHeight;
if ( (scrollTop + contentHeight + 20) > scrollHeight) {
console.log("hi");
$("#segment").css("display","none");
$("#scrolltop").css("display","block");
}
else {
console.log("up");
}
});
}
first time its work great but scond time manu did not hide