diff --git a/js/ditto.js b/js/ditto.js index 4b5f344..c8b2297 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -255,10 +255,12 @@ function router() { $('html, body').animate({ scrollTop: $('#content').offset().top }, 200); + console.log('no perc'); } else { $('html, body').animate({ scrollTop: Boolean(perc)?($('body').height()-$(window).height())*perc:$('#content').offset().top }, 200); + console.log('perc'); } }