From 5854ef1372c43bd4222b3bad6543d04a2a1c123b Mon Sep 17 00:00:00 2001 From: ruanyf Date: Wed, 7 May 2014 23:22:00 +0800 Subject: [PATCH] edit js/ditto --- js/ditto.js | 2 ++ 1 file changed, 2 insertions(+) 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'); } }