From: vincent@cubedesigners.com Date: Fri, 23 Sep 2016 11:45:00 +0000 (+0000) Subject: fix #725 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7df774c8dc805430466e2bdd8200022036938beb;p=fluidbook-v3.git fix #725 @0.25 --- diff --git a/js/210-home.js b/js/210-home.js index b595046..f5c77ad 100644 --- a/js/210-home.js +++ b/js/210-home.js @@ -16,10 +16,8 @@ function load_home() { }, 2500); $(document).on('click', '.scroll-arrow', function (e) { - $('html,body').animate({ - scrollTop: $('#contentWrapper section:nth-of-type(2)').offset().top - }, 1100, 'easeOutExpo'); - e.preventDefault(); + $(".pagination li:eq(1)").trigger('click'); + return false; }); // Handle clicks on pagination dots @@ -63,8 +61,8 @@ function resizeHome() { if (isMobile()) { sections.css('height', 'auto'); - var h=[]; - $(sections).each(function(){ + var h = []; + $(sections).each(function () { h.push($(this).outerHeight()); }) disableScrollify();