diff options
-rw-r--r-- | assets/js/fullpage.js | 17 | ||||
-rw-r--r-- | assets/js/main.js | 1 |
2 files changed, 10 insertions, 8 deletions
diff --git a/assets/js/fullpage.js b/assets/js/fullpage.js index c499a4c..86b95bb 100644 --- a/assets/js/fullpage.js +++ b/assets/js/fullpage.js @@ -279,8 +279,6 @@ if (settings.useSlideNumbers) { if (fadeInOut) { $('#' + settings.slideNumbersContainer).fadeIn(); - } else { - $('#' + settings.slideNumbersContainer).fadeOut(); } } } @@ -521,11 +519,16 @@ * ============================================================================ */ $.fn.scrollTo = function (element) { if (element !== last) { - $("body,html").stop(true, true).animate({ - scrollTop: $(element).offset().top - }, { - duration: 375 - }); + try { + $("body,html").stop(true, true).animate({ + scrollTop: $(element).offset().top + }, { + duration: 375 + }); + } catch (e) { + $(".paginate:first").click(); + } + } else { $("body,html").stop(true, true).animate({ scrollTop: $(document).outerHeight() - windowHeight diff --git a/assets/js/main.js b/assets/js/main.js index 5e06d0d..8c21b21 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -7,6 +7,5 @@ $(document).ready(() => { slideNumbersColor: 'transparent', bodyContainer: 'pageWrapper', }); - $(".ScrollDown").click(() => $(".paginate:nth-of-type(2n)").click()); });
\ No newline at end of file |