diff options
Diffstat (limited to 'assets/js/fullpage.js')
-rw-r--r-- | assets/js/fullpage.js | 17 |
1 files changed, 10 insertions, 7 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 |