tweaking scroll

This commit is contained in:
Sriram Hariharan
2019-01-10 20:45:49 -06:00
parent 1418323f95
commit bd760415f8
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ $(function () {
'#FF5252', '#E91E63', '#009688', '#00BCD4',
'#4E342E', '#424242', '#9E9E9E'
];
const days = new Map([
["M", "Monday"],
["T", "Tuesday"],

View File

@@ -101,7 +101,7 @@ $(function () {
});
$(window).scroll(function () {
if ($(document).height() <= $(window).scrollTop() + $(window).height()) {
if ($(document).height() <= $(window).scrollTop() + $(window).height() + 100) {
loadNextPages();
}
});