From bd760415f8ccce13ac7b8c3c044fb53e8d2c98d7 Mon Sep 17 00:00:00 2001 From: Sriram Hariharan Date: Thu, 10 Jan 2019 20:45:49 -0600 Subject: [PATCH] tweaking scroll --- js/calendar.js | 1 + js/content.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/calendar.js b/js/calendar.js index 59d5827e..53807ee2 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -4,6 +4,7 @@ $(function () { '#FF5252', '#E91E63', '#009688', '#00BCD4', '#4E342E', '#424242', '#9E9E9E' ]; + const days = new Map([ ["M", "Monday"], ["T", "Tuesday"], diff --git a/js/content.js b/js/content.js index fdd50368..38b2db65 100644 --- a/js/content.js +++ b/js/content.js @@ -101,7 +101,7 @@ $(function () { }); $(window).scroll(function () { - if ($(document).height() <= $(window).scrollTop() + $(window).height()) { + if ($(document).height() <= $(window).scrollTop() + $(window).height() + 100) { loadNextPages(); } });